public class Brightness extends Factor<Brightness>
Segment
represents the brightness of a Color
. The brightness is a factor
indicating the amount of light emitted by a Color
.GenericColor.getBrightness()
,
Serialized FormModifier and Type | Field and Description |
---|---|
private static long |
serialVersionUID
UID for serialization.
|
Modifier | Constructor and Description |
---|---|
protected |
Brightness()
The constructor for de-serialization in GWT.
|
|
Brightness(double value)
The constructor.
|
|
Brightness(Double value)
The constructor.
|
|
Brightness(String value)
The constructor.
|
Modifier and Type | Method and Description |
---|---|
protected Brightness |
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 Brightness()
public Brightness(double value)
value
- is the value
.protected Brightness newInstance(double value)
newInstance
in class AbstractDoubleSegment<Brightness>
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.