Package | Description |
---|---|
com.sun.javafx.embed | |
com.sun.javafx.robot.impl | |
com.sun.javafx.scene | |
com.sun.javafx.scene.control.behavior | |
com.sun.javafx.tk | |
javafx.scene |
Provides the core set of base
classes for the JavaFX Scene Graph API.
|
javafx.scene.input |
Provides the set of classes for mouse and keyboard input event handling.
|
Modifier and Type | Method and Description |
---|---|
static EventType<MouseEvent> |
AbstractEvents.mouseIDToFXEventID(int embedMouseID) |
Modifier and Type | Method and Description |
---|---|
abstract MouseEvent |
FXRobotHelper.FXRobotInputAccessor.createMouseEvent(EventType<? extends MouseEvent> eventType,
int x,
int y,
int screenX,
int screenY,
MouseButton button,
int clickCount,
boolean shiftDown,
boolean controlDown,
boolean altDown,
boolean metaDown,
boolean popupTrigger,
boolean primaryButtonDown,
boolean middleButtonDown,
boolean secondaryButtonDown) |
Modifier and Type | Method and Description |
---|---|
abstract void |
FXRobotHelper.FXRobotSceneAccessor.processMouseEvent(Scene scene,
MouseEvent mouseEvent) |
Modifier and Type | Method and Description |
---|---|
abstract MouseEvent |
FXRobotHelper.FXRobotInputAccessor.createMouseEvent(EventType<? extends MouseEvent> eventType,
int x,
int y,
int screenX,
int screenY,
MouseButton button,
int clickCount,
boolean shiftDown,
boolean controlDown,
boolean altDown,
boolean metaDown,
boolean popupTrigger,
boolean primaryButtonDown,
boolean middleButtonDown,
boolean secondaryButtonDown) |
Modifier and Type | Method and Description |
---|---|
void |
TextFieldBehavior.mouseDragged(MouseEvent e) |
void |
TextAreaBehavior.mouseDragged(MouseEvent e) |
void |
CellBehaviorBase.mouseDragged(MouseEvent e) |
void |
BehaviorBase.mouseDragged(MouseEvent e)
Invoked by a Skin when the body of the control has been dragged by
the mouse.
|
void |
ComboBoxBaseBehavior.mouseEntered(MouseEvent e) |
void |
ButtonBehavior.mouseEntered(MouseEvent e)
Invoked when the mouse enters the Button.
|
void |
BehaviorBase.mouseEntered(MouseEvent e)
Invoked by a Skin when the body of the control has been entered by
the mouse.
|
void |
ComboBoxBaseBehavior.mouseExited(MouseEvent e) |
void |
ButtonBehavior.mouseExited(MouseEvent e)
Invoked when the mouse exits the Button.
|
void |
BehaviorBase.mouseExited(MouseEvent e)
Invoked by a Skin when the body of the control has been exited by
the mouse.
|
void |
TreeViewBehavior.mousePressed(MouseEvent e) |
void |
TitledPaneBehavior.mousePressed(MouseEvent e)
*
Mouse event handling *
*
|
void |
TextFieldBehavior.mousePressed(MouseEvent e) |
void |
TextAreaBehavior.mousePressed(MouseEvent e) |
void |
TableViewBehaviorBase.mousePressed(MouseEvent e) |
void |
TableRowBehaviorBase.mousePressed(MouseEvent e)
*
Public API *
*
|
void |
TabPaneBehavior.mousePressed(MouseEvent e)
*
Mouse event handling *
*
|
void |
ScrollPaneBehavior.mousePressed(MouseEvent e) |
void |
PaginationBehavior.mousePressed(MouseEvent e)
*
Mouse event handling *
*
|
void |
ListViewBehavior.mousePressed(MouseEvent e) |
void |
ComboBoxBaseBehavior.mousePressed(MouseEvent e)
*
Mouse Events *
*
|
void |
ChoiceBoxBehavior.mousePressed(MouseEvent e)
Invoked when a mouse press has occurred over the box.
|
void |
CellBehaviorBase.mousePressed(MouseEvent e) |
void |
ButtonBehavior.mousePressed(MouseEvent e)
Invoked when a mouse press has occurred over the button.
|
void |
BehaviorBase.mousePressed(MouseEvent e)
Invoked by a Skin when the body of the control has been pressed by
the mouse.
|
void |
AccordionBehavior.mousePressed(MouseEvent e)
Mouse press over the background of the accordion
i.e.
|
void |
MenuButtonBehaviorBase.mousePressed(MouseEvent e,
boolean behaveLikeButton)
When a mouse button is pressed, we either want to behave like a button or
show the popup.
|
void |
TextFieldBehavior.mouseReleased(MouseEvent e) |
void |
TextAreaBehavior.mouseReleased(MouseEvent e) |
void |
MenuButtonBehaviorBase.mouseReleased(MouseEvent e) |
void |
ComboBoxBaseBehavior.mouseReleased(MouseEvent e) |
void |
ChoiceBoxBehavior.mouseReleased(MouseEvent e)
Invoked when a mouse release has occurred.
|
void |
CellBehaviorBase.mouseReleased(MouseEvent e) |
void |
ButtonBehavior.mouseReleased(MouseEvent e)
Invoked when a mouse release has occurred.
|
void |
BehaviorBase.mouseReleased(MouseEvent e)
Invoked by a Skin when the body of the control has been released by
the mouse.
|
void |
MenuButtonBehaviorBase.mouseReleased(MouseEvent e,
boolean behaveLikeButton)
Handles mouse release events.
|
void |
SliderBehavior.thumbDragged(MouseEvent e,
double position) |
void |
SliderBehavior.thumbPressed(MouseEvent e,
double position) |
void |
SliderBehavior.thumbReleased(MouseEvent e)
When thumb is released valueChanging should be set to false.
|
void |
SliderBehavior.trackPress(MouseEvent e,
double position)
Invoked by the Slider
Skin implementation whenever a mouse press
occurs on the "track" of the slider. |
Modifier and Type | Method and Description |
---|---|
void |
TKSceneListener.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)
Pass a mouse event to the scene to handle
|
Modifier and Type | Method and Description |
---|---|
void |
Scene.impl_processMouseEvent(MouseEvent e)
Deprecated.
This is an internal API that is not intended for use and will be removed in the next version
|
Modifier and Type | Method and Description |
---|---|
B |
SceneBuilder.onDragDetected(EventHandler<? super MouseEvent> x)
Deprecated.
Set the value of the
onDragDetected property for the instance constructed by this builder. |
B |
NodeBuilder.onDragDetected(EventHandler<? super MouseEvent> x)
Deprecated.
Set the value of the
onDragDetected property for the instance constructed by this builder. |
B |
SceneBuilder.onMouseClicked(EventHandler<? super MouseEvent> x)
Deprecated.
Set the value of the
onMouseClicked property for the instance constructed by this builder. |
B |
NodeBuilder.onMouseClicked(EventHandler<? super MouseEvent> x)
Deprecated.
Set the value of the
onMouseClicked property for the instance constructed by this builder. |
B |
SceneBuilder.onMouseDragged(EventHandler<? super MouseEvent> x)
Deprecated.
Set the value of the
onMouseDragged property for the instance constructed by this builder. |
B |
NodeBuilder.onMouseDragged(EventHandler<? super MouseEvent> x)
Deprecated.
Set the value of the
onMouseDragged property for the instance constructed by this builder. |
B |
SceneBuilder.onMouseEntered(EventHandler<? super MouseEvent> x)
Deprecated.
Set the value of the
onMouseEntered property for the instance constructed by this builder. |
B |
NodeBuilder.onMouseEntered(EventHandler<? super MouseEvent> x)
Deprecated.
Set the value of the
onMouseEntered property for the instance constructed by this builder. |
B |
SceneBuilder.onMouseExited(EventHandler<? super MouseEvent> x)
Deprecated.
Set the value of the
onMouseExited property for the instance constructed by this builder. |
B |
NodeBuilder.onMouseExited(EventHandler<? super MouseEvent> x)
Deprecated.
Set the value of the
onMouseExited property for the instance constructed by this builder. |
B |
SceneBuilder.onMouseMoved(EventHandler<? super MouseEvent> x)
Deprecated.
Set the value of the
onMouseMoved property for the instance constructed by this builder. |
B |
NodeBuilder.onMouseMoved(EventHandler<? super MouseEvent> x)
Deprecated.
Set the value of the
onMouseMoved property for the instance constructed by this builder. |
B |
SceneBuilder.onMousePressed(EventHandler<? super MouseEvent> x)
Deprecated.
Set the value of the
onMousePressed property for the instance constructed by this builder. |
B |
NodeBuilder.onMousePressed(EventHandler<? super MouseEvent> x)
Deprecated.
Set the value of the
onMousePressed property for the instance constructed by this builder. |
B |
SceneBuilder.onMouseReleased(EventHandler<? super MouseEvent> x)
Deprecated.
Set the value of the
onMouseReleased property for the instance constructed by this builder. |
B |
NodeBuilder.onMouseReleased(EventHandler<? super MouseEvent> x)
Deprecated.
Set the value of the
onMouseReleased property for the instance constructed by this builder. |
void |
Scene.setOnDragDetected(EventHandler<? super MouseEvent> value) |
void |
Node.setOnDragDetected(EventHandler<? super MouseEvent> value) |
void |
Scene.setOnMouseClicked(EventHandler<? super MouseEvent> value) |
void |
Node.setOnMouseClicked(EventHandler<? super MouseEvent> value) |
void |
Scene.setOnMouseDragged(EventHandler<? super MouseEvent> value) |
void |
Node.setOnMouseDragged(EventHandler<? super MouseEvent> value) |
void |
Scene.setOnMouseEntered(EventHandler<? super MouseEvent> value) |
void |
Node.setOnMouseEntered(EventHandler<? super MouseEvent> value) |
void |
Scene.setOnMouseExited(EventHandler<? super MouseEvent> value) |
void |
Node.setOnMouseExited(EventHandler<? super MouseEvent> value) |
void |
Scene.setOnMouseMoved(EventHandler<? super MouseEvent> value) |
void |
Node.setOnMouseMoved(EventHandler<? super MouseEvent> value) |
void |
Scene.setOnMousePressed(EventHandler<? super MouseEvent> value) |
void |
Node.setOnMousePressed(EventHandler<? super MouseEvent> value) |
void |
Scene.setOnMouseReleased(EventHandler<? super MouseEvent> value) |
void |
Node.setOnMouseReleased(EventHandler<? super MouseEvent> value) |
Modifier and Type | Class and Description |
---|---|
class |
MouseDragEvent
Mouse drag events are delivered to potential gesture targets during
full press-drag-release gestures.
|
Modifier and Type | Field and Description |
---|---|
static EventType<MouseEvent> |
MouseEvent.ANY
Common supertype for all mouse event types.
|
static EventType<MouseEvent> |
MouseEvent.DRAG_DETECTED
This event is delivered to a node that is identified as a source of a
dragging gesture.
|
static EventType<MouseEvent> |
MouseEvent.MOUSE_CLICKED
This event occurs when mouse button has been clicked (pressed and
released on the same node).
|
static EventType<MouseEvent> |
MouseEvent.MOUSE_DRAGGED
This event occurs when mouse moves with a pressed button.
|
static EventType<MouseEvent> |
MouseEvent.MOUSE_ENTERED
This event occurs when mouse enters a node.
|
static EventType<MouseEvent> |
MouseEvent.MOUSE_ENTERED_TARGET
This event occurs when mouse enters a node.
|
static EventType<MouseEvent> |
MouseEvent.MOUSE_EXITED
This event occurs when mouse exits a node.
|
static EventType<MouseEvent> |
MouseEvent.MOUSE_EXITED_TARGET
This event occurs when mouse exits a node.
|
static EventType<MouseEvent> |
MouseEvent.MOUSE_MOVED
This event occurs when mouse moves within a node and no buttons
are pressed.
|
static EventType<MouseEvent> |
MouseEvent.MOUSE_PRESSED
This event occurs when mouse button is pressed.
|
static EventType<MouseEvent> |
MouseEvent.MOUSE_RELEASED
This event occurs when mouse button is released.
|
Modifier and Type | Method and Description |
---|---|
MouseEvent |
MouseEvent.copyFor(Object newSource,
EventTarget newTarget)
Copies this event for a different source and target.
|
MouseEvent |
MouseEvent.copyFor(Object newSource,
EventTarget newTarget,
EventType<? extends MouseEvent> eventType)
Creates a copy of the given event with the given fields substituted.
|
Modifier and Type | Method and Description |
---|---|
EventType<? extends MouseEvent> |
MouseEvent.getEventType() |
Modifier and Type | Method and Description |
---|---|
static MouseDragEvent |
MouseEvent.copyForMouseDragEvent(MouseEvent e,
Object source,
EventTarget target,
EventType<MouseDragEvent> type,
Object gestureSource,
PickResult pickResult)
Creates a copy of this mouse event of MouseDragEvent type
|
Modifier and Type | Method and Description |
---|---|
MouseEvent |
MouseEvent.copyFor(Object newSource,
EventTarget newTarget,
EventType<? extends MouseEvent> eventType)
Creates a copy of the given event with the given fields substituted.
|
MouseDragEvent |
MouseDragEvent.copyFor(Object newSource,
EventTarget newTarget,
EventType<? extends MouseEvent> type) |
Constructor and Description |
---|
MouseEvent(EventType<? extends MouseEvent> eventType,
double x,
double y,
double screenX,
double screenY,
MouseButton button,
int clickCount,
boolean shiftDown,
boolean controlDown,
boolean altDown,
boolean metaDown,
boolean primaryButtonDown,
boolean middleButtonDown,
boolean secondaryButtonDown,
boolean synthesized,
boolean popupTrigger,
boolean stillSincePress,
PickResult pickResult)
Constructs new MouseEvent event with null source and target.
|
MouseEvent(Object source,
EventTarget target,
EventType<? extends MouseEvent> eventType,
double x,
double y,
double screenX,
double screenY,
MouseButton button,
int clickCount,
boolean shiftDown,
boolean controlDown,
boolean altDown,
boolean metaDown,
boolean primaryButtonDown,
boolean middleButtonDown,
boolean secondaryButtonDown,
boolean synthesized,
boolean popupTrigger,
boolean stillSincePress,
PickResult pickResult)
Constructs new MouseEvent event.
|
Copyright © 2020. All rights reserved.