java.lang.Object
io.github.mmm.ui.api.datatype.color.ColorSegment<SELF>
io.github.mmm.ui.api.datatype.color.AbstractColorFactor<Brightness>
io.github.mmm.ui.api.datatype.color.Brightness
This
ColorSegment
represents the brightness of a Color
. The brightness is a factor
indicating the amount of light emitted by a Color
.- Since:
- 1.0.0
- See Also:
-
Field Summary
Fields inherited from class io.github.mmm.ui.api.datatype.color.AbstractColorFactor
BYTE_MAX, MAX_VALUE
-
Constructor Summary
ConstructorsConstructorDescriptionBrightness
(double value) The constructor.Brightness
(String value) The constructor. -
Method Summary
Modifier and TypeMethodDescriptionprotected Brightness
newInstance
(double value) Creates a new instance with the given value.toString()
Methods inherited from class io.github.mmm.ui.api.datatype.color.AbstractColorFactor
getMax, getValueAsByte, getValueAsFactor, toByteString
Methods inherited from class io.github.mmm.ui.api.datatype.color.ColorSegment
decrease, equals, getMin, getValue, getValueAsPercent, hashCode, increase, invert, toFactorString, toPercentString
-
Constructor Details
-
Method Details
-
newInstance
Description copied from class:ColorSegment
Creates a new instance with the given value.- Specified by:
newInstance
in classColorSegment<Brightness>
- Parameters:
value
- is thevalue
.- Returns:
- the new instance.
-
toString
Description copied from class:ColorSegment
- Overrides:
toString
in classAbstractColorFactor<Brightness>
- Returns:
- the default
String
representation. Depending on the type this might be the same asColorSegment.toFactorString()
but it might also be an absolute integer (e.g. in the range[0, 255]
for RGBA segments).
-