games.strategy.engine.data.properties
Class ColorProperty

java.lang.Object
  extended by games.strategy.engine.data.properties.AEditableProperty
      extended by games.strategy.engine.data.properties.ColorProperty
All Implemented Interfaces:
IEditableProperty, java.io.Serializable, java.lang.Comparable

public class ColorProperty
extends AEditableProperty

User editable property representing a color.

Presents a clickable label with the currently selected color, through which a color swatch panel is accessable to change the color.

Version:
$LastChangedDate: 2007-08-08 11:28:05 -0700 (Wed, 08 Aug 2007) $
Author:
Lane O.B. Schwartz
See Also:
Serialized Form

Constructor Summary
ColorProperty(java.lang.String name, int def)
           
 
Method Summary
 javax.swing.JComponent getEditorComponent()
           
 java.lang.Object getValue()
           
 
Methods inherited from class games.strategy.engine.data.properties.AEditableProperty
compareTo, equals, getName, getViewComponent, hashCode
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ColorProperty

public ColorProperty(java.lang.String name,
                     int def)
Method Detail

getValue

public java.lang.Object getValue()

getEditorComponent

public javax.swing.JComponent getEditorComponent()
Returns:
component used to edit this property