public class Lightness extends Factor<Lightness>
Segment
represents the lightness of a Color
. Just like Brightness
it is a
factor
indicating the amount of light emitted by a Color
, but relative to the
Brightness
of a similarly illuminated white.GenericColor.getLightness()
,
Serialized FormModifier and Type | Field and Description |
---|---|
private static long |
serialVersionUID
UID for serialization.
|
Modifier | Constructor and Description |
---|---|
protected |
Lightness()
The constructor for de-serialization in GWT.
|
|
Lightness(double value)
The constructor.
|
|
Lightness(Double value)
The constructor.
|
|
Lightness(String value)
The constructor.
|
Modifier and Type | Method and Description |
---|---|
protected Lightness |
newInstance(double value)
Creates a new instance with the given value.
|
String |
toString()
|
getMaximumValue, getValueAsByte, getValueAsFactor, toStringAsByte
decrease, getMinimumValue, increase, invert
getValueAsPercent, toStringAsFactor, toStringAsPercent
getValue
equals, hashCode
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getValue
private static final long serialVersionUID
protected Lightness()
public Lightness(double value)
value
- is the value
.protected Lightness newInstance(double value)
newInstance
in class AbstractDoubleSegment<Lightness>
value
- is the value
.public String toString()
String
representation of this Datatype
. While the general contract
of Object.toString()
is very weak and mainly used for debugging, the contract here is very
strong. The returned String
has to be suitable for end-users and official output to any kind of
sink. NlsMessage
for this purpose and implement
NlsObject
if you want to support I18N/L10N.Copyright © 2001–2014 mmm-Team. All rights reserved.