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

java.lang.Object
  extended by com.sencha.gxt.chart.client.draw.Color
Direct Known Subclasses:
Gradient, Hue, RGB

public class Color
extends Object

Base color class that represents a String color value.


Field Summary
static Color NONE
          Represents no color value;
 
Constructor Summary
Color()
          Constructs an empty color object.
Color(String color)
          Constructs a color using the given literal string.
 
Method Summary
 String getColor()
          Returns the literal string of the color.
 void setColor(String color)
          Manually sets the color string of the color object.
 String toString()
          Return the color in String format.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

NONE

public static final Color NONE
Represents no color value;

Constructor Detail

Color

public Color()
Constructs an empty color object.


Color

public Color(String color)
Constructs a color using the given literal string.

Parameters:
color - the color string
Method Detail

getColor

public String getColor()
Returns the literal string of the color.

Returns:
the literal string of the color

setColor

public void setColor(String color)
Manually sets the color string of the color object.

Parameters:
color - the new literal color string to set

toString

public String toString()
Return the color in String format.

Overrides:
toString in class Object
Returns:
string value


Copyright © 2011. All Rights Reserved.