|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
ilog.views.maps.beans.editor.IlvCoordinatePanelFactory.CoordPointInputPanel
public static class IlvCoordinatePanelFactory.CoordPointInputPanel
This class encapsulates one coordinate input panels to select a lat/lon point.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class javax.swing.JPanel |
|---|
JPanel.AccessibleJPanel |
| Nested classes/interfaces inherited from class javax.swing.JComponent |
|---|
JComponent.AccessibleJComponent |
| Nested classes/interfaces inherited from class java.awt.Container |
|---|
Container.AccessibleAWTContainer |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy |
| Field Summary |
|---|
| Fields inherited from class javax.swing.JComponent |
|---|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
| Fields inherited from class java.awt.Component |
|---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface java.awt.image.ImageObserver |
|---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
|---|---|
IlvCoordinatePanelFactory.CoordPointInputPanel(IlvManagerView view,
IlvCoordinateFormatter system)
Creates a panel to input a point. |
|
| Method Summary | |
|---|---|
void |
addPropertyChangeListener(PropertyChangeListener listener)
Adds a specified ChangeListener to the panel in order to catch coordinate
changes. |
JComponent |
getComponent()
Returns the component of the symbol location editor. |
double |
getLat()
Returns the latitude of the point. |
double |
getLon()
Returns the longitude of the point. |
boolean |
isInvalid()
Indicates if the point is valid. |
void |
removePropertyChangeListener(PropertyChangeListener listener)
Removes a specified ChangeListener from the panel. |
void |
resetLatLon()
Reset the latitude and longitude fields. |
void |
setLat(double lat)
Sets the latitude of the point. |
void |
setLatLon(double lat,
double lon)
Sets the coordinates of the point. |
void |
setLon(double lon)
Sets the longitude of the point. |
void |
setSystem(IlvCoordinateFormatter system)
Sets a new system to be used. |
| Methods inherited from class javax.swing.JPanel |
|---|
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public IlvCoordinatePanelFactory.CoordPointInputPanel(IlvManagerView view,
IlvCoordinateFormatter system)
view - The view of the application.system - The coordinate system used to display the coordinates.| Method Detail |
|---|
public void addPropertyChangeListener(PropertyChangeListener listener)
ChangeListener to the panel in order to catch coordinate
changes.
addPropertyChangeListener in interface IlvSymbolLocationEditoraddPropertyChangeListener in class Containerlistener - The listener to be added.public double getLat()
getLat in interface IlvSymbolLocationEditorpublic double getLon()
getLon in interface IlvSymbolLocationEditorpublic boolean isInvalid()
true, the point is valid.public void removePropertyChangeListener(PropertyChangeListener listener)
ChangeListener from the panel.
removePropertyChangeListener in interface IlvSymbolLocationEditorremovePropertyChangeListener in class Componentlistener - The listener to be removed.public void resetLatLon()
public void setLat(double lat)
setLat in interface IlvSymbolLocationEditorlat - The latitude in radians.
public void setLatLon(double lat,
double lon)
setLatLon in interface IlvSymbolLocationEditorlat - The latitude in radians.lon - The longitude in radians.public void setLon(double lon)
setLon in interface IlvSymbolLocationEditorlon - The longitude in radians.public void setSystem(IlvCoordinateFormatter system)
system - The new coordinate system.public JComponent getComponent()
getComponent in interface IlvSymbolLocationEditorIlvSymbolLocationEditor.getComponent()
|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||