Uses of Class
javafx.scene.input.MouseEvent
Packages that use MouseEvent
Package
Description
Provides the core set of base
classes for the JavaFX Scene Graph API.
The javafx.scene.control.skin package is where the skin classes, typically
one for each UI control, are located
Provides the set of classes for mouse and keyboard input event handling.
-
Uses of MouseEvent in javafx.scene
Methods in javafx.scene that return types with arguments of type MouseEventModifier and TypeMethodDescriptionfinal EventHandler<? super MouseEvent> Node.getOnDragDetected()Gets the value of theonDragDetectedproperty.final EventHandler<? super MouseEvent> Scene.getOnDragDetected()Gets the value of theonDragDetectedproperty.final EventHandler<? super MouseEvent> Node.getOnMouseClicked()Gets the value of theonMouseClickedproperty.final EventHandler<? super MouseEvent> Scene.getOnMouseClicked()Gets the value of theonMouseClickedproperty.final EventHandler<? super MouseEvent> Node.getOnMouseDragged()Gets the value of theonMouseDraggedproperty.final EventHandler<? super MouseEvent> Scene.getOnMouseDragged()Gets the value of theonMouseDraggedproperty.final EventHandler<? super MouseEvent> Node.getOnMouseEntered()Gets the value of theonMouseEnteredproperty.final EventHandler<? super MouseEvent> Scene.getOnMouseEntered()Gets the value of theonMouseEnteredproperty.final EventHandler<? super MouseEvent> Node.getOnMouseExited()Gets the value of theonMouseExitedproperty.final EventHandler<? super MouseEvent> Scene.getOnMouseExited()Gets the value of theonMouseExitedproperty.final EventHandler<? super MouseEvent> Node.getOnMouseMoved()Gets the value of theonMouseMovedproperty.final EventHandler<? super MouseEvent> Scene.getOnMouseMoved()Gets the value of theonMouseMovedproperty.final EventHandler<? super MouseEvent> Node.getOnMousePressed()Gets the value of theonMousePressedproperty.final EventHandler<? super MouseEvent> Scene.getOnMousePressed()Gets the value of theonMousePressedproperty.final EventHandler<? super MouseEvent> Node.getOnMouseReleased()Gets the value of theonMouseReleasedproperty.final EventHandler<? super MouseEvent> Scene.getOnMouseReleased()Gets the value of theonMouseReleasedproperty.final ObjectProperty<EventHandler<? super MouseEvent>> Node.onDragDetectedProperty()Defines a function to be called when drag gesture has been detected.final ObjectProperty<EventHandler<? super MouseEvent>> Scene.onDragDetectedProperty()Defines a function to be called when drag gesture has been detected.final ObjectProperty<EventHandler<? super MouseEvent>> Node.onMouseClickedProperty()Defines a function to be called when a mouse button has been clicked (pressed and released) on thisNode.final ObjectProperty<EventHandler<? super MouseEvent>> Scene.onMouseClickedProperty()Defines a function to be called when a mouse button has been clicked (pressed and released) on thisScene.final ObjectProperty<EventHandler<? super MouseEvent>> Node.onMouseDraggedProperty()Defines a function to be called when a mouse button is pressed on thisNodeand then dragged.final ObjectProperty<EventHandler<? super MouseEvent>> Scene.onMouseDraggedProperty()Defines a function to be called when a mouse button is pressed on thisSceneand then dragged.final ObjectProperty<EventHandler<? super MouseEvent>> Node.onMouseEnteredProperty()Defines a function to be called when the mouse enters thisNode.final ObjectProperty<EventHandler<? super MouseEvent>> Scene.onMouseEnteredProperty()Defines a function to be called when the mouse enters thisScene.final ObjectProperty<EventHandler<? super MouseEvent>> Node.onMouseExitedProperty()Defines a function to be called when the mouse exits thisNode.final ObjectProperty<EventHandler<? super MouseEvent>> Scene.onMouseExitedProperty()Defines a function to be called when the mouse exits thisScene.final ObjectProperty<EventHandler<? super MouseEvent>> Node.onMouseMovedProperty()Defines a function to be called when mouse cursor moves within thisNodebut no buttons have been pushed.final ObjectProperty<EventHandler<? super MouseEvent>> Scene.onMouseMovedProperty()Defines a function to be called when mouse cursor moves within thisScenebut no buttons have been pushed.final ObjectProperty<EventHandler<? super MouseEvent>> Node.onMousePressedProperty()Defines a function to be called when a mouse button has been pressed on thisNode.final ObjectProperty<EventHandler<? super MouseEvent>> Scene.onMousePressedProperty()Defines a function to be called when a mouse button has been pressed on thisScene.final ObjectProperty<EventHandler<? super MouseEvent>> Node.onMouseReleasedProperty()Defines a function to be called when a mouse button has been released on thisNode.final ObjectProperty<EventHandler<? super MouseEvent>> Scene.onMouseReleasedProperty()Defines a function to be called when a mouse button has been released on thisScene.Method parameters in javafx.scene with type arguments of type MouseEventModifier and TypeMethodDescriptionfinal voidNode.setOnDragDetected(EventHandler<? super MouseEvent> value) Sets the value of theonDragDetectedproperty.final voidScene.setOnDragDetected(EventHandler<? super MouseEvent> value) Sets the value of theonDragDetectedproperty.final voidNode.setOnMouseClicked(EventHandler<? super MouseEvent> value) Sets the value of theonMouseClickedproperty.final voidScene.setOnMouseClicked(EventHandler<? super MouseEvent> value) Sets the value of theonMouseClickedproperty.final voidNode.setOnMouseDragged(EventHandler<? super MouseEvent> value) Sets the value of theonMouseDraggedproperty.final voidScene.setOnMouseDragged(EventHandler<? super MouseEvent> value) Sets the value of theonMouseDraggedproperty.final voidNode.setOnMouseEntered(EventHandler<? super MouseEvent> value) Sets the value of theonMouseEnteredproperty.final voidScene.setOnMouseEntered(EventHandler<? super MouseEvent> value) Sets the value of theonMouseEnteredproperty.final voidNode.setOnMouseExited(EventHandler<? super MouseEvent> value) Sets the value of theonMouseExitedproperty.final voidScene.setOnMouseExited(EventHandler<? super MouseEvent> value) Sets the value of theonMouseExitedproperty.final voidNode.setOnMouseMoved(EventHandler<? super MouseEvent> value) Sets the value of theonMouseMovedproperty.final voidScene.setOnMouseMoved(EventHandler<? super MouseEvent> value) Sets the value of theonMouseMovedproperty.final voidNode.setOnMousePressed(EventHandler<? super MouseEvent> value) Sets the value of theonMousePressedproperty.final voidScene.setOnMousePressed(EventHandler<? super MouseEvent> value) Sets the value of theonMousePressedproperty.final voidNode.setOnMouseReleased(EventHandler<? super MouseEvent> value) Sets the value of theonMouseReleasedproperty.final voidScene.setOnMouseReleased(EventHandler<? super MouseEvent> value) Sets the value of theonMouseReleasedproperty. -
Uses of MouseEvent in javafx.scene.control.skin
Methods in javafx.scene.control.skin with parameters of type MouseEventModifier and TypeMethodDescriptionprotected voidTableHeaderRow.showColumnMenu(MouseEvent mouseEvent) Shows a menu containing all leaf columns as items. -
Uses of MouseEvent in javafx.scene.input
Subclasses of MouseEvent in javafx.scene.inputModifier and TypeClassDescriptionfinal classMouse drag events are delivered to potential gesture targets during full press-drag-release gestures.Fields in javafx.scene.input with type parameters of type MouseEventModifier and TypeFieldDescriptionstatic final EventType<MouseEvent> MouseEvent.ANYCommon supertype for all mouse event types.static final EventType<MouseEvent> MouseEvent.DRAG_DETECTEDThis event is delivered to a node that is identified as a source of a dragging gesture.static final EventType<MouseEvent> MouseEvent.MOUSE_CLICKEDThis event occurs when a mouse button has been clicked (pressed and released on the same node).static final EventType<MouseEvent> MouseEvent.MOUSE_DRAGGEDThis event occurs when the mouse moves with a pressed button.static final EventType<MouseEvent> MouseEvent.MOUSE_ENTEREDThis event occurs when the mouse enters a node.static final EventType<MouseEvent> MouseEvent.MOUSE_ENTERED_TARGETThis event occurs when the mouse enters a node.static final EventType<MouseEvent> MouseEvent.MOUSE_EXITEDThis event occurs when the mouse exits a node.static final EventType<MouseEvent> MouseEvent.MOUSE_EXITED_TARGETThis event occurs when the mouse exits a node.static final EventType<MouseEvent> MouseEvent.MOUSE_MOVEDThis event occurs when the mouse moves within a node and no buttons are pressed.static final EventType<MouseEvent> MouseEvent.MOUSE_PRESSEDThis event occurs when a mouse button is pressed.static final EventType<MouseEvent> MouseEvent.MOUSE_RELEASEDThis event occurs when a mouse button is released.Methods in javafx.scene.input that return MouseEventModifier and TypeMethodDescriptionMouseEvent.copyFor(Object newSource, EventTarget newTarget) Copies this event for a different source and target.MouseEvent.copyFor(Object newSource, EventTarget newTarget, EventType<? extends MouseEvent> eventType) Creates a copy of the given event with the given fields substituted.Methods in javafx.scene.input that return types with arguments of type MouseEventMethods in javafx.scene.input with parameters of type MouseEventModifier and TypeMethodDescriptionstatic MouseDragEventMouseEvent.copyForMouseDragEvent(MouseEvent e, Object source, EventTarget target, EventType<MouseDragEvent> type, Object gestureSource, PickResult pickResult) Creates a copy of this mouse event of MouseDragEvent typeMethod parameters in javafx.scene.input with type arguments of type MouseEventModifier and TypeMethodDescriptionMouseDragEvent.copyFor(Object newSource, EventTarget newTarget, EventType<? extends MouseEvent> type) MouseEvent.copyFor(Object newSource, EventTarget newTarget, EventType<? extends MouseEvent> eventType) Creates a copy of the given event with the given fields substituted.Constructor parameters in javafx.scene.input with type arguments of type MouseEventModifierConstructorDescriptionMouseEvent(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 backButtonDown, boolean forwardButtonDown, boolean synthesized, boolean popupTrigger, boolean stillSincePress, PickResult pickResult) Constructs new MouseEvent event.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.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 backButtonDown, boolean forwardButtonDown, boolean synthesized, boolean popupTrigger, boolean stillSincePress, PickResult pickResult) Constructs new MouseEvent event with null source and target.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.