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, mouseMovedgetHeight, getPosition, getU0, getV0, getWidth, inRange, setPosition, setPositiondisable, enable, isEnabled, setEnabled, setup, updateequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitkeyPressed, mouseDoubleClick, mouseMovedpublic 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)
CoordinateSystemgetCoordinateSystemPosition in interface CoordinateSystemwx - the wxwy - the wypublic float[] getWindowPosition(float csx,
float csy)
CoordinateSystemgetWindowPosition in interface CoordinateSystemcsx - 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.ControllerComponentmousePressed in class usf.saav.common.mvc.ControllerComponent.Defaultpublic boolean mouseDragged(int mouseX,
int mouseY)
mouseDragged in interface usf.saav.common.mvc.ControllerComponentmouseDragged in class usf.saav.common.mvc.ControllerComponent.Defaultpublic boolean mouseReleased()
mouseReleased in interface usf.saav.common.mvc.ControllerComponentmouseReleased in class usf.saav.common.mvc.ControllerComponent.Defaultpublic boolean mouseWheel(int mouseX,
int mouseY,
float count)
mouseWheel in interface usf.saav.common.mvc.ControllerComponentmouseWheel in class usf.saav.common.mvc.ControllerComponent.Default