fcmodeler.attributes
Class ColorEditor

java.lang.Object
  |
  +--fcmodeler.attributes.ColorEditor
All Implemented Interfaces:
VisualAttributeEditor

public final class ColorEditor
extends java.lang.Object
implements VisualAttributeEditor

An editor for the color visual attribute. ColorEditor uses a javax.swing.JColorChooser as its gui component and adds a ColorFactoryPanel to the JColorChoooser.

Since:
JDK1.3
Version:
$Revision: 1.1 $
Author:
Zach Cox

Constructor Summary
ColorEditor()
          Creates a new ColorEditor.
 
Method Summary
 java.awt.Component getComponent()
          Returns the gui component used to edit the color visual attribute.
 VisualAttributeValue getValue()
          Returns the edited color value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ColorEditor

public ColorEditor()
Creates a new ColorEditor.
Method Detail

getComponent

public java.awt.Component getComponent()
Returns the gui component used to edit the color visual attribute. The returned component is guaranteed to be a javax.swing.JColorChooser.
Specified by:
getComponent in interface VisualAttributeEditor
Returns:
the gui component.

getValue

public VisualAttributeValue getValue()
Returns the edited color value. The returned value is guaranteed to be of type ColorValue.
Specified by:
getValue in interface VisualAttributeEditor
Returns:
the edited color value.