|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.maryanovsky.map.client.actions.MapAction<HasAllDragHandlers>
com.maryanovsky.map.client.actions.mouse.AreaSelectionAction
public class AreaSelectionAction
A drag action which allows the user to select the area he would like to be displayed on the map.
| Field Summary |
|---|
| Fields inherited from class com.maryanovsky.map.client.actions.MapAction |
|---|
isAnimated, mapWidget |
| Constructor Summary | |
|---|---|
AreaSelectionAction(MapWidget mapWidget,
boolean keepRatio,
boolean isAnimated)
Creates a new AreaSelectionAction for the specified map widget,
with optional ratio-keeping and animation of the transition. |
|
| Method Summary | |
|---|---|
protected Widget |
createSelectionWidget()
Creates the widget that will display the selected area. |
void |
onDragCancel(DragCancelEvent evt)
Invoked when the mouse button is released without creating a drag event. |
void |
onDragEnd(DragEndEvent evt)
Invoked when a drag gesture ends. |
void |
onDragMove(DragMoveEvent evt)
Invoked when a drag gesture is in progress. |
void |
onDragStart(DragStartEvent evt)
Invoked when a drag gesture starts. |
HandlerRegistration |
registerWith(HasAllDragHandlers dragSource)
Registers for handling drag events from the specified source. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AreaSelectionAction(MapWidget mapWidget,
boolean keepRatio,
boolean isAnimated)
AreaSelectionAction for the specified map widget,
with optional ratio-keeping and animation of the transition.
If keepRatio is true, the displayed selection
will be forced into the same width-to-height ratio as the map widget.
mapWidget - The target map widget.keepRatio - Whether the width-to-height ratio of the selection
rectangle should be restricted to match that of the map widget.isAnimated - Whether the zoom-in transition is animated.| Method Detail |
|---|
public HandlerRegistration registerWith(HasAllDragHandlers dragSource)
registerWith in class MapAction<HasAllDragHandlers>protected Widget createSelectionWidget()
SimplePanel with another one embedded in
it. The style names are map-AreaSelectionActionRectOuter and
map-AreaSelectionActionRectInner.
public void onDragStart(DragStartEvent evt)
onDragStart in interface DragStartHandlerpublic void onDragCancel(DragCancelEvent evt)
onDragCancel in interface DragCancelHandlerpublic void onDragMove(DragMoveEvent evt)
onDragMove in interface DragMoveHandlerpublic void onDragEnd(DragEndEvent evt)
onDragEnd in interface DragEndHandler
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||