|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectComponent
Container
JComponent
JPanel
StatusBar
public class StatusBar
A status bar that displays the mouse cursor position in world coordinates.
modules/unsupported/swing (gt-swing.jar)
Nested Class Summary |
---|
Nested classes/interfaces inherited from class JPanel |
---|
JPanel.AccessibleJPanel |
Nested classes/interfaces inherited from class JComponent |
---|
JComponent.AccessibleJComponent |
Nested classes/interfaces inherited from class Container |
---|
Container.AccessibleAWTContainer |
Nested classes/interfaces inherited from class Component |
---|
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy |
Field Summary | |
---|---|
static int |
BOUNDS_SPACE
Index of the space used for map bounds |
static int |
COORDS_SPACE
Index of the space used for mouse coordinates |
static int |
CRS_SPACE
Index of teh space used for the CRS |
static int |
NUM_SPACES
Number of status bar spaces (text areas) |
Fields inherited from class 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 Component |
---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface ImageObserver |
---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
---|---|
StatusBar()
Default constructor. |
|
StatusBar(JMapPane pane)
Constructor. |
Method Summary | |
---|---|
void |
clearBounds()
Clear the map bounds display |
void |
clearCoords()
Clear the map coordinate display |
void |
displayBounds(Envelope bounds)
Display the bounding coordinates of the given envelope |
void |
displayCoords(DirectPosition2D mapPos)
Format and display the coordinates of the given position |
void |
displayCRS(CoordinateReferenceSystem crs)
Display the name of the coordinate reference system |
void |
setMapPane(JMapPane newPane)
Register this status bar to receive mouse events from the given map pane |
Methods inherited from class JPanel |
---|
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
Methods inherited from class Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int NUM_SPACES
public static final int COORDS_SPACE
public static final int BOUNDS_SPACE
public static final int CRS_SPACE
Constructor Detail |
---|
public StatusBar()
public StatusBar(JMapPane pane)
pane
- the map pane that will send mouse events to this
status barMethod Detail |
---|
public void setMapPane(JMapPane newPane)
newPane
- the map pane
IllegalArgumentException
- if pane is nullpublic void clearCoords()
public void clearBounds()
public void displayCoords(DirectPosition2D mapPos)
mapPos
- mouse cursor position (world coords)public void displayBounds(Envelope bounds)
bounds
- the bounds to displaypublic void displayCRS(CoordinateReferenceSystem crs)
crs
- the CRS to display
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |