fcmodeler.attributes
Class ColorAttribute

java.lang.Object
  |
  +--fcmodeler.attributes.ColorAttribute
All Implemented Interfaces:
VisualAttribute

public final class ColorAttribute
extends java.lang.Object
implements VisualAttribute

The color visual attribute.

Since:
JDK1.3
Version:
$Revision: 1.2 $
Author:
Julie Dickerson , Zach Cox

Method Summary
 VisualAttributeEditor getEditor()
          Returns a color attribute editor.
static ColorAttribute getInstance()
          Returns an instance of ColorAttribute.
 VisualAttributeValue getValue(java.lang.String value)
          Returns a color value, using the specified string description.
 java.lang.String toString()
          Returns the string "color".
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

getEditor

public VisualAttributeEditor getEditor()
Returns a color attribute editor. The returned editor is guaranteed to be of type ColorEditor.
Specified by:
getEditor in interface VisualAttribute
Returns:
a ColorEditor.

getInstance

public static ColorAttribute getInstance()
Returns an instance of ColorAttribute.
Returns:
an instance of ColorAttribute.

getValue

public VisualAttributeValue getValue(java.lang.String value)
Returns a color value, using the specified string description. The returned value is guaranteed to be of type ColorValue.
Specified by:
getValue in interface VisualAttribute
Parameters:
value - the string description of the color value.
Returns:
a color value.

toString

public java.lang.String toString()
Returns the string "color".
Specified by:
toString in interface VisualAttribute
Overrides:
toString in class java.lang.Object
Returns:
the string "color".