public class CoordinateSystemController extends usf.saav.common.mvc.ControllerComponent.Default implements usf.saav.common.mvc.ControllerComponent, CoordinateSystem
Constructor and Description |
---|
CoordinateSystemController(usf.saav.common.monitor.MonitoredInteger x0,
usf.saav.common.monitor.MonitoredInteger y0,
usf.saav.common.monitor.MonitoredDouble zoom)
Instantiates a new coordinate system controller.
|
Modifier and Type | Method and Description |
---|---|
void |
addTranslationCallback(java.lang.Object obj,
java.lang.String func_name)
Adds the translation callback.
|
float[] |
getCoordinateSystemPosition(float wx,
float wy)
Gets the coordinate system position.
|
float[] |
getWindowPosition(float csx,
float csy)
Gets the window position.
|
int |
getX()
Gets the x.
|
int |
getY()
Gets the y.
|
boolean |
mouseDragged(int mouseX,
int mouseY) |
boolean |
mousePressed(int mouseX,
int mouseY) |
boolean |
mouseReleased() |
boolean |
mouseWheel(int mouseX,
int mouseY,
float count) |
keyPressed, mouseDoubleClick, mouseMoved
getHeight, getPosition, getU0, getV0, getWidth, inRange, setPosition, setPosition
disable, enable, isEnabled, setEnabled, setup, update
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
keyPressed, mouseDoubleClick, mouseMoved
public CoordinateSystemController(usf.saav.common.monitor.MonitoredInteger x0, usf.saav.common.monitor.MonitoredInteger y0, usf.saav.common.monitor.MonitoredDouble zoom)
x0
- the x 0y0
- the y 0zoom
- the zoompublic int getX()
public int getY()
public float[] getCoordinateSystemPosition(float wx, float wy)
CoordinateSystem
getCoordinateSystemPosition
in interface CoordinateSystem
wx
- the wxwy
- the wypublic float[] getWindowPosition(float csx, float csy)
CoordinateSystem
getWindowPosition
in interface CoordinateSystem
csx
- the csxcsy
- the csypublic void addTranslationCallback(java.lang.Object obj, java.lang.String func_name)
obj
- the objfunc_name
- the func namepublic boolean mousePressed(int mouseX, int mouseY)
mousePressed
in interface usf.saav.common.mvc.ControllerComponent
mousePressed
in class usf.saav.common.mvc.ControllerComponent.Default
public boolean mouseDragged(int mouseX, int mouseY)
mouseDragged
in interface usf.saav.common.mvc.ControllerComponent
mouseDragged
in class usf.saav.common.mvc.ControllerComponent.Default
public boolean mouseReleased()
mouseReleased
in interface usf.saav.common.mvc.ControllerComponent
mouseReleased
in class usf.saav.common.mvc.ControllerComponent.Default
public boolean mouseWheel(int mouseX, int mouseY, float count)
mouseWheel
in interface usf.saav.common.mvc.ControllerComponent
mouseWheel
in class usf.saav.common.mvc.ControllerComponent.Default