|
||||||||||
| 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.CoordRectangleInputPanel
public static class IlvCoordinatePanelFactory.CoordRectangleInputPanel
This class encapsulates two coordinate input panels to select a lat/lon box.
| 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 | |
|---|---|
protected JButton |
btn
The button triggering the selection of a bounding box. |
| 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.CoordRectangleInputPanel(IlvManagerView view,
IlvCoordinateFormatter system)
Create this panel. |
|
| Method Summary | |
|---|---|
void |
addPropertyChangeListener(PropertyChangeListener listener)
Adds a specified ChangeListener to the panel in order to catch coordinate
changes. |
double |
getLatMax()
Returns the latitude of the top/northernmost point. |
double |
getLatMin()
Returns the latitude of the bottom/southernmost point. |
double |
getLonMax()
Returns the longitude of the right/easternmost point. |
double |
getLonMin()
Returns the longitude of the left/westernmost point. |
boolean |
isInvalid()
Indicates if the two points of the bounding box diagonal are valid. |
boolean |
isUsingErgonomicPlacement()
Indicates whether the lat/lon fields are better placed ergonomically or not, when there are only
lat/lon fields. |
void |
removePropertyChangeListener(PropertyChangeListener listener)
Removes a specified ChangeListener from the panel. |
void |
resetLatLon()
Resets the latitude and longitude fields. |
void |
setEnabled(boolean status)
Activates or deactivates the panel and its contents. |
void |
setLatLonMax(double lat,
double lon)
Sets the coordinates of the top-right/northeastern point. |
void |
setLatLonMin(double lat,
double lon)
Sets the coordinates of the bottom-left/southeastern point. |
void |
setLatMax(double lat)
Sets the latitude of the top/northernmost point. |
void |
setLatMin(double lat)
Sets the latitude of the bottom/southernmost point. |
void |
setLonMax(double lon)
Sets the longitude of the right/easternmost point. |
void |
setLonMin(double lon)
Sets the longitude of the left/westernmost point. |
void |
setSystem(IlvCoordinateFormatter system)
Sets a new system to be used. |
void |
setUsingErgonomicPlacement(boolean usingErgonomicPlacement)
Indicates whether the lat/lon fields are better placed ergonomically or not, when there are only
lat/lon fields. |
| 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 |
| Field Detail |
|---|
protected final JButton btn
| Constructor Detail |
|---|
public IlvCoordinatePanelFactory.CoordRectangleInputPanel(IlvManagerView view,
IlvCoordinateFormatter system)
view - View.system - The CoordinateSystem to use.| Method Detail |
|---|
public void addPropertyChangeListener(PropertyChangeListener listener)
ChangeListener to the panel in order to catch coordinate
changes.
addPropertyChangeListener in class Containerlistener - The listener to be added.public double getLatMax()
public double getLatMin()
public double getLonMax()
public double getLonMin()
public boolean isInvalid()
true, the two points are valid.public void removePropertyChangeListener(PropertyChangeListener listener)
ChangeListener from the panel.
removePropertyChangeListener in class Componentlistener - the listener to be removed.public void resetLatLon()
public void setEnabled(boolean status)
setEnabled in class JComponentstatus - A boolean true for activation or false for deactivation.
public void setLatLonMax(double lat,
double lon)
lat - The latitude in radians.lon - The longitude in radians.
public void setLatLonMin(double lat,
double lon)
lat - The latitude in radians.lon - The longitude in radians.public void setLatMax(double lat)
lat - The latitude in radians.public void setLatMin(double lat)
lat - The latitude in radians.public void setLonMax(double lon)
lon - The longitude in radians.public void setLonMin(double lon)
lon - The longitude in radians.public void setSystem(IlvCoordinateFormatter system)
lat/lon,
recreates the GUI, and restores the lat/lon.
system - The new coordinate system.public boolean isUsingErgonomicPlacement()
lat/lon fields are better placed ergonomically or not, when there are only
lat/lon fields.
true, lat/lon fields are better placed ergonomically.public void setUsingErgonomicPlacement(boolean usingErgonomicPlacement)
lat/lon fields are better placed ergonomically or not, when there are only
lat/lon fields.
The default is true. To retrieve the placement used in 7.5 or lower, use false.
usingErgonomicPlacement - If true, lat/lon fields are placed according to their meaning.
|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||