Top Description Fields Constructors Methods
com.sun.glass.ui.monocle

pack-priv Class MouseInput

extends Object
Class Inheritance
Imports
com.sun.glass.events.MouseEvent, com.sun.glass.ui.Application, .Clipboard, java.util.BitSet

Processes mouse input events based on changes to mouse state. Not thread-safe and can only be used on the JavaFX application thread.

Field Summary

Modifier and TypeField and Description
private IntSet
private static final int
private static final int
private static final int
private static final int
private BitSet
dragActions

What drag actions have been performed?

private int
dragButton

What button started the drag operation?

private boolean
dragInProgress

Are we currently processing drag and drop?

private MonocleView
dragView

On what View is the drag operation currently over?

private static MouseInput
private MouseState

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
pack-priv static MouseInput
pack-priv void
getState(MouseState
a MouseState to which to copy data on the current mouse buttons and coordinates.
result
)

Retrieves the current state of mouse buttons and of the cursor.

pack-priv void
private void
notifyMouse(MonocleView view, int eventType, int button, int relX, int relY, int x, int y, int modifiers, boolean isPopupTrigger, boolean synthesized)

private void
postMouseEvent(MonocleView view, int eventType, int button, int relX, int relY, int x, int y, int modifiers, boolean isPopupTrigger, boolean synthesized)

pack-priv void
setState(MouseState
the new state
newState
,
boolean
true if this state change is synthesized from a change in touch state; false if this state change comes from an actual relative pointing devices or from the Glass robot.
synthesized
)

Sets a new state for mouse buttons and coordinates, generating input events where appropriate.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

buttonsback to summary
private IntSet buttons
DRAG_DROPback to summary
private static final int DRAG_DROP
DRAG_ENTERback to summary
private static final int DRAG_ENTER
DRAG_LEAVEback to summary
private static final int DRAG_LEAVE
DRAG_OVERback to summary
private static final int DRAG_OVER
dragActionsback to summary
private BitSet dragActions

What drag actions have been performed?

dragButtonback to summary
private int dragButton

What button started the drag operation?

dragInProgressback to summary
private boolean dragInProgress

Are we currently processing drag and drop?

dragViewback to summary
private MonocleView dragView

On what View is the drag operation currently over?

instanceback to summary
private static MouseInput instance
stateback to summary
private MouseState state

Constructor Detail

MouseInputback to summary
pack-priv MouseInput()

Method Detail

getInstanceback to summary
pack-priv static MouseInput getInstance()
getStateback to summary
pack-priv void getState(MouseState result)

Retrieves the current state of mouse buttons and of the cursor.

Parameters
result:MouseState

a MouseState to which to copy data on the current mouse buttons and coordinates.

notifyDragStartback to summary
pack-priv void notifyDragStart()
notifyMouseback to summary
private void notifyMouse(MonocleView view, int eventType, int button, int relX, int relY, int x, int y, int modifiers, boolean isPopupTrigger, boolean synthesized)
postMouseEventback to summary
private void postMouseEvent(MonocleView view, int eventType, int button, int relX, int relY, int x, int y, int modifiers, boolean isPopupTrigger, boolean synthesized)
setStateback to summary
pack-priv void setState(MouseState newState, boolean synthesized)

Sets a new state for mouse buttons and coordinates, generating input events where appropriate.

Parameters
newState:MouseState

the new state

synthesized:boolean

true if this state change is synthesized from a change in touch state; false if this state change comes from an actual relative pointing devices or from the Glass robot.