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, wait
getAsText
public IlvCoordinateEditor()
IlvCoordinateEditor
instance.public void setValue(Object value)
setValue
in interface PropertyEditor
value
- The new value to be edited.PropertyEditor.setValue(java.lang.Object)
public Object getValue()
getValue
in interface PropertyEditor
PropertyEditor.getValue()
public boolean isPaintable()
Note: this base class in not paintable.
isPaintable
in interface PropertyEditor
false
.PropertyEditor.isPaintable()
public void paintValue(Graphics g, Rectangle r)
paintValue
in interface PropertyEditor
g
- Unused.r
- Unused.PropertyEditor.paintValue(java.awt.Graphics, java.awt.Rectangle)
public String getJavaInitializationString()
getJavaInitializationString
in interface PropertyEditor
PropertyEditor.getJavaInitializationString()
public void setAsText(String text) throws IllegalArgumentException
String
.
This method decodes text
using
IlvProjectionUtil.DMSToRadian(java.lang.String)
.
setAsText
in interface PropertyEditor
text
- 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 PropertyEditor
null
.PropertyEditor.getTags()
public Component getCustomEditor()
Note: this base class does not support a custom editor.
getCustomEditor
in interface PropertyEditor
null
.PropertyEditor.getCustomEditor()
,
supportsCustomEditor()
public boolean supportsCustomEditor()
Note: this base class does not support a custom editor.
supportsCustomEditor
in interface PropertyEditor
false
.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 PropertyEditor
PropertyEditor.addPropertyChangeListener(java.beans.PropertyChangeListener)
public void removePropertyChangeListener(PropertyChangeListener listener)
removePropertyChangeListener
in interface PropertyEditor
PropertyEditor.removePropertyChangeListener(java.beans.PropertyChangeListener)
© Copyright Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.