SELF
- is the generic type of the class itself (bound by the actual final subclass).public abstract class AbstractDoubleSegment<SELF extends AbstractDoubleSegment<SELF>> extends AbstractSegment<Double>
Modifier and Type | Field and Description |
---|---|
private static long |
serialVersionUID
UID for serialization.
|
Modifier | Constructor and Description |
---|---|
protected |
AbstractDoubleSegment()
The constructor for de-serialization in GWT.
|
|
AbstractDoubleSegment(double value)
The constructor.
|
|
AbstractDoubleSegment(Double value)
The constructor.
|
Modifier and Type | Method and Description |
---|---|
SELF |
decrease(ColorFactor factor) |
Double |
getMinimumValue()
This method gets the minimum
value of this object. |
double |
getValueAsFactor() |
SELF |
increase(ColorFactor factor) |
SELF |
invert() |
protected abstract SELF |
newInstance(double value)
Creates a new instance with the given value.
|
getValueAsPercent, toStringAsFactor, toStringAsPercent
getValue
equals, hashCode, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getValue
getMaximumValue
private static final long serialVersionUID
protected AbstractDoubleSegment()
public AbstractDoubleSegment(Double value)
value
- is the value
.public AbstractDoubleSegment(double value)
value
- is the value
.public double getValueAsFactor()
0
to 1
([0, 1]
).public Double getMinimumValue()
value
of this object. A legal value
has
to be greater or equal to this minimum
.value
or
null
if unbounded.protected abstract SELF newInstance(double value)
value
- is the value
.public SELF invert()
AttributeReadMaximumValue.getMaximumValue()
- AbstractSimpleDatatype.getValue()
.public SELF increase(ColorFactor factor)
factor
- is the ColorFactor
to increase by. E.g. 0.0
will cause no change,
1.0
will lead to maximum value
.public SELF decrease(ColorFactor factor)
factor
- is the ColorFactor
to decrease by. E.g. 0.0
will cause no change,
1.0
will lead to minimum value
(0).Copyright © 2001–2014 mmm-Team. All rights reserved.