public class HSBColor extends AbstractBaseColor
| Type | Property and Description |
|---|---|
DoubleProperty |
brightness
Return the brightness property.
|
DoubleProperty |
hue
Return the hue property.
|
DoubleProperty |
saturation
Return the saturation property.
|
opacityProperty| Modifier and Type | Field and Description |
|---|---|
private DoubleProperty |
brightness
The brightness value [0.0-1.0].
|
private DoubleProperty |
hue
The hue value [0.0-360.0] in degrees.
|
private DoubleProperty |
saturation
The saturation value [0.0-1.0].
|
PARAMETER_SEPARATOR| Constructor and Description |
|---|
HSBColor(double hue,
double saturation,
double brightness)
Default Constructor.
|
HSBColor(double hue,
double saturation,
double brightness,
double opacity)
Default Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
double |
brightness()
Return the brightness value 0.0-1.0.
|
DoubleProperty |
brightnessProperty()
Return the brightness property.
|
protected List<? extends Object> |
getFieldValues()
Return all values of
ParameterEntry object. |
double |
hue()
Return the hue value [0.0-360.0] in degrees.
|
DoubleProperty |
hueProperty()
Return the hue property.
|
void |
parse(String[] parameters)
Parse a string to initialize fields.
|
double |
saturation()
Return the saturation value 0.0-1.0.
|
DoubleProperty |
saturationProperty()
Return the saturation property.
|
opacity, opacityPropertyactivateAutoRefresh, getKey, hasChanged, hasChanged, readBoolean, readDouble, readInteger, setKey, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitactivateAutoRefresh, getKey, hasChanged, hasChanged, setKeyprivate final DoubleProperty hue
private final DoubleProperty saturation
private final DoubleProperty brightness
public HSBColor(double hue,
double saturation,
double brightness)
hue - the color hue [0.0-360.0] in degreessaturation - the color saturation [0.0-1.0]brightness - the color brightness [0.0-1.0]public HSBColor(double hue,
double saturation,
double brightness,
double opacity)
hue - the color hue [0.0-360.0] in degreessaturation - the color saturation [0.0-1.0]brightness - the color brightness [0.0-1.0]opacity - the color opacity [0.0-1.0]public double hue()
public DoubleProperty hueProperty()
public double saturation()
public DoubleProperty saturationProperty()
public double brightness()
public DoubleProperty brightnessProperty()
public void parse(String[] parameters)
parameters - split from resource properties fileprotected List<? extends Object> getFieldValues()
ParameterEntry object.getFieldValues in class AbstractBaseParamsCopyright © 2011–2014 JRebirth OSS. All rights reserved.