SELF
- is the generic type of the class itself (bound by the actual final subclass).public abstract class Factor<SELF extends Factor<SELF>> extends AbstractDoubleSegment<SELF>
Segment
for a factor in the range from 0
to 1
such
as Saturation
, Lightness
, or Brightness
. percent
notation the String
constructor both accepts
byte values
as well as factor
notation.Modifier and Type | Field and Description |
---|---|
protected static double |
BYTE_MAX |
static double |
MAX_VALUE |
private static long |
serialVersionUID
UID for serialization.
|
Modifier | Constructor and Description |
---|---|
protected |
Factor()
The constructor for de-serialization in GWT.
|
|
Factor(double value)
The constructor.
|
|
Factor(Double value)
The constructor.
|
|
Factor(int byteValue)
The constructor.
|
|
Factor(String value)
The constructor.
|
Modifier and Type | Method and Description |
---|---|
Double |
getMaximumValue()
This method gets the maximum
value of this object. |
int |
getValueAsByte() |
double |
getValueAsFactor() |
private static Double |
parseValue(String value) |
String |
toStringAsByte() |
decrease, getMinimumValue, increase, invert, newInstance
getValueAsPercent, toStringAsFactor, toStringAsPercent
getValue
equals, hashCode, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getValue
private static final long serialVersionUID
public static final double MAX_VALUE
getMaximumValue()
,
Constant Field Valuesprotected static final double BYTE_MAX
Factor(int)
,
Constant Field Valuesprotected Factor()
public Factor(double value)
value
- is the value
.public Factor(int byteValue)
byteValue
- is the value given as byte
.public double getValueAsFactor()
getValueAsFactor
in interface Segment<Double>
getValueAsFactor
in class AbstractDoubleSegment<SELF extends Factor<SELF>>
0
to 1
([0, 1]
).public Double getMaximumValue()
value
of this object. A legal value
has
to be less or equal to this maximum
.value
or
null
if unbounded.public int getValueAsByte()
AbstractSimpleDatatype.getValue()
as int
in the range from 0
to 255
.public String toStringAsByte()
byte value
as String
. E.g. "255".Copyright © 2001–2014 mmm-Team. All rights reserved.