com.sencha.gxt.chart.client.draw
Class HSL

java.lang.Object
  extended by com.sencha.gxt.chart.client.draw.Color
      extended by com.sencha.gxt.chart.client.draw.Hue
          extended by com.sencha.gxt.chart.client.draw.HSL

public class HSL
extends Hue

Represent an HSL color.


Field Summary
 
Fields inherited from class com.sencha.gxt.chart.client.draw.Color
NONE
 
Constructor Summary
HSL()
          Creates an HSL instance with default values.
HSL(double hue, double saturation, double lightness)
          Creates an HSV instance using the given hue, saturation and lightness.
HSL(RGB rgb)
          Creates an HSV instance from the given RGB color.
 
Method Summary
 String getColor()
          Returns the literal string of the color.
 double getLightness()
          Returns the lightness value.
 void setLightness(double lightness)
          Sets the lightness value.
 String toString()
          Return the color in String format.
 
Methods inherited from class com.sencha.gxt.chart.client.draw.Hue
getHue, getSaturation, setHue, setSaturation
 
Methods inherited from class com.sencha.gxt.chart.client.draw.Color
setColor
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

HSL

public HSL()
Creates an HSL instance with default values.


HSL

public HSL(double hue,
           double saturation,
           double lightness)
Creates an HSV instance using the given hue, saturation and lightness.

Parameters:
hue - the hue value
saturation - the saturation value
lightness - the lightness value

HSL

public HSL(RGB rgb)
Creates an HSV instance from the given RGB color.

Parameters:
rgb - the RGB color
Method Detail

getColor

public String getColor()
Description copied from class: Color
Returns the literal string of the color.

Overrides:
getColor in class Color
Returns:
the literal string of the color

getLightness

public double getLightness()
Returns the lightness value.

Returns:
the lightness value

setLightness

public void setLightness(double lightness)
Sets the lightness value.

Parameters:
lightness - the lightness value

toString

public String toString()
Description copied from class: Color
Return the color in String format.

Overrides:
toString in class Color
Returns:
string value


Copyright © 2011. All Rights Reserved.