org.vectomatic.client.rep.controller
Class Compass
java.lang.Object
org.vectomatic.client.rep.controller.Compass
public class Compass
- extends Object
Class to manage the 2D compass which enables rotating and scaling the
drawing view
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NONE
public static final int NONE
- See Also:
- Constant Field Values
TRANSLATE_N
public static final int TRANSLATE_N
- See Also:
- Constant Field Values
TRANSLATE_S
public static final int TRANSLATE_S
- See Also:
- Constant Field Values
TRANSLATE_W
public static final int TRANSLATE_W
- See Also:
- Constant Field Values
TRANSLATE_E
public static final int TRANSLATE_E
- See Also:
- Constant Field Values
ROTATE
public static final int ROTATE
- See Also:
- Constant Field Values
SCALE
public static final int SCALE
- See Also:
- Constant Field Values
Compass
public Compass(DrawingView view)
setPosition
public void setPosition(Point c)
getPosition
public Point getPosition()
getRadius
public float getRadius()
setRadius
public void setRadius(float radius)
translate
public void translate(Point p)
getRotation
public float getRotation()
setRotation
public void setRotation(float r)
setScaling
public void setScaling(float s)
getScaling
public float getScaling()
pick
public int pick(Point p)
render
public void render()
mouseDown
public void mouseDown(Point p)
mouseMove
public void mouseMove(Point p)
mouseUp
public void mouseUp()
Copyright © 2010. All Rights Reserved.