info.gridworld.gui
Class ColorEditor

java.lang.Object
  extended by java.beans.PropertyEditorSupport
      extended by info.gridworld.gui.ColorEditor
All Implemented Interfaces:
java.beans.PropertyEditor

public class ColorEditor
extends java.beans.PropertyEditorSupport

A property editor for the Color type.
This code is not tested on the AP CS A and AB exams. It contains GUI implementation details that are not intended to be understood by AP CS students.


Constructor Summary
ColorEditor()
           
 
Method Summary
 java.awt.Component getCustomEditor()
           
 java.lang.Object getValue()
           
 boolean supportsCustomEditor()
           
 
Methods inherited from class java.beans.PropertyEditorSupport
addPropertyChangeListener, firePropertyChange, getAsText, getJavaInitializationString, getSource, getTags, isPaintable, paintValue, removePropertyChangeListener, setAsText, setSource, setValue
 
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

getValue

public java.lang.Object getValue()
Specified by:
getValue in interface java.beans.PropertyEditor
Overrides:
getValue in class java.beans.PropertyEditorSupport

supportsCustomEditor

public boolean supportsCustomEditor()
Specified by:
supportsCustomEditor in interface java.beans.PropertyEditor
Overrides:
supportsCustomEditor in class java.beans.PropertyEditorSupport

getCustomEditor

public java.awt.Component getCustomEditor()
Specified by:
getCustomEditor in interface java.beans.PropertyEditor
Overrides:
getCustomEditor in class java.beans.PropertyEditorSupport