|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IlvSymbolLocationEditor
A symbol location editor allows the user to enter the location of
a symbol on a map. Typically, this interface is be implemented by
a component that allows to enter the longitude and latitude
of the symbol position. The component can be used modal and modeless.
In a modal dialog, the edited values are retrieved via getLon()
and getLat() after closing the dialog.
In a modeless dialog, you register property change listeners at the editor
that receive an event when the edited longitude and latitude change.
| Method Summary | |
|---|---|
void |
addPropertyChangeListener(PropertyChangeListener listener)
Register a listener for the PropertyChange event. |
JComponent |
getComponent()
Returns the component of the symbol location editor. |
double |
getLat()
Returns the latitude of the editor. |
double |
getLon()
Returns the longitude of the editor. |
void |
removePropertyChangeListener(PropertyChangeListener listener)
Remove a listener for the PropertyChange event. |
void |
setLat(double lat)
Sets the latitude shown by the editor. |
void |
setLatLon(double lat,
double lon)
Sets the latitude shown by the editor. |
void |
setLon(double lon)
Sets the longitude shown by the editor. |
| Method Detail |
|---|
void setLon(double lon)
lon - longitude in radians.double getLon()
void setLat(double lat)
lat - latitude in radians.
void setLatLon(double lat,
double lon)
lat - latitude in radians.lon - longitude in radians.double getLat()
JComponent getComponent()
void addPropertyChangeListener(PropertyChangeListener listener)
listener - An object to be invoked when a PropertyChange
event is fired.void removePropertyChangeListener(PropertyChangeListener listener)
listener - The PropertyChange listener to be removed.
|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||