class Scene.ScenePeerListener extends java.lang.Object implements TKSceneListener
| Constructor and Description |
|---|
ScenePeerListener() |
| Modifier and Type | Method and Description |
|---|---|
void |
changedLocation(float x,
float y)
The scenes peer's location have changed so we need to update the scene
|
void |
changedSize(float w,
float h)
The scenes peer's size have changed so we need to update the scene
|
Accessible |
getSceneAccessible() |
void |
inputMethodEvent(EventType<InputMethodEvent> type,
ObservableList<InputMethodTextRun> composed,
java.lang.String committed,
int caretPosition)
Pass an input method event to the scene to handle
|
void |
keyEvent(KeyEvent keyEvent)
Pass a key event to the scene to handle
|
void |
menuEvent(double x,
double y,
double xAbs,
double yAbs,
boolean isKeyboardTrigger) |
void |
mouseEvent(EventType<MouseEvent> type,
double x,
double y,
double screenX,
double screenY,
MouseButton button,
boolean popupTrigger,
boolean synthesized,
boolean shiftDown,
boolean controlDown,
boolean altDown,
boolean metaDown,
boolean primaryDown,
boolean middleDown,
boolean secondaryDown)
Pass a mouse event to the scene to handle
|
void |
rotateEvent(EventType<RotateEvent> eventType,
double angle,
double totalAngle,
double x,
double y,
double screenX,
double screenY,
boolean _shiftDown,
boolean _controlDown,
boolean _altDown,
boolean _metaDown,
boolean _direct,
boolean _inertia) |
void |
scrollEvent(EventType<ScrollEvent> eventType,
double scrollX,
double scrollY,
double totalScrollX,
double totalScrollY,
double xMultiplier,
double yMultiplier,
int touchCount,
int scrollTextX,
int scrollTextY,
int defaultTextX,
int defaultTextY,
double x,
double y,
double screenX,
double screenY,
boolean _shiftDown,
boolean _controlDown,
boolean _altDown,
boolean _metaDown,
boolean _direct,
boolean _inertia) |
void |
swipeEvent(EventType<SwipeEvent> eventType,
int touchCount,
double x,
double y,
double screenX,
double screenY,
boolean _shiftDown,
boolean _controlDown,
boolean _altDown,
boolean _metaDown,
boolean _direct) |
void |
touchEventBegin(long time,
int touchCount,
boolean isDirect,
boolean _shiftDown,
boolean _controlDown,
boolean _altDown,
boolean _metaDown) |
void |
touchEventEnd() |
void |
touchEventNext(TouchPoint.State state,
long touchId,
double x,
double y,
double screenX,
double screenY) |
void |
zoomEvent(EventType<ZoomEvent> eventType,
double zoomFactor,
double totalZoomFactor,
double x,
double y,
double screenX,
double screenY,
boolean _shiftDown,
boolean _controlDown,
boolean _altDown,
boolean _metaDown,
boolean _direct,
boolean _inertia) |
public void changedLocation(float x,
float y)
TKSceneListenerchangedLocation in interface TKSceneListenerx - the new Xy - The new Ypublic void changedSize(float w,
float h)
TKSceneListenerchangedSize in interface TKSceneListenerw - The new Widthh - The new Heightpublic void mouseEvent(EventType<MouseEvent> type, double x, double y, double screenX, double screenY, MouseButton button, boolean popupTrigger, boolean synthesized, boolean shiftDown, boolean controlDown, boolean altDown, boolean metaDown, boolean primaryDown, boolean middleDown, boolean secondaryDown)
TKSceneListenermouseEvent in interface TKSceneListenerpublic void keyEvent(KeyEvent keyEvent)
TKSceneListenerkeyEvent in interface TKSceneListenerpublic void inputMethodEvent(EventType<InputMethodEvent> type, ObservableList<InputMethodTextRun> composed, java.lang.String committed, int caretPosition)
TKSceneListenerinputMethodEvent in interface TKSceneListenerpublic void menuEvent(double x,
double y,
double xAbs,
double yAbs,
boolean isKeyboardTrigger)
menuEvent in interface TKSceneListenerpublic void scrollEvent(EventType<ScrollEvent> eventType, double scrollX, double scrollY, double totalScrollX, double totalScrollY, double xMultiplier, double yMultiplier, int touchCount, int scrollTextX, int scrollTextY, int defaultTextX, int defaultTextY, double x, double y, double screenX, double screenY, boolean _shiftDown, boolean _controlDown, boolean _altDown, boolean _metaDown, boolean _direct, boolean _inertia)
scrollEvent in interface TKSceneListenerpublic void zoomEvent(EventType<ZoomEvent> eventType, double zoomFactor, double totalZoomFactor, double x, double y, double screenX, double screenY, boolean _shiftDown, boolean _controlDown, boolean _altDown, boolean _metaDown, boolean _direct, boolean _inertia)
zoomEvent in interface TKSceneListenerpublic void rotateEvent(EventType<RotateEvent> eventType, double angle, double totalAngle, double x, double y, double screenX, double screenY, boolean _shiftDown, boolean _controlDown, boolean _altDown, boolean _metaDown, boolean _direct, boolean _inertia)
rotateEvent in interface TKSceneListenerpublic void swipeEvent(EventType<SwipeEvent> eventType, int touchCount, double x, double y, double screenX, double screenY, boolean _shiftDown, boolean _controlDown, boolean _altDown, boolean _metaDown, boolean _direct)
swipeEvent in interface TKSceneListenerpublic void touchEventBegin(long time,
int touchCount,
boolean isDirect,
boolean _shiftDown,
boolean _controlDown,
boolean _altDown,
boolean _metaDown)
touchEventBegin in interface TKSceneListenerpublic void touchEventNext(TouchPoint.State state, long touchId, double x, double y, double screenX, double screenY)
touchEventNext in interface TKSceneListenerpublic void touchEventEnd()
touchEventEnd in interface TKSceneListenerpublic Accessible getSceneAccessible()
getSceneAccessible in interface TKSceneListener