public class Compass extends Object implements HasRotationHandlers
Modifier and Type | Field and Description |
---|---|
protected int |
angle |
protected org.vectomatic.dom.svg.OMSVGSVGElement |
compass |
protected boolean |
rotate |
protected org.vectomatic.dom.svg.OMSVGGElement |
textGroup |
Constructor and Description |
---|
Compass()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
com.google.gwt.event.shared.HandlerRegistration |
addRotationHandler(RotationHandler handler) |
void |
fireEvent(com.google.gwt.event.shared.GwtEvent<?> event) |
org.vectomatic.dom.svg.OMSVGPoint |
getLocalCoordinates(com.google.gwt.event.dom.client.MouseEvent<? extends com.google.gwt.event.shared.EventHandler> e)
Returns the coordinates of a mouse event, converted
to the compass coordinate system
|
org.vectomatic.dom.svg.OMSVGSVGElement |
getSvgElement() |
void |
setRotation(int angle) |
protected boolean rotate
protected int angle
protected org.vectomatic.dom.svg.OMSVGSVGElement compass
protected org.vectomatic.dom.svg.OMSVGGElement textGroup
public void setRotation(int angle)
public org.vectomatic.dom.svg.OMSVGSVGElement getSvgElement()
public org.vectomatic.dom.svg.OMSVGPoint getLocalCoordinates(com.google.gwt.event.dom.client.MouseEvent<? extends com.google.gwt.event.shared.EventHandler> e)
e
- A mouse eventpublic void fireEvent(com.google.gwt.event.shared.GwtEvent<?> event)
fireEvent
in interface com.google.gwt.event.shared.HasHandlers
public com.google.gwt.event.shared.HandlerRegistration addRotationHandler(RotationHandler handler)
addRotationHandler
in interface HasRotationHandlers
Copyright © 2018. All Rights Reserved.