|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectskrueger.geotools.XMapPaneAction_Pan
public class XMapPaneAction_Pan
Nested Class Summary | |
---|---|
static class |
XMapPaneAction_Pan.Direction
|
Field Summary | |
---|---|
Cursor |
backupCursor
This variable can be used to backup the active cursor of the mapPane, if the actions changes the cursor during dragging |
Fields inherited from interface skrueger.geotools.XMapPaneAction |
---|
PAN, SELECT_ALL, SELECT_ONE_FROM_TOP, SELECT_TOP, ZOOM_IN, ZOOM_OUT |
Constructor Summary | |
---|---|
XMapPaneAction_Pan()
|
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)
Performs a pan action. |
void |
performDragging(XMapPane mapPane,
MouseEvent ev,
Point dragStartPos,
Point dragLastPos,
DirectPosition startCoord,
DirectPosition endCoord)
TODO: Stop dragging if the expected map area would not be valid. |
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). |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public Cursor backupCursor
Constructor Detail |
---|
public XMapPaneAction_Pan()
Method Detail |
---|
public void performDragged(XMapPane mapPane, MouseEvent ev, Point dragStartPos, Point dragLastPos, DirectPosition startCoord, DirectPosition endCoord)
#imageOrigin
object. Calling #performPan()
will reset the
offset and call #setMapArea(Envelope)
.
performDragged
in interface XMapPaneAction
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 endspublic void performDragging(XMapPane mapPane, MouseEvent ev, Point dragStartPos, Point dragLastPos, DirectPosition startCoord, DirectPosition endCoord)
performDragging
in interface XMapPaneAction
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 overpublic void performWheel(XMapPane mapPane, MouseWheelEvent ev, DirectPosition coord)
XMapPaneAction
performWheel
in interface XMapPaneAction
mapPane
- map pane the action should be performed onev
- mouse event of the actioncoord
- geo coordinate the wheel is turned onpublic void performClick(XMapPane mapPane, MouseEvent ev, DirectPosition coord)
XMapPaneAction
MouseInputType.LClick
and
MouseInputType.RClick
.
performClick
in interface XMapPaneAction
mapPane
- map pane the action should be performed onev
- mouse event of the actioncoord
- geo coordinate the click is performed onpublic void performKeyboard(XMapPane mapPane, Object param)
XMapPaneAction
performKeyboard
in interface XMapPaneAction
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 |