class Scene.ScenePeerListener
extends java.lang.Object
implements com.sun.javafx.tk.TKSceneListener
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
|
void |
inputMethodEvent(javafx.event.EventType<javafx.scene.input.InputMethodEvent> type,
javafx.collections.ObservableList<javafx.scene.input.InputMethodTextRun> composed,
java.lang.String committed,
int caretPosition)
Pass an input method event to the scene to handle
|
void |
keyEvent(javafx.event.EventType<javafx.scene.input.KeyEvent> type,
int key,
char[] cs,
boolean shiftDown,
boolean controlDown,
boolean altDown,
boolean metaDown)
Pass a key event to the scene to handle
|
void |
menuEvent(double x,
double y,
double xAbs,
double yAbs,
boolean isKeyboardTrigger) |
void |
mouseEvent(javafx.event.EventType<javafx.scene.input.MouseEvent> type,
double x,
double y,
double screenX,
double screenY,
javafx.scene.input.MouseButton button,
int clickCount,
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(javafx.event.EventType<javafx.scene.input.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(javafx.event.EventType<javafx.scene.input.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(javafx.event.EventType<javafx.scene.input.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(javafx.scene.input.TouchPoint.State state,
long touchId,
int x,
int y,
int xAbs,
int yAbs) |
void |
zoomEvent(javafx.event.EventType<javafx.scene.input.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)
com.sun.javafx.tk.TKSceneListener
changedLocation
in interface com.sun.javafx.tk.TKSceneListener
x
- the new Xy
- The new Ypublic void changedSize(float w, float h)
com.sun.javafx.tk.TKSceneListener
changedSize
in interface com.sun.javafx.tk.TKSceneListener
w
- The new Widthh
- The new Heightpublic void mouseEvent(javafx.event.EventType<javafx.scene.input.MouseEvent> type, double x, double y, double screenX, double screenY, javafx.scene.input.MouseButton button, int clickCount, boolean popupTrigger, boolean synthesized, boolean shiftDown, boolean controlDown, boolean altDown, boolean metaDown, boolean primaryDown, boolean middleDown, boolean secondaryDown)
com.sun.javafx.tk.TKSceneListener
mouseEvent
in interface com.sun.javafx.tk.TKSceneListener
public void keyEvent(javafx.event.EventType<javafx.scene.input.KeyEvent> type, int key, char[] cs, boolean shiftDown, boolean controlDown, boolean altDown, boolean metaDown)
com.sun.javafx.tk.TKSceneListener
keyEvent
in interface com.sun.javafx.tk.TKSceneListener
public void inputMethodEvent(javafx.event.EventType<javafx.scene.input.InputMethodEvent> type, javafx.collections.ObservableList<javafx.scene.input.InputMethodTextRun> composed, java.lang.String committed, int caretPosition)
com.sun.javafx.tk.TKSceneListener
inputMethodEvent
in interface com.sun.javafx.tk.TKSceneListener
public void menuEvent(double x, double y, double xAbs, double yAbs, boolean isKeyboardTrigger)
menuEvent
in interface com.sun.javafx.tk.TKSceneListener
public void scrollEvent(javafx.event.EventType<javafx.scene.input.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 com.sun.javafx.tk.TKSceneListener
public void zoomEvent(javafx.event.EventType<javafx.scene.input.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 com.sun.javafx.tk.TKSceneListener
public void rotateEvent(javafx.event.EventType<javafx.scene.input.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 com.sun.javafx.tk.TKSceneListener
public void swipeEvent(javafx.event.EventType<javafx.scene.input.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 com.sun.javafx.tk.TKSceneListener
public void touchEventBegin(long time, int touchCount, boolean isDirect, boolean _shiftDown, boolean _controlDown, boolean _altDown, boolean _metaDown)
touchEventBegin
in interface com.sun.javafx.tk.TKSceneListener
public void touchEventNext(javafx.scene.input.TouchPoint.State state, long touchId, int x, int y, int xAbs, int yAbs)
touchEventNext
in interface com.sun.javafx.tk.TKSceneListener
public void touchEventEnd()
touchEventEnd
in interface com.sun.javafx.tk.TKSceneListener
Copyright (c) 2008, 2013, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms.