@Api(allMethods=true) public abstract class AbstractGraphicsController extends org.geomajas.gwt.client.controller.AbstractController implements GraphicsController
Abstraction of the GraphicsController that implements all methods as empty methods. By using this as a
starting point for your own controllers, you don't have to clutter your code with empty methods that you don't use
anyway.
What makes this class special is that it provides a few protected methods for easily acquiring information from the mouse events. You can for example get the event's position, or target DOM element.
| Modifier and Type | Method and Description |
|---|---|
int |
getOffsetX()
Deprecated.
Since 1.10, due to http://jira.geomajas.org/browse/GWT-354. No longer used.
|
int |
getOffsetY()
Deprecated.
Since 1.10, due to http://jira.geomajas.org/browse/GWT-354. No longer used.
|
void |
onActivate()
Function executed when the controller instance is applied on the map.
|
void |
onDeactivate()
Function executed when the controller instance is removed from the map.
|
void |
onDoubleClick(DoubleClickEvent event) |
void |
onMouseDown(MouseDownEvent event) |
void |
onMouseMove(MouseMoveEvent event) |
void |
onMouseOut(MouseOutEvent event) |
void |
onMouseOver(MouseOverEvent event) |
void |
onMouseUp(MouseUpEvent event) |
void |
onMouseWheel(MouseWheelEvent event) |
void |
setOffsetX(int offsetX)
Deprecated.
Since 1.10, due to http://jira.geomajas.org/browse/GWT-354. No longer used.
|
void |
setOffsetY(int offsetY)
Deprecated.
Since 1.10, due to http://jira.geomajas.org/browse/GWT-354. No longer used.
|
getLocation, getTarget, isDragging, isRightMouseButton, onDown, onDrag, onTouchCancel, onTouchEnd, onTouchMove, onTouchStart, onUpequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitonTouchStartonTouchEndonTouchMoveonTouchCancelpublic void onActivate()
onActivate in interface GraphicsControllerpublic void onDeactivate()
onDeactivate in interface GraphicsControllerpublic void onMouseDown(MouseDownEvent event)
onMouseDown in interface MouseDownHandleronMouseDown in class org.geomajas.gwt.client.controller.AbstractControllerpublic void onMouseUp(MouseUpEvent event)
onMouseUp in interface MouseUpHandleronMouseUp in class org.geomajas.gwt.client.controller.AbstractControllerpublic void onMouseMove(MouseMoveEvent event)
onMouseMove in interface MouseMoveHandleronMouseMove in class org.geomajas.gwt.client.controller.AbstractControllerpublic void onMouseOut(MouseOutEvent event)
onMouseOut in interface MouseOutHandleronMouseOut in class org.geomajas.gwt.client.controller.AbstractControllerpublic void onMouseOver(MouseOverEvent event)
onMouseOver in interface MouseOverHandleronMouseOver in class org.geomajas.gwt.client.controller.AbstractControllerpublic void onMouseWheel(MouseWheelEvent event)
onMouseWheel in interface MouseWheelHandleronMouseWheel in class org.geomajas.gwt.client.controller.AbstractControllerpublic void onDoubleClick(DoubleClickEvent event)
onDoubleClick in interface DoubleClickHandleronDoubleClick in class org.geomajas.gwt.client.controller.AbstractController@Deprecated public int getOffsetX()
getOffsetX in interface GraphicsController@Deprecated public void setOffsetX(int offsetX)
setOffsetX in interface GraphicsControlleroffsetX - Set the actual offset value in pixels.@Deprecated public int getOffsetY()
getOffsetY in interface GraphicsController@Deprecated public void setOffsetY(int offsetY)
setOffsetY in interface GraphicsControlleroffsetY - Set the actual offset value in pixels.Copyright © 2013 Geosparc. All Rights Reserved.