public abstract class IlvCoordinateEditor extends Object implements PropertyEditor
IlvCoordinateEditor is the abstract base class for classes
used to edit coordinate values in degrees, minutes and seconds.
Use the following subclasses of IlvCoordinateEditor as
coordinate editors:
| Modifier and Type | Field and Description |
|---|---|
protected double |
current
The value currently being edited.
|
| Constructor and Description |
|---|
IlvCoordinateEditor()
Creates a new
IlvCoordinateEditor instance. |
| Modifier and Type | Method and Description |
|---|---|
void |
addPropertyChangeListener(PropertyChangeListener listener) |
void |
firePropertyChange(double old,
double newval)
Fires a
PropertyChangeEvent to all listeners attached to
this property editor. |
Component |
getCustomEditor()
Returns the custom editor for this property editor.
|
String |
getJavaInitializationString() |
String[] |
getTags()
Returns the tags for this property editor.
|
Object |
getValue()
Returns the current value of this editor.
|
boolean |
isPaintable()
Tests if this property editor is paintable.
|
void |
paintValue(Graphics g,
Rectangle r)
This base method does nothing, the editor is not paintable.
|
void |
removePropertyChangeListener(PropertyChangeListener listener) |
void |
setAsText(String text)
Changes the value of the editor from a text
String. |
void |
setValue(Object value)
Changes the value of the editor.
|
boolean |
supportsCustomEditor()
Tests if this property editor supports a custom editor.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetAsTextpublic IlvCoordinateEditor()
IlvCoordinateEditor instance.public void setValue(Object value)
setValue in interface PropertyEditorvalue - The new value to be edited.PropertyEditor.setValue(java.lang.Object)public Object getValue()
getValue in interface PropertyEditorPropertyEditor.getValue()public boolean isPaintable()
Note: this base class in not paintable.
isPaintable in interface PropertyEditorfalse.PropertyEditor.isPaintable()public void paintValue(Graphics g, Rectangle r)
paintValue in interface PropertyEditorg - Unused.r - Unused.PropertyEditor.paintValue(java.awt.Graphics, java.awt.Rectangle)public String getJavaInitializationString()
getJavaInitializationString in interface PropertyEditorPropertyEditor.getJavaInitializationString()public void setAsText(String text) throws IllegalArgumentException
String.
This method decodes text using
IlvProjectionUtil.DMSToRadian(java.lang.String).
setAsText in interface PropertyEditortext - The new coordinate string.IllegalArgumentException - if text cannot be decoded
by IlvProjectionUtil.PropertyEditor.setAsText(java.lang.String)public String[] getTags()
Note: this base class does not support tags.
getTags in interface PropertyEditornull.PropertyEditor.getTags()public Component getCustomEditor()
Note: this base class does not support a custom editor.
getCustomEditor in interface PropertyEditornull.PropertyEditor.getCustomEditor(),
supportsCustomEditor()public boolean supportsCustomEditor()
Note: this base class does not support a custom editor.
supportsCustomEditor in interface PropertyEditorfalse.PropertyEditor.supportsCustomEditor()public void firePropertyChange(double old,
double newval)
PropertyChangeEvent to all listeners attached to
this property editor.old - The old property valuenewval - The new property value.public void addPropertyChangeListener(PropertyChangeListener listener)
addPropertyChangeListener in interface PropertyEditorPropertyEditor.addPropertyChangeListener(java.beans.PropertyChangeListener)public void removePropertyChangeListener(PropertyChangeListener listener)
removePropertyChangeListener in interface PropertyEditorPropertyEditor.removePropertyChangeListener(java.beans.PropertyChangeListener)© Copyright 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.