Spec-Zone .ru
спецификации, руководства, описания, API
|
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(java.lang.Object event)
Pass an input method event to the scene to handle
|
void |
keyEvent(java.lang.Object event)
Pass a key event to the scene to handle
|
void |
menuEvent(double x,
double y,
double xAbs,
double yAbs,
boolean isKeyboardTrigger) |
void |
mouseEvent(java.lang.Object event)
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,
int x,
int y,
int xAbs,
int yAbs) |
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)
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(java.lang.Object event)
com.sun.javafx.tk.TKSceneListener
mouseEvent
in interface com.sun.javafx.tk.TKSceneListener
event
- The event, this should be of type javafx.scene.input.MouseEventpublic void keyEvent(java.lang.Object event)
com.sun.javafx.tk.TKSceneListener
keyEvent
in interface com.sun.javafx.tk.TKSceneListener
event
- The event, this should be of type javafx.scene.input.KeyEventpublic void inputMethodEvent(java.lang.Object event)
com.sun.javafx.tk.TKSceneListener
inputMethodEvent
in interface com.sun.javafx.tk.TKSceneListener
event
- The event, this should be of type
javafx.scene.input.InputMethodEventpublic void menuEvent(double x, double y, double xAbs, double yAbs, boolean isKeyboardTrigger)
menuEvent
in interface com.sun.javafx.tk.TKSceneListener
public 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 com.sun.javafx.tk.TKSceneListener
public 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 com.sun.javafx.tk.TKSceneListener
public 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 com.sun.javafx.tk.TKSceneListener
public 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 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(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, 2012, Oracle and/or its affiliates. All rights reserved. Use is subject to