|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface XMapPaneAction
Defines an action (e.g. Zoom in, zoom out, drag) when a click, drag or window
selection is performed on a XMapPane
.
Field Summary | |
---|---|
static XMapPaneAction_Pan |
PAN
This action can be assigned to any MouseInputType to perform
panning on a Map |
static XMapPaneAction_Select.All |
SELECT_ALL
This action can be assigned to fire events for any number of feature from all layers. |
static XMapPaneAction_Select.OneFromTop |
SELECT_ONE_FROM_TOP
This action can be assigned to fire selection events for one feature from the top layer. |
static XMapPaneAction_Select.Top |
SELECT_TOP
This action can be assigned to fire events for any number of feature from the top layer. |
static XMapPaneAction_Zoom |
ZOOM_IN
This action can be assigned to any MouseInputType to perform
zoom-in |
static XMapPaneAction_Zoom |
ZOOM_OUT
This action can be assigned to any MouseInputType to perform
zoom-out |
Method Summary | |
---|---|
void |
performClick(XMapPane mapPane,
MouseEvent ev,
DirectPosition coord)
Defines the action in case of a single click on the map. |
void |
performDragged(XMapPane mapPane,
MouseEvent ev,
Point dragStartPos,
Point dragLastPos,
DirectPosition startCoord,
DirectPosition endCoord)
Defines the action in case of a window selection on the map (the moment a drag ends). |
void |
performDragging(XMapPane mapPane,
MouseEvent ev,
Point dragStartPos,
Point dragLastPos,
DirectPosition startCoord,
DirectPosition endCoord)
Defines the action in case of a mouse drag on the map. |
void |
performKeyboard(XMapPane mapPane,
Object param)
Defines what happens if this action has been triggered by a keyboard-key. |
void |
performWheel(XMapPane mapPane,
MouseWheelEvent ev,
DirectPosition coord)
Defines the action in case of a mouse wheel action on the map (the moment a drag ends). |
Field Detail |
---|
static final XMapPaneAction_Zoom ZOOM_IN
MouseInputType
to perform
zoom-in
static final XMapPaneAction_Zoom ZOOM_OUT
MouseInputType
to perform
zoom-out
static final XMapPaneAction_Pan PAN
MouseInputType
to perform
panning on a Map
static final XMapPaneAction_Select.All SELECT_ALL
static final XMapPaneAction_Select.OneFromTop SELECT_ONE_FROM_TOP
static final XMapPaneAction_Select.Top SELECT_TOP
Method Detail |
---|
void performClick(XMapPane mapPane, MouseEvent ev, DirectPosition coord)
MouseInputType.LClick
and
MouseInputType.RClick
.
mapPane
- map pane the action should be performed onev
- mouse event of the actioncoord
- geo coordinate the click is performed onvoid performDragging(XMapPane mapPane, MouseEvent ev, Point dragStartPos, Point dragLastPos, DirectPosition startCoord, DirectPosition endCoord)
mapPane
- map pane the action should be performed onev
- mouse event of the actiondragStartPos
- window position the drag was started (the current position can
be determined from the mouse event)startCoord
- geo coordinate the drag was startedendCoord
- geo coordinate the drag is currently moved overvoid performDragged(XMapPane mapPane, MouseEvent ev, Point dragStartPos, Point dragLastPos, DirectPosition startCoord, DirectPosition endCoord)
mapPane
- map pane the action should be performed onev
- mouse event of the actiondragStartPos
- window position the window starts (the end position can be
determined from the mouse event)startCoord
- geo coordinate the window startsendCoord
- geo coordinate the window endsvoid performWheel(XMapPane mapPane, MouseWheelEvent ev, DirectPosition coord)
mapPane
- map pane the action should be performed onev
- mouse event of the actioncoord
- geo coordinate the wheel is turned onvoid performKeyboard(XMapPane mapPane, Object param)
mapPane
- map pane the action should be performed onparam
- An optinal paramter that can be defined.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |