public enum SizeRounding extends java.lang.Enum<SizeRounding>
Enum Constant and Description |
---|
DOWN
If element size is uneven, subtracts 1 pixel
|
NONE
Default mode - no-op
|
UP
If element size is uneven, adds 1 pixel
|
Modifier and Type | Method and Description |
---|---|
float |
calculateRounding(float value) |
static SizeRounding |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static SizeRounding[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SizeRounding NONE
public static final SizeRounding UP
public static final SizeRounding DOWN
public static SizeRounding[] values()
for (SizeRounding c : SizeRounding.values()) System.out.println(c);
public static SizeRounding valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic float calculateRounding(float value)