org.jdesktop.swingx.editors
Class ShapePropertyEditor

java.lang.Object
  extended by java.beans.PropertyEditorSupport
      extended by org.jdesktop.swingx.editors.ShapePropertyEditor
All Implemented Interfaces:
PropertyEditor

public class ShapePropertyEditor
extends PropertyEditorSupport


Constructor Summary
ShapePropertyEditor()
          Creates a new instance of ShapePropertyEditor
 
Method Summary
 Component getCustomEditor()
          A PropertyEditor may chose to make available a full custom Component that edits its property value.
 Shape getValue()
          Gets the value of the property.
 boolean isPaintable()
          Determines whether the class will honor the paintValue method.
 void setValue(Object value)
          Set (or change) the object that is to be edited.
 boolean supportsCustomEditor()
          Determines whether the propertyEditor can provide a custom editor.
 
Methods inherited from class java.beans.PropertyEditorSupport
addPropertyChangeListener, firePropertyChange, getAsText, getJavaInitializationString, getSource, getTags, paintValue, removePropertyChangeListener, setAsText, setSource
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ShapePropertyEditor

public ShapePropertyEditor()
Creates a new instance of ShapePropertyEditor

Method Detail

getValue

public Shape getValue()
Description copied from class: java.beans.PropertyEditorSupport
Gets the value of the property.

Specified by:
getValue in interface PropertyEditor
Overrides:
getValue in class PropertyEditorSupport
Returns:
The value of the property.

setValue

public void setValue(Object value)
Description copied from class: java.beans.PropertyEditorSupport
Set (or change) the object that is to be edited.

Specified by:
setValue in interface PropertyEditor
Overrides:
setValue in class PropertyEditorSupport
Parameters:
value - The new target object to be edited. Note that this object should not be modified by the PropertyEditor, rather the PropertyEditor should create a new object to hold any modified value.

isPaintable

public boolean isPaintable()
Description copied from class: java.beans.PropertyEditorSupport
Determines whether the class will honor the paintValue method.

Specified by:
isPaintable in interface PropertyEditor
Overrides:
isPaintable in class PropertyEditorSupport
Returns:
True if the class will honor the paintValue method.

supportsCustomEditor

public boolean supportsCustomEditor()
Description copied from class: java.beans.PropertyEditorSupport
Determines whether the propertyEditor can provide a custom editor.

Specified by:
supportsCustomEditor in interface PropertyEditor
Overrides:
supportsCustomEditor in class PropertyEditorSupport
Returns:
True if the propertyEditor can provide a custom editor.

getCustomEditor

public Component getCustomEditor()
Description copied from class: java.beans.PropertyEditorSupport
A PropertyEditor may chose to make available a full custom Component that edits its property value. It is the responsibility of the PropertyEditor to hook itself up to its editor Component itself and to report property value changes by firing a PropertyChange event.

The higher-level code that calls getCustomEditor may either embed the Component in some larger property sheet, or it may put it in its own individual dialog, or ...

Specified by:
getCustomEditor in interface PropertyEditor
Overrides:
getCustomEditor in class PropertyEditorSupport
Returns:
A java.awt.Component that will allow a human to directly edit the current property value. May be null if this is not supported.