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

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.HSV

public class HSV
extends Hue

Represents an HSV color.


Field Summary
 
Fields inherited from class com.sencha.gxt.chart.client.draw.Color
NONE
 
Constructor Summary
HSV()
          Creates an instance of HSV with default values.
HSV(int hue, int saturation, int value)
          Creates an instance of HSV with the given hue, saturation and value
HSV(RGB rgb)
          Creates an instance of HSV with the given RGB color.
 
Method Summary
 String getColor()
          Returns the literal string of the color.
 double getValue()
          Returns the value.
 void setValue(double value)
          Sets the 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

HSV

public HSV()
Creates an instance of HSV with default values.


HSV

public HSV(int hue,
           int saturation,
           int value)
Creates an instance of HSV with the given hue, saturation and value

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

HSV

public HSV(RGB rgb)
Creates an instance of HSV with 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

getValue

public double getValue()
Returns the value.

Returns:
the value

setValue

public void setValue(double value)
Sets the value.

Parameters:
value - the 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.