org.das2.graph
Class SymColor
java.lang.Object
java.awt.Color
org.das2.graph.SymColor
- All Implemented Interfaces:
- java.awt.Paint, java.awt.Transparency, java.io.Serializable, Displayable, Enumeration
public final class SymColor
- extends java.awt.Color
- implements Enumeration, Displayable
- See Also:
- Serialized Form
Fields inherited from class java.awt.Color |
BLACK, BLUE, cyan, CYAN, DARK_GRAY, darkGray, GRAY, GREEN, LIGHT_GRAY, lightGray, MAGENTA, orange, ORANGE, pink, PINK, RED, WHITE, yellow, YELLOW |
Fields inherited from interface java.awt.Transparency |
BITMASK, OPAQUE, TRANSLUCENT |
Method Summary |
javax.swing.Icon |
getListIcon()
An icon can be provided that will be shown in a list
along with the textual description of the element. |
java.lang.String |
getListLabel()
return a String that will help the user
identify this item when choosing from a list. |
static SymColor |
parseSymColor(java.lang.String str)
|
java.awt.Color |
toColor()
|
java.lang.String |
toString()
Type-safe Enumerations implementing this interface
should override the toString() method to return a
String that will be helpful to the user
when choosing this as an option from a list. |
Methods inherited from class java.awt.Color |
brighter, createContext, darker, decode, equals, getAlpha, getBlue, getColor, getColor, getColor, getColorComponents, getColorComponents, getColorSpace, getComponents, getComponents, getGreen, getHSBColor, getRed, getRGB, getRGBColorComponents, getRGBComponents, getTransparency, hashCode, HSBtoRGB, RGBtoHSB |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
black
public static final SymColor black
blue
public static final SymColor blue
lightRed
public static final SymColor lightRed
red
public static final SymColor red
darkRed
public static final SymColor darkRed
green
public static final SymColor green
darkGreen
public static final SymColor darkGreen
white
public static final SymColor white
gray
public static final SymColor gray
magenta
public static final SymColor magenta
getListIcon
public javax.swing.Icon getListIcon()
- An icon can be provided that will be shown in a list
along with the textual description of the element.
This method should return
null
if there
is no icon available.
- Specified by:
getListIcon
in interface Displayable
- Specified by:
getListIcon
in interface Enumeration
getListLabel
public java.lang.String getListLabel()
- Description copied from interface:
Displayable
- return a
String
that will help the user
identify this item when choosing from a list.
- Specified by:
getListLabel
in interface Displayable
toString
public java.lang.String toString()
- Description copied from interface:
Enumeration
- Type-safe Enumerations implementing this interface
should override the toString() method to return a
String
that will be helpful to the user
when choosing this as an option from a list.
- Specified by:
toString
in interface Enumeration
- Overrides:
toString
in class java.awt.Color
toColor
public java.awt.Color toColor()
parseSymColor
public static SymColor parseSymColor(java.lang.String str)