ilog.views.maps.beans.editor
Interface IlvSymbolLocationEditor

All Known Implementing Classes:
IlvCoordinatePanelFactory.CoordPointInputPanel

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.

Since:
JViews 7.5

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

setLon

void setLon(double lon)
Sets the longitude shown by the editor.

Parameters:
lon - longitude in radians.

getLon

double getLon()
Returns the longitude of the editor. It returns the longitude that the user entered into the dialog.

Returns:
the longitude of the editor.

setLat

void setLat(double lat)
Sets the latitude shown by the editor.

Parameters:
lat - latitude in radians.

setLatLon

void setLatLon(double lat,
               double lon)
Sets the latitude shown by the editor.

Parameters:
lat - latitude in radians.
lon - longitude in radians.
Since:
JViews 7.5

getLat

double getLat()
Returns the latitude of the editor. It returns the latitude that the user entered into the dialog.

Returns:
the latitude of the editor.

getComponent

JComponent getComponent()
Returns the component of the symbol location editor.

Returns:
symbol location editor Swing component.

addPropertyChangeListener

void addPropertyChangeListener(PropertyChangeListener listener)
Register a listener for the PropertyChange event. When the symbol location editor changes longitude or latitude it should fire a PropertyChange event on all registered PropertyChangeListeners, specifying "lon" or "lat" for the changed property name, or "lonlat" if both properties have changed at the same time, and itself as the source.

Parameters:
listener - An object to be invoked when a PropertyChange event is fired.

removePropertyChangeListener

void removePropertyChangeListener(PropertyChangeListener listener)
Remove a listener for the PropertyChange event.

Parameters:
listener - The PropertyChange listener to be removed.


Copyright © 1996-2007 ILOG S.A. All rights reserved.   Documentation homepage.