public class Hue extends AbstractDoubleSegment<Hue>
Segment
represents the main characteristic of a a color by the degree of the angle around that
axis in the color cube starting with red at 0°.GenericColor.getHue()
,
Serialized FormModifier and Type | Field and Description |
---|---|
static double |
MAX_VALUE
The maximum value allowed.
|
private static double |
PERCENT_FACTOR
The factor for percent values (360 / 100).
|
private static long |
serialVersionUID
UID for serialization.
|
static Hue |
UNDEFINED
|
Modifier | Constructor and Description |
---|---|
protected |
Hue()
The constructor for de-serialization in GWT.
|
|
Hue(double value)
The constructor.
|
|
Hue(Double value)
The constructor.
|
|
Hue(String value)
The constructor.
|
Modifier and Type | Method and Description |
---|---|
Double |
getMaximumValue()
This method gets the maximum
value of this object. |
protected Hue |
newInstance(double value)
Creates a new instance with the given value.
|
private static Double |
parseValue(String value) |
decrease, getMinimumValue, getValueAsFactor, increase, invert
getValueAsPercent, toStringAsFactor, toStringAsPercent
getValue
equals, hashCode, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getValue
private static final double PERCENT_FACTOR
private static final long serialVersionUID
public static final Hue UNDEFINED
public static final double MAX_VALUE
protected Hue()
public Hue(double value)
value
- is the #getValue()public Hue(Double value)
value
- is the #getValue()public Double getMaximumValue()
value
of this object. A legal value
has
to be less or equal to this maximum
.value
or
null
if unbounded.protected Hue newInstance(double value)
newInstance
in class AbstractDoubleSegment<Hue>
value
- is the value
.Copyright © 2001–2014 mmm-Team. All rights reserved.