inetsoft.graph.aesthetic
Class HSLColorFrame
java.lang.Object
inetsoft.graph.aesthetic.VisualFrame
inetsoft.graph.aesthetic.ColorFrame
inetsoft.graph.aesthetic.LinearColorFrame
inetsoft.graph.aesthetic.HSLColorFrame
- All Implemented Interfaces:
- Serializable, Cloneable
- Direct Known Subclasses:
- BrightnessColorFrame, SaturationColorFrame
public abstract class HSLColorFrame
- extends LinearColorFrame
This class defines a color frame for continuous numeric values. This is the
base class for color frames that using the HSL scale.
- See Also:
- Serialized Form
|
Method Summary |
boolean |
equals(Object obj)
Check if equals another object. |
Color |
getColor()
Get the base color value of the color frame. |
protected int[] |
hslToRGB(double h,
double s,
double l)
Convert hue, saturation, lightness to RGB values. |
protected void |
init()
Initialize a color frame that contains HSL values. |
void |
setColor(Color color)
Set the base color value to the color frame. |
| Methods inherited from class inetsoft.graph.aesthetic.VisualFrame |
clone, createComparator, getField, getLabels, getLegendFrame, getLegendSpec, getScale, getScaleOption, getTitle, getValues, hashCode, init, isValid, isVisible, setField, setLegendFrame, setLegendSpec, setScale, setScaleOption, toString |
color
protected Color color
hue
protected double hue
saturation
protected double saturation
brightness
protected double brightness
HSLColorFrame
public HSLColorFrame()
getColor
public Color getColor()
- Get the base color value of the color frame.
setColor
public void setColor(Color color)
- Set the base color value to the color frame.
init
protected void init()
- Initialize a color frame that contains HSL values.
hslToRGB
protected int[] hslToRGB(double h,
double s,
double l)
- Convert hue, saturation, lightness to RGB values.
- Parameters:
h - the value of hue.s - the value of saturation.l - the value of lightness.
equals
public boolean equals(Object obj)
- Check if equals another object.
- Overrides:
equals in class ColorFrame