|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectskrueger.geotools.XMapPaneAction_Select
public abstract class XMapPaneAction_Select
Nested Class Summary | |
---|---|
static class |
XMapPaneAction_Select.All
|
static class |
XMapPaneAction_Select.OneFromTop
|
static class |
XMapPaneAction_Select.Top
|
Field Summary | |
---|---|
static double |
DEFAULT_DISTANCE_FRACTION
Default distance fraction used with line and point features. |
Fields inherited from interface skrueger.geotools.XMapPaneAction |
---|
PAN, SELECT_ALL, SELECT_ONE_FROM_TOP, SELECT_TOP, ZOOM_IN, ZOOM_OUT |
Constructor Summary | |
---|---|
XMapPaneAction_Select()
|
Method Summary | |
---|---|
void |
performClick(XMapPane xMapPane,
MouseEvent ev,
DirectPosition geoCoord)
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)
Does nothing if initiated by keyboard. |
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 static final double DEFAULT_DISTANCE_FRACTION
Constructor Detail |
---|
public XMapPaneAction_Select()
Method Detail |
---|
public void performClick(XMapPane xMapPane, MouseEvent ev, DirectPosition geoCoord)
XMapPaneAction
MouseInputType.LClick
and
MouseInputType.RClick
.
performClick
in interface XMapPaneAction
xMapPane
- map pane the action should be performed onev
- mouse event of the actiongeoCoord
- geo coordinate the click is performed onpublic void performKeyboard(XMapPane mapPane, Object param)
performKeyboard
in interface XMapPaneAction
mapPane
- map pane the action should be performed onparam
- An optinal paramter that can be defined.public void performDragged(XMapPane mapPane, MouseEvent ev, Point dragStartPos, Point dragLastPos, DirectPosition startCoord, DirectPosition endCoord)
XMapPaneAction
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)
XMapPaneAction
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 on
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |