APIdia Launch Partner
Top Description Methods
com.sun.javafx.tk

public Interface TKSceneListener

Known Direct Implementers
javafx.scene.Scene.ScenePeerListener
Imports
com.sun.glass.ui.Accessible, javafx.collections.ObservableList, javafx.event.EventType, javafx.scene.input.*

TKSceneListener - Listener for the Scene Peer TKScene to pass updates and events back to the scene

Method Summary

Modifier and TypeMethod and Description
public void
changedLocation(float
the new X
x
,
float
The new Y
y
)

The scenes peer's location have changed so we need to update the scene

public void
changedSize(float
The new Width
width
,
float
The new Height
height
)

The scenes peer's size have changed so we need to update the scene

public Accessible
public void
inputMethodEvent(EventType<InputMethodEvent> type, ObservableList<InputMethodTextRun> composed, String committed, int caretPosition)

Pass an input method event to the scene to handle

public boolean
keyEvent(KeyEvent keyEvent)

Pass a key event to the scene to handle

public 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, boolean backDown, boolean forwardDown)

Pass a mouse event to the scene to handle

public HeaderAreaType

Returns:

the header area type, or null
pickHeaderArea
(double
the X coordinate relative to the scene
x
,
double
the Y coordinate relative to the scene
y
)

Returns the header area type at the specified coordinates, or null if the specified coordinates do not intersect with a header area.

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)

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)

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)

public void
touchEventBegin(long time, int touchCount, boolean isDirect, boolean _shiftDown, boolean _controlDown, boolean _altDown, boolean _metaDown)

public void
public void
touchEventNext(TouchPoint.State state, long touchId, double x, double y, double xAbs, double yAbs)

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)

Method Detail

changedLocationback to summary
public void changedLocation(float x, float y)

The scenes peer's location have changed so we need to update the scene

Parameters
x:float

the new X

y:float

The new Y

changedSizeback to summary
public void changedSize(float width, float height)

The scenes peer's size have changed so we need to update the scene

Parameters
width:float

The new Width

height:float

The new Height

getSceneAccessibleback to summary
public Accessible getSceneAccessible()
inputMethodEventback to summary
public void inputMethodEvent(EventType<InputMethodEvent> type, ObservableList<InputMethodTextRun> composed, String committed, int caretPosition)

Pass an input method event to the scene to handle

keyEventback to summary
public boolean keyEvent(KeyEvent keyEvent)

Pass a key event to the scene to handle

mouseEventback to summary
public 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, boolean backDown, boolean forwardDown)

Pass a mouse event to the scene to handle

pickHeaderAreaback to summary
public HeaderAreaType pickHeaderArea(double x, double y)

Returns the header area type at the specified coordinates, or null if the specified coordinates do not intersect with a header area.

Parameters
x:double

the X coordinate relative to the scene

y:double

the Y coordinate relative to the scene

Returns:HeaderAreaType

the header area type, or null

rotateEventback to summary
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)
scrollEventback to summary
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)
swipeEventback to summary
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)
touchEventBeginback to summary
public void touchEventBegin(long time, int touchCount, boolean isDirect, boolean _shiftDown, boolean _controlDown, boolean _altDown, boolean _metaDown)
touchEventEndback to summary
public void touchEventEnd()
touchEventNextback to summary
public void touchEventNext(TouchPoint.State state, long touchId, double x, double y, double xAbs, double yAbs)
zoomEventback to summary
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)