public static enum PaintUtil.RoundingMode extends java.lang.Enum<PaintUtil.RoundingMode>
Math
rounding method should be applied when converting to the device space.Enum Constant and Description |
---|
CEIL |
FLOOR |
ROUND |
ROUND_FLOOR_BIAS
Rounds with flooring .5 value
|
Modifier and Type | Method and Description |
---|---|
abstract int |
round(double value)
Rounds the value according to the rounding mode.
|
static PaintUtil.RoundingMode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static PaintUtil.RoundingMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PaintUtil.RoundingMode FLOOR
public static final PaintUtil.RoundingMode CEIL
public static final PaintUtil.RoundingMode ROUND
public static final PaintUtil.RoundingMode ROUND_FLOOR_BIAS
public static PaintUtil.RoundingMode[] values()
for (PaintUtil.RoundingMode c : PaintUtil.RoundingMode.values()) System.out.println(c);
public static PaintUtil.RoundingMode 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 abstract int round(double value)
value
- the value to round