APIdia Launch Partner
Top Inners Fields Constructors Methods
com.sun.javafx.tk.quantum

pack-priv Class GlassViewEventHandler

extends EventHandler
Class Inheritance
Imports
com.sun.glass.events.GestureEvent, .KeyEvent, .MouseEvent, .ViewEvent, .TouchEvent, .SwipeGesture, com.sun.glass.ui.Accessible, .Clipboard, .ClipboardAssistance, .Screen, .View, .Window, com.sun.javafx.PlatformUtil, com.sun.javafx.collections.TrackableObservableList, com.sun.javafx.logging.PulseLogger, com.sun.javafx.scene.input.KeyCodeMap, com.sun.javafx.tk.HeaderAreaType, javafx.collections.ListChangeListener, .ObservableList, javafx.event.EventType, javafx.geometry.Point2D, javafx.scene.input.InputMethodEvent, .InputMethodHighlight, .InputMethodTextRun, .KeyCode, .MouseButton, .RotateEvent, .ScrollEvent, .SwipeEvent, .TouchPoint, .TransferMode, .ZoomEvent, java.util.function.Supplier

Nested and Inner Type Summary

Modifier and TypeClass and Description
private class
private class
private class

Field Summary

Modifier and TypeField and Description
private final PaintCollector
private final GlassSceneDnDEventHandler
private ClipboardAssistance
private final GestureRecognizers
private final GlassViewEventHandler.KeyEventNotification
private int
private final GlassViewEventHandler.MouseEventNotification
pack-priv static boolean
private ViewScene
pack-priv static boolean
private final GlassViewEventHandler.ViewEventNotification
pack-priv static boolean

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
private static TransferMode
actionToTransferMode(int dropActions)

public double[]
public Accessible
public void
handleBeginTouchEvent(View view, final long time, final int modifiers, final boolean isDirect, final int touchEventCount)

Overrides com.sun.glass.ui.View.EventHandler.handleBeginTouchEvent.

Touch event handler.

public int
handleDragDrop(View view, final int x, final int y, final int xAbs, final int yAbs, final int recommendedDropAction, final ClipboardAssistance dropTargetAssistant)

Overrides com.sun.glass.ui.View.EventHandler.handleDragDrop.

public void
handleDragEnd(View view, final int performedAction)

Overrides com.sun.glass.ui.View.EventHandler.handleDragEnd.

public int
handleDragEnter(View view, final int x, final int y, final int xAbs, final int yAbs, final int recommendedDropAction, final ClipboardAssistance dropTargetAssistant)

Overrides com.sun.glass.ui.View.EventHandler.handleDragEnter.

public void
public int
handleDragOver(View view, final int x, final int y, final int xAbs, final int yAbs, final int recommendedDropAction, final ClipboardAssistance dropTargetAssistant)

Overrides com.sun.glass.ui.View.EventHandler.handleDragOver.

public void
handleDragStart(View view, final int button, final int x, final int y, final int xAbs, final int yAbs, final ClipboardAssistance assistant)

Overrides com.sun.glass.ui.View.EventHandler.handleDragStart.

public void
public void
handleInputMethodEvent(final long time, final String text, final int[] clauseBoundary, final int[] attrBoundary, final byte[] attrValue, final int commitCount, final int cursorPos)

Overrides com.sun.glass.ui.View.EventHandler.handleInputMethodEvent.

public boolean
handleKeyEvent(View view, long time, int type, int key, char[] chars, int modifiers)

Overrides com.sun.glass.ui.View.EventHandler.handleKeyEvent.

public boolean
handleMenuEvent(final View view, final int x, final int y, final int xAbs, final int yAbs, final boolean isKeyboardTrigger)

Overrides com.sun.glass.ui.View.EventHandler.handleMenuEvent.

public void
handleMouseEvent(View view, long time, int type, int button, int x, int y, int xAbs, int yAbs, int modifiers, boolean isPopupTrigger, boolean isSynthesized)

Overrides com.sun.glass.ui.View.EventHandler.handleMouseEvent.

public void
handleNextTouchEvent(View view, final long time, final int type, final long touchId, final int x, final int y, final int xAbs, final int yAbs)

Overrides com.sun.glass.ui.View.EventHandler.handleNextTouchEvent.

Touch event handler.

public void
handleRotateGestureEvent(View view, final long time, final int type, final int modifiers, final boolean isDirect, final boolean isInertia, final int originx, final int originy, final int originxAbs, final int originyAbs, final double dangle, final double totalangle)

Overrides com.sun.glass.ui.View.EventHandler.handleRotateGestureEvent.

Rotation gesture handler.

public void
handleScrollEvent(final View view, final long time, final int x, final int y, final int xAbs, final int yAbs, final double deltaX, final double deltaY, final int modifiers, final int lines, final int chars, final int defaultLines, final int defaultChars, final double xMultiplier, final double yMultiplier)

Overrides com.sun.glass.ui.View.EventHandler.handleScrollEvent.

A Scroll event handler.

public void
handleScrollGestureEvent(View view, final long time, final int type, final int modifiers, final boolean isDirect, final boolean isInertia, final int touchCount, final int x, final int y, final int xAbs, final int yAbs, final double dx, final double dy, final double totaldx, final double totaldy, final double multiplierX, final double multiplierY)

Overrides com.sun.glass.ui.View.EventHandler.handleScrollGestureEvent.

Scroll gesture handler.

public void
handleSwipeGestureEvent(View view, final long time, int type, final int modifiers, final boolean isDirect, boolean isInertia, final int touchCount, final int dir, final int x, final int y, final int xAbs, final int yAbs)

Overrides com.sun.glass.ui.View.EventHandler.handleSwipeGestureEvent.

Swipe gesture handler.

public void
handleViewEvent(View view, long time, final int type)

Overrides com.sun.glass.ui.View.EventHandler.handleViewEvent.

public void
handleZoomGestureEvent(View view, final long time, final int type, final int modifiers, final boolean isDirect, final boolean isInertia, final int originx, final int originy, final int originxAbs, final int originyAbs, final double scale, double expansion, final double totalscale, double totalexpansion)

Overrides com.sun.glass.ui.View.EventHandler.handleZoomGestureEvent.

Zoom gesture handler.

private static byte
inputMethodEventAttrValue(int pos, int[] attrBoundary, byte[] attrValue)

private static ObservableList<InputMethodTextRun>
inputMethodEventComposed(String text, int commitCount, int[] clauseBoundary, int[] attrBoundary, byte[] attrValue)

private static EventType<KeyEvent>
keyEventType(int glassType)

private static MouseButton
mouseEventButton(int glassButton)

private static EventType<MouseEvent>
mouseEventType(int glassType)

public HeaderAreaType
pickHeaderArea(double x, double y)

Overrides com.sun.glass.ui.View.EventHandler.pickHeaderArea.

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

private static int

Field Detail

collectorback to summary
private final PaintCollector collector
dndHandlerback to summary
private final GlassSceneDnDEventHandler dndHandler
dropSourceAssistantback to summary
private ClipboardAssistance dropSourceAssistant
gesturesback to summary
private final GestureRecognizers gestures
keyNotificationback to summary
private final GlassViewEventHandler.KeyEventNotification keyNotification
mouseButtonPressedMaskback to summary
private int mouseButtonPressedMask
mouseNotificationback to summary
private final GlassViewEventHandler.MouseEventNotification mouseNotification
rotateGestureEnabledback to summary
pack-priv static boolean rotateGestureEnabled
sceneback to summary
private ViewScene scene
scrollGestureEnabledback to summary
pack-priv static boolean scrollGestureEnabled
viewNotificationback to summary
private final GlassViewEventHandler.ViewEventNotification viewNotification
zoomGestureEnabledback to summary
pack-priv static boolean zoomGestureEnabled

Constructor Detail

GlassViewEventHandlerback to summary
public GlassViewEventHandler(final ViewScene scene)

Method Detail

actionToTransferModeback to summary
private static TransferMode actionToTransferMode(int dropActions)
getInputMethodCandidatePosback to summary
public double[] getInputMethodCandidatePos(int offset)

Overrides com.sun.glass.ui.View.EventHandler.getInputMethodCandidatePos.

Annotations
@Override
getSceneAccessibleback to summary
public Accessible getSceneAccessible()

Overrides com.sun.glass.ui.View.EventHandler.getSceneAccessible.

Annotations
@Override
handleBeginTouchEventback to summary
public void handleBeginTouchEvent(View view, final long time, final int modifiers, final boolean isDirect, final int touchEventCount)

Overrides com.sun.glass.ui.View.EventHandler.handleBeginTouchEvent.

Doc from com.sun.glass.ui.View.EventHandler.handleBeginTouchEvent.

Touch event handler. Called when touch event occures. Always followed with one ore more #handleNextTouchEvent() calls and a single #handleEndTouchEvent() call.

Annotations
@Override
handleDragDropback to summary
public int handleDragDrop(View view, final int x, final int y, final int xAbs, final int yAbs, final int recommendedDropAction, final ClipboardAssistance dropTargetAssistant)

Overrides com.sun.glass.ui.View.EventHandler.handleDragDrop.

Annotations
@Override
handleDragEndback to summary
public void handleDragEnd(View view, final int performedAction)

Overrides com.sun.glass.ui.View.EventHandler.handleDragEnd.

Annotations
@Override
handleDragEnterback to summary
public int handleDragEnter(View view, final int x, final int y, final int xAbs, final int yAbs, final int recommendedDropAction, final ClipboardAssistance dropTargetAssistant)

Overrides com.sun.glass.ui.View.EventHandler.handleDragEnter.

Annotations
@Override
handleDragLeaveback to summary
public void handleDragLeave(View view, final ClipboardAssistance dropTargetAssistant)

Overrides com.sun.glass.ui.View.EventHandler.handleDragLeave.

Annotations
@Override
handleDragOverback to summary
public int handleDragOver(View view, final int x, final int y, final int xAbs, final int yAbs, final int recommendedDropAction, final ClipboardAssistance dropTargetAssistant)

Overrides com.sun.glass.ui.View.EventHandler.handleDragOver.

Annotations
@Override
handleDragStartback to summary
public void handleDragStart(View view, final int button, final int x, final int y, final int xAbs, final int yAbs, final ClipboardAssistance assistant)

Overrides com.sun.glass.ui.View.EventHandler.handleDragStart.

Annotations
@Override
handleEndTouchEventback to summary
public void handleEndTouchEvent(View view, long time)

Overrides com.sun.glass.ui.View.EventHandler.handleEndTouchEvent.

Doc from com.sun.glass.ui.View.EventHandler.handleEndTouchEvent.

Touch event handler. Called to notify that all #handleNextTouchEvent methods corresponding to some touch event have been called already.

Annotations
@Override
handleInputMethodEventback to summary
public void handleInputMethodEvent(final long time, final String text, final int[] clauseBoundary, final int[] attrBoundary, final byte[] attrValue, final int commitCount, final int cursorPos)

Overrides com.sun.glass.ui.View.EventHandler.handleInputMethodEvent.

Annotations
@Override
handleKeyEventback to summary
public boolean handleKeyEvent(View view, long time, int type, int key, char[] chars, int modifiers)

Overrides com.sun.glass.ui.View.EventHandler.handleKeyEvent.

Annotations
@Override
handleMenuEventback to summary
public boolean handleMenuEvent(final View view, final int x, final int y, final int xAbs, final int yAbs, final boolean isKeyboardTrigger)

Overrides com.sun.glass.ui.View.EventHandler.handleMenuEvent.

Annotations
@Override
handleMouseEventback to summary
public void handleMouseEvent(View view, long time, int type, int button, int x, int y, int xAbs, int yAbs, int modifiers, boolean isPopupTrigger, boolean isSynthesized)

Overrides com.sun.glass.ui.View.EventHandler.handleMouseEvent.

Annotations
@Override
handleNextTouchEventback to summary
public void handleNextTouchEvent(View view, final long time, final int type, final long touchId, final int x, final int y, final int xAbs, final int yAbs)

Overrides com.sun.glass.ui.View.EventHandler.handleNextTouchEvent.

Doc from com.sun.glass.ui.View.EventHandler.handleNextTouchEvent.

Touch event handler. Called for every touch point in some touch event. If the touch event has been emitted with direct touch device (touch screen) then x and y arguments designate touch point position relative to the top-left corner of the view and xAbs and yAbs arguments designate position relative to the top-left corner of the screen. Both positions are measured in pixels. If the touch event has been emitted with indirect touch device (touch pad) then x and y arguments designate normalized touch point position. It is measured between (0,0) and (10000,10000), where (0,0) is the top-left and (10000,10000) is the bottom-right position on the indirect touch input device (touch pad). xAbs and yAbs arguments are equal values of x and y arguments respectively.

Annotations
@Override
handleRotateGestureEventback to summary
public void handleRotateGestureEvent(View view, final long time, final int type, final int modifiers, final boolean isDirect, final boolean isInertia, final int originx, final int originy, final int originxAbs, final int originyAbs, final double dangle, final double totalangle)

Overrides com.sun.glass.ui.View.EventHandler.handleRotateGestureEvent.

Doc from com.sun.glass.ui.View.EventHandler.handleRotateGestureEvent.

Rotation gesture handler. For description of isDirect argument see #handleBeginTouchEvent method. For description of isInertia argument see #handleScrollGestureEvent method. For description of type, x,y, xAbs and yAbs arguments see #handleBeginTouchEvent method.

Annotations
@Override
handleScrollEventback to summary
public void handleScrollEvent(final View view, final long time, final int x, final int y, final int xAbs, final int yAbs, final double deltaX, final double deltaY, final int modifiers, final int lines, final int chars, final int defaultLines, final int defaultChars, final double xMultiplier, final double yMultiplier)

Overrides com.sun.glass.ui.View.EventHandler.handleScrollEvent.

Doc from com.sun.glass.ui.View.EventHandler.handleScrollEvent.

A Scroll event handler. The lines argument: > 0 - a number of lines to scroll per each 1.0 of deltaY scroll amount == 0 - the scroll amount is in pixel units < 0 - the scrolling should be performed by pages. Each 1.0 of scroll amount corresponds to exactly one page of scrollable content. Similarly, the chars argument specifies the number of characters to scroll per 1.0 of the deltaX scrolling amount. If the parameter is zero, the deltaX represents the number of pixels to scroll. The defaultLines and defaultChars arguments contain the system-default values of lines and chars. This can be used by the app to compute the ratio of current settings and default settings and adjust the pixel values accordingly. Multiplers are used when an app receives a non-zero unit values (i.e. either the lines or chars are not zeroes), but wants instead get delta values in pixels. In this case the app needs to multiply the deltas on the provided multiplier parameter.

Annotations
@Override
handleScrollGestureEventback to summary
public void handleScrollGestureEvent(View view, final long time, final int type, final int modifiers, final boolean isDirect, final boolean isInertia, final int touchCount, final int x, final int y, final int xAbs, final int yAbs, final double dx, final double dy, final double totaldx, final double totaldy, final double multiplierX, final double multiplierY)

Overrides com.sun.glass.ui.View.EventHandler.handleScrollGestureEvent.

Doc from com.sun.glass.ui.View.EventHandler.handleScrollGestureEvent.

Scroll gesture handler. If underlying system supports coordinates for gestures then x and y arguments designate gesture position relative to the top-left corner of the view and xAbs and yAbs designate gesture position relative to the top-left corner of the screen. For gestures emitted from direct touch input device (touch screen) positions are measured in pixels. For gestures emitted from indirect touch input device (touch pad) positions are normalized. For details of normalized touch input position see #handleBeginTouchEvent method. If underlying system doesn't support coordinates for gestures then x and y arguments designate mouse position relative to the top-left corner of the view and xAbs and yAbs designate mouse position relative to the top-left corner of the screen. Positions are measured in pixels. If gesture handler is called to notify end of gesture, i.e. value of type argument is equal to com.sun.glass.events.GestureEvent.GESTURE_FINISHED constant then x, y, xAbs and yAbs arguments may be set to View.GESTURE_NO_VALUE constant indicating no data is available. This is implementation specific behavior. Values of dx and dy arguments are always 0.0 if type argument is set to com.sun.glass.events.GestureEvent.GESTURE_FINISHED constant. For description of isDirect argument see #handleBeginTouchEvent method.

Annotations
@Override
handleSwipeGestureEventback to summary
public void handleSwipeGestureEvent(View view, final long time, int type, final int modifiers, final boolean isDirect, boolean isInertia, final int touchCount, final int dir, final int x, final int y, final int xAbs, final int yAbs)

Overrides com.sun.glass.ui.View.EventHandler.handleSwipeGestureEvent.

Doc from com.sun.glass.ui.View.EventHandler.handleSwipeGestureEvent.

Swipe gesture handler. For description of isDirect argument see #handleBeginTouchEvent method. For description of isInertia and touchCount arguments see #handleScrollGestureEvent method. For description of type, x,y, xAbs and yAbs arguments see #handleBeginTouchEvent method.

Annotations
@Override
handleViewEventback to summary
public void handleViewEvent(View view, long time, final int type)

Overrides com.sun.glass.ui.View.EventHandler.handleViewEvent.

Annotations
@Override
handleZoomGestureEventback to summary
public void handleZoomGestureEvent(View view, final long time, final int type, final int modifiers, final boolean isDirect, final boolean isInertia, final int originx, final int originy, final int originxAbs, final int originyAbs, final double scale, double expansion, final double totalscale, double totalexpansion)

Overrides com.sun.glass.ui.View.EventHandler.handleZoomGestureEvent.

Doc from com.sun.glass.ui.View.EventHandler.handleZoomGestureEvent.

Zoom gesture handler. For description of isDirect argument see #handleBeginTouchEvent method. For description of isInertia argument see #handleScrollGestureEvent method. For description of type, x,y, xAbs and yAbs arguments see #handleBeginTouchEvent method. If underlying system doesn't support measurement of expansion value in zoom gestures then expansion and totalexpansion arguments are always set to View.GESTURE_NO_DOUBLE_VALUE. If type argument is set to com.sun.glass.events.GestureEvent.GESTURE_FINISHED constant value of scale argument is always set to View.GESTURE_NO_DOUBLE_VALUE constant and expansion argument is always 0.0.

Annotations
@Override
inputMethodEventAttrValueback to summary
private static byte inputMethodEventAttrValue(int pos, int[] attrBoundary, byte[] attrValue)
inputMethodEventComposedback to summary
private static ObservableList<InputMethodTextRun> inputMethodEventComposed(String text, int commitCount, int[] clauseBoundary, int[] attrBoundary, byte[] attrValue)
keyEventTypeback to summary
private static EventType<KeyEvent> keyEventType(int glassType)
mouseEventButtonback to summary
private static MouseButton mouseEventButton(int glassButton)
mouseEventTypeback to summary
private static EventType<MouseEvent> mouseEventType(int glassType)
pickHeaderAreaback to summary
public HeaderAreaType pickHeaderArea(double x, double y)

Overrides com.sun.glass.ui.View.EventHandler.pickHeaderArea.

Doc from com.sun.glass.ui.View.EventHandler.pickHeaderArea.

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

Annotations
@Override
transferModeToActionback to summary
private static int transferModeToAction(TransferMode tm)
com.sun.javafx.tk.quantum back to summary

private Class GlassViewEventHandler.KeyEventNotification

extends Object
implements Supplier<Boolean>
Class Inheritance
  • java.lang.Object
  • com.sun.javafx.tk.quantum.GlassViewEventHandler.KeyEventNotification
All Implemented Interfaces
java.util.function.Supplier

Field Summary

Modifier and TypeField and Description
pack-priv char[]
pack-priv int
private KeyCode
pack-priv int
pack-priv long
pack-priv int
pack-priv View

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public Boolean
get()

Implements java.util.function.Supplier.get.

Gets a result.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

charsback to summary
pack-priv char[] chars
keyback to summary
pack-priv int key
lastKeyCodeback to summary
private KeyCode lastKeyCode
modifiersback to summary
pack-priv int modifiers
timeback to summary
pack-priv long time
typeback to summary
pack-priv int type
viewback to summary
pack-priv View view

Constructor Detail

KeyEventNotificationback to summary
private KeyEventNotification()

Method Detail

getback to summary
public Boolean get()

Implements java.util.function.Supplier.get.

Doc from java.util.function.Supplier.get.

Gets a result.

Annotations
@Override
com.sun.javafx.tk.quantum back to summary

private Class GlassViewEventHandler.MouseEventNotification

extends Object
implements Supplier<Void>
Class Inheritance
  • java.lang.Object
  • com.sun.javafx.tk.quantum.GlassViewEventHandler.MouseEventNotification
All Implemented Interfaces
java.util.function.Supplier

Field Summary

Modifier and TypeField and Description
pack-priv int
pack-priv boolean
pack-priv boolean
pack-priv int
pack-priv long
pack-priv int
pack-priv View
pack-priv int
x

pack-priv int
pack-priv int
y

pack-priv int

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public Void
get()

Implements java.util.function.Supplier.get.

Gets a result.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

buttonback to summary
pack-priv int button
isPopupTriggerback to summary
pack-priv boolean isPopupTrigger
isSynthesizedback to summary
pack-priv boolean isSynthesized
modifiersback to summary
pack-priv int modifiers
timeback to summary
pack-priv long time
typeback to summary
pack-priv int type
viewback to summary
pack-priv View view
xback to summary
pack-priv int x
xAbsback to summary
pack-priv int xAbs
yback to summary
pack-priv int y
yAbsback to summary
pack-priv int yAbs

Constructor Detail

MouseEventNotificationback to summary
private MouseEventNotification()

Method Detail

getback to summary
public Void get()

Implements java.util.function.Supplier.get.

Doc from java.util.function.Supplier.get.

Gets a result.

Annotations
@Override
com.sun.javafx.tk.quantum back to summary

private Class GlassViewEventHandler.ViewEventNotification

extends Object
implements Supplier<Void>
Class Inheritance
  • java.lang.Object
  • com.sun.javafx.tk.quantum.GlassViewEventHandler.ViewEventNotification
All Implemented Interfaces
java.util.function.Supplier

Field Summary

Modifier and TypeField and Description
pack-priv long
pack-priv int
pack-priv View

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public Void
get()

Implements java.util.function.Supplier.get.

Gets a result.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

timeback to summary
pack-priv long time
typeback to summary
pack-priv int type
viewback to summary
pack-priv View view

Constructor Detail

ViewEventNotificationback to summary
private ViewEventNotification()

Method Detail

getback to summary
public Void get()

Implements java.util.function.Supplier.get.

Doc from java.util.function.Supplier.get.

Gets a result.

Annotations
@Override