|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.maryanovsky.map.client.actions.StandardActions
com.maryanovsky.map.client.actions.mouse.StandardMouseActions
public class StandardMouseActions
Implementats the standard actions which allow the user to interact with the map on a regular desktop computer, utilizing a mouse/keyboard.
Constructor Summary | |
---|---|
StandardMouseActions()
|
Method Summary | |
---|---|
void |
addAll(MapWidget mapWidget)
Adds all the standard actions to the specified map widget. |
static void |
addAll(MapWidget mapWidget,
boolean isAnimated)
Adds all the standard actions to the specified map widget, with optionally animated transitions. |
static ClickRecognizer |
addDoubleClickZoomIn(MapWidget mapWidget,
boolean isAnimated)
Adds an action to the specified map widget allowing the user to zoom-in and recenter on a location by double-clicking it. |
static DragRecognizer |
addDragPan(MapWidget mapWidget)
Adds an action to the specified map widget allowing the user to pan the map by dragging it with the left mouse button. |
static ClickRecognizer |
addRightClickPan(MapWidget mapWidget,
boolean isAnimated)
Adds an action to the specified map widget allowing the user to pan the map to a specified location by right-clicking it. |
static DragRecognizer |
addShiftDragAreaSelection(MapWidget mapWidget,
boolean isKeepRatio,
boolean isAnimated)
Adds an action to the specified map widget allowing the user to select the area he wants to zoom-in on by dragging a rectangle on the map while holding down the SHIFT key. |
static WheelScrollRecognizer |
addWheelZoom(MapWidget mapWidget,
boolean isAnimated)
Adds an action to the specified map widget allowing the user to zoom in or out using his mouse wheel. |
Methods inherited from class com.maryanovsky.map.client.actions.StandardActions |
---|
getInstance |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public StandardMouseActions()
Method Detail |
---|
public static DragRecognizer addDragPan(MapWidget mapWidget)
DragRecognizer
responsible for recognizing the drag
gestures.
public static ClickRecognizer addRightClickPan(MapWidget mapWidget, boolean isAnimated)
ClickRecognizer
responsible for recognizing the click
gestures.
public static ClickRecognizer addDoubleClickZoomIn(MapWidget mapWidget, boolean isAnimated)
ClickRecognizer
responsible for recognizing the click
gestures.
public static WheelScrollRecognizer addWheelZoom(MapWidget mapWidget, boolean isAnimated)
WheelScrollRecognizer
responsible for recognizing the
wheel-scroll gestures.
public static DragRecognizer addShiftDragAreaSelection(MapWidget mapWidget, boolean isKeepRatio, boolean isAnimated)
DragRecognizer
responsible for recognizing the drag
gestures.
public static void addAll(MapWidget mapWidget, boolean isAnimated)
public void addAll(MapWidget mapWidget)
addAll
in class StandardActions
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |