java.lang.Object
io.github.mmm.ui.api.datatype.color.ColorSegment<SELF>
io.github.mmm.ui.api.datatype.color.AbstractColorFactor<Saturation>
io.github.mmm.ui.api.datatype.color.Saturation
This
ATTENTION:
The saturation has different definitions for
ColorSegment
is a factor
that represents the colorfulness of a stimulus relative to its own
brightness. ATTENTION:
The saturation has different definitions for
ColorModel.HSB
and ColorModel.HSL
. Hence transformation
from other ColorModel
s like ColorModel.RGB
differs and will return different results for
Saturation
.- Since:
- 1.0.0
- Author:
- Joerg Hohwiller (hohwille at users.sourceforge.net)
-
Field Summary
Fields inherited from class io.github.mmm.ui.api.datatype.color.AbstractColorFactor
BYTE_MAX, MAX_VALUE
-
Constructor Summary
ConstructorDescriptionSaturation
(double value) The constructor.Saturation
(String value) The constructor. -
Method Summary
Modifier and TypeMethodDescriptionprotected Saturation
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<Saturation>
- Parameters:
value
- is thevalue
.- Returns:
- the new instance.
-
toString
Description copied from class:ColorSegment
- Overrides:
toString
in classAbstractColorFactor<Saturation>
- 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).
-