|
|||||||||
PREV CLASS 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.JToolBar
schmitzm.geotools.gui.MapActionControlPane
public class MapActionControlPane
Diese Klasse stellt einen JToolBar
dar, mit dem zwischen den
verschiedenen "Klick"- und "Drag"-Aktionen des JMapPane
gewechselt werden
kann:
FeatureSelectedEvent
:
Nested Class Summary | |
---|---|
protected class |
MapActionControlPane.Action_InfoState
Aktion "Info" des MapActionControlPane . |
protected class |
MapActionControlPane.Action_SelectOnAllLayerState
Aktion "SelectAll" des MapActionControlPane . |
protected class |
MapActionControlPane.Action_SelectOnTopLayerState
Aktion "SelectTop" des MapActionControlPane . |
protected class |
MapActionControlPane.Action_ZoomState
Aktion "Zoom" des MapActionControlPane . |
Nested classes/interfaces inherited from class javax.swing.JToolBar |
---|
JToolBar.AccessibleJToolBar, JToolBar.Separator |
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.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy |
Field Summary | |
---|---|
static int |
ACTION_ALL
Konstante um die ALLE Aktionen in der Mask der zur Verfuegung stehenden Buttons anzusprechen. |
static int |
ACTION_INFO
Konstante um die Aktion "Info" in der Mask der zur Verfuegung stehenden Buttons anzusprechen. |
static int |
ACTION_SELECT_ALL
Konstante um die Aktion "SelectAll" in der Mask der zur Verfuegung stehenden Buttons anzusprechen. |
static int |
ACTION_SELECT_TOP
Konstante um die Aktion "SelectTop" in der Mask der zur Verfuegung stehenden Buttons anzusprechen. |
static int |
ACTION_ZOOM_IN
Konstante um die Aktion "Zoom" in der Mask der zur Verfuegung stehenden Buttons anzusprechen. |
protected int |
actionMask
Maske, die die zur Verfuegung stehenden Aktionen codiert |
static String |
INFO
Key-Konstante um die Aktion "Info" anzusprechen. |
protected JToggleButton |
infoState
Button fuer Info-Aktion. |
protected JMapPane |
mapPane
JMapPane das gesteuert wird. |
static String |
SELECT_ALL
Key-Konstante um die Aktion "SelectAll" anzusprechen. |
static String |
SELECT_TOP
Key-Konstante um die Aktion "SelectTop" anzusprechen. |
protected JToggleButton |
selectAllState
Button fuer SelectAll-Aktion. |
protected JToggleButton |
selectTopState
Button fuer SelectTop-Aktion. |
static String |
ZOOM_IN
Key-Konstante um die Aktion "Zoom" anzusprechen. |
protected JToggleButton |
zoomState
Button fuer Zoom-Aktion. |
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 javax.swing.SwingConstants |
---|
BOTTOM, CENTER, EAST, HORIZONTAL, LEADING, LEFT, NEXT, NORTH, NORTH_EAST, NORTH_WEST, PREVIOUS, RIGHT, SOUTH, SOUTH_EAST, SOUTH_WEST, TOP, TRAILING, VERTICAL, WEST |
Fields inherited from interface java.awt.image.ImageObserver |
---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
---|---|
MapActionControlPane()
Erzeugt eine horizontale Steuer-Komponente, die (noch) keinem JMapPane
zugeordnet ist. |
|
MapActionControlPane(JMapPane mapPane)
Erzeugt eine horizontale Steuer-Komponente. |
|
MapActionControlPane(JMapPane mapPane,
int orientation)
Erzeugt eine Steuer-Komponente. |
|
MapActionControlPane(JMapPane mapPane,
int orientation,
int actionMask)
Erzeugt eine Steuer-Komponente. |
Method Summary | |
---|---|
JMapPane |
getMapPane()
Liefert das JMapPane , das durch diese Komponente gesteuert wird. |
boolean |
isActionVisible(int action)
Prueft, ob eine Aktion (Button) zur Verfuegung steht. |
void |
resetActions()
Setzt die Aktivierung der Aktionen entsprechend den Einstellungen des JMapPane . |
void |
resetCaptions(Map<String,Object> newCaptions)
Belegt die Beschriftungen der Aktionen neu. |
void |
setMapPane(JMapPane mapPane)
Setzt das JMapPane , das durch diese Komponente gesteuert wird. |
Methods inherited from class javax.swing.JToolBar |
---|
add, addImpl, addSeparator, addSeparator, createActionChangeListener, createActionComponent, getAccessibleContext, getComponentAtIndex, getComponentIndex, getMargin, getOrientation, getUI, getUIClassID, isBorderPainted, isFloatable, isRollover, paintBorder, paramString, setBorderPainted, setFloatable, setLayout, setMargin, setOrientation, setRollover, setUI, updateUI |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int ACTION_INFO
public static final int ACTION_ZOOM_IN
public static final int ACTION_SELECT_ALL
public static final int ACTION_SELECT_TOP
public static final int ACTION_ALL
public static final String INFO
resetCaptions(Map)
public static final String ZOOM_IN
resetCaptions(Map)
public static final String SELECT_ALL
resetCaptions(Map)
public static final String SELECT_TOP
resetCaptions(Map)
protected JMapPane mapPane
JMapPane
das gesteuert wird.
protected JToggleButton infoState
protected JToggleButton zoomState
protected JToggleButton selectTopState
protected JToggleButton selectAllState
protected int actionMask
Constructor Detail |
---|
public MapActionControlPane()
JMapPane
zugeordnet ist.
public MapActionControlPane(JMapPane mapPane)
mapPane
- JMapPane
das gesteuert wirdpublic MapActionControlPane(JMapPane mapPane, int orientation, int actionMask)
mapPane
- JMapPane
das gesteuert wirdorientation
- Orientierung der Komponente (SwingConstants.HORIZONTAL
/SwingConstants.VERTICAL
)actionMask
- definiert, welche Aktionen (in Form von Buttons) angezeigt werden
(OR-Verknuepfung der ACTION
-Konstantenpublic MapActionControlPane(JMapPane mapPane, int orientation)
mapPane
- JMapPane
das gesteuert wirdorientation
- Orientierung der Komponente (SwingConstants.HORIZONTAL
/SwingConstants.VERTICAL
)Method Detail |
---|
public void resetActions()
JMapPane
.
JMapPane.getWindowSelectionState()
public boolean isActionVisible(int action)
action
- Aktion codiert durch eine ACTION
-Konstantepublic void setMapPane(JMapPane mapPane)
JMapPane
, das durch diese Komponente gesteuert wird.
public JMapPane getMapPane()
JMapPane
, das durch diese Komponente gesteuert wird.
public void resetCaptions(Map<String,Object> newCaptions)
resetCaptions
in interface CaptionsChangeable
newCaptions
- enhaelt die neuen BeschriftungenINFO
,
ZOOM_IN
,
SELECT_TOP
,
SELECT_ALL
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |