org.ocd.dcf.property.editor
Class ColorEditor

java.lang.Object
  |
  +--java.beans.PropertyEditorSupport
        |
        +--org.ocd.dcf.property.editor.EditorSupport
              |
              +--org.ocd.dcf.property.editor.ColorEditor
All Implemented Interfaces:
java.beans.PropertyEditor

public class ColorEditor
extends EditorSupport

Swing version of a Color property editor.

Version:
$Revision: 1.1 $
Author:
Tom Santos, Mark Davidson

Fields inherited from class org.ocd.dcf.property.editor.EditorSupport
MEDIUM_DIMENSION, panel, SMALL_DIMENSION
 
Constructor Summary
ColorEditor()
           
 
Method Summary
 void editorChangeValue(java.lang.Object value)
           
 java.lang.String getAsText()
           
 ColorEditor getColorEditor()
           
 java.lang.String getJavaInitializationString()
           
 boolean isPaintable()
           
static void main(java.lang.String[] argv)
           
 void paintValue(java.awt.Graphics g, java.awt.Rectangle rect)
          Paints a representation of the value into a given area of screen.
 void setAsText(java.lang.String s)
           
 void setValue(java.lang.Object value)
          Set the Value of this Property
 
Methods inherited from class org.ocd.dcf.property.editor.EditorSupport
getCustomEditor, init, setAlignment, supportsCustomEditor
 
Methods inherited from class java.beans.PropertyEditorSupport
addPropertyChangeListener, firePropertyChange, getTags, getValue, removePropertyChangeListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ColorEditor

public ColorEditor()
Method Detail

isPaintable

public boolean isPaintable()
Overrides:
isPaintable in class java.beans.PropertyEditorSupport

paintValue

public void paintValue(java.awt.Graphics g,
                       java.awt.Rectangle rect)
Paints a representation of the value into a given area of screen.
Overrides:
paintValue in class java.beans.PropertyEditorSupport

getJavaInitializationString

public java.lang.String getJavaInitializationString()
Overrides:
getJavaInitializationString in class java.beans.PropertyEditorSupport

getAsText

public java.lang.String getAsText()
Overrides:
getAsText in class java.beans.PropertyEditorSupport

setAsText

public void setAsText(java.lang.String s)
               throws java.lang.IllegalArgumentException
Overrides:
setAsText in class java.beans.PropertyEditorSupport

setValue

public void setValue(java.lang.Object value)
Description copied from class: EditorSupport
Set the Value of this Property
Overrides:
setValue in class EditorSupport
Following copied from class: org.ocd.dcf.property.editor.EditorSupport
Parameters:
pValue - new Value

editorChangeValue

public void editorChangeValue(java.lang.Object value)

getColorEditor

public ColorEditor getColorEditor()

main

public static void main(java.lang.String[] argv)