ElegantJ Gauges Java API Specification v1.1

com.elegantj.gauges.needle
Class ZoneEditor

java.lang.Object
  extended byjava.beans.PropertyEditorSupport
      extended bycom.elegantj.gauges.needle.ZoneEditor
All Implemented Interfaces:
java.util.EventListener, java.beans.PropertyChangeListener, java.beans.PropertyEditor, java.io.Serializable

public class ZoneEditor
extends java.beans.PropertyEditorSupport
implements java.beans.PropertyChangeListener, java.io.Serializable

Provides the facility to visually edit the zone

See Also:
Serialized Form

Constructor Summary
ZoneEditor()
           
 
Method Summary
 java.awt.Component getCustomEditor()
          A PropertyEditor may choose to make available a full custom Component that edits its property value.
 java.lang.String getJavaInitializationString()
          This method is intended for use when generating Java code to set the value of the property.
 java.lang.String[] getTags()
          If the property value must be one of a set of known tagged values, then this method should return an array of the tags.
 java.lang.Object getValue()
          Gets the property value
 boolean isPaintable()
          Determines whether this property editor is paintable
 void paintValue(java.awt.Graphics g, java.awt.Rectangle clipRect)
          Paint a representation of the value into a given area of screen real estate
 void propertyChange(java.beans.PropertyChangeEvent e)
          This method gets called when a bound property is changed
 void setValue(java.lang.Object o)
          Sets (or changes) the object that is to be edited
 boolean supportsCustomEditor()
          Determines whether this property editor supports a custom editor
 
Methods inherited from class java.beans.PropertyEditorSupport
addPropertyChangeListener, firePropertyChange, getAsText, removePropertyChangeListener, setAsText
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ZoneEditor

public ZoneEditor()
Method Detail

setValue

public void setValue(java.lang.Object o)
Sets (or changes) the object that is to be edited

Specified by:
setValue in interface java.beans.PropertyEditor
Parameters:
o - the property value

getValue

public java.lang.Object getValue()
Gets the property value

Specified by:
getValue in interface java.beans.PropertyEditor
Returns:
the object value of the property

getTags

public java.lang.String[] getTags()
If the property value must be one of a set of known tagged values, then this method should return an array of the tags.

Specified by:
getTags in interface java.beans.PropertyEditor
Returns:
the string array containing tag values

isPaintable

public boolean isPaintable()
Determines whether this property editor is paintable

Specified by:
isPaintable in interface java.beans.PropertyEditor
Returns:
true if this is paintable otherwise false

getCustomEditor

public java.awt.Component getCustomEditor()
A PropertyEditor may choose to make available a full custom Component that edits its property value.

Specified by:
getCustomEditor in interface java.beans.PropertyEditor
Returns:
a component which is used as an editor

getJavaInitializationString

public java.lang.String getJavaInitializationString()
This method is intended for use when generating Java code to set the value of the property.

Specified by:
getJavaInitializationString in interface java.beans.PropertyEditor
Returns:
a string which is used for the code generation

paintValue

public void paintValue(java.awt.Graphics g,
                       java.awt.Rectangle clipRect)
Paint a representation of the value into a given area of screen real estate

Specified by:
paintValue in interface java.beans.PropertyEditor
Parameters:
g - uses it is to represent an editor
clipRect - it is to be painted

supportsCustomEditor

public boolean supportsCustomEditor()
Determines whether this property editor supports a custom editor

Specified by:
supportsCustomEditor in interface java.beans.PropertyEditor
Returns:
true if custom editor is supported otherwise not

propertyChange

public void propertyChange(java.beans.PropertyChangeEvent e)
This method gets called when a bound property is changed

Specified by:
propertyChange in interface java.beans.PropertyChangeListener
Parameters:
e - an event which is fired when any bound property is changed

ElegantJ Gauges Java API Specification v1.1

Submit a bug or feature

Copyright(c)
Elegant Microweb Technologies Pvt. Ltd.
www.elegantmicroweb.com
www.elegantjcharts.com
All Rights Reserved.