Contents
Class DragSupport
java.lang.Object
eu.mihosoft.vrl.v3d.ext.openjfx.utils3d.DragSupport
Utility class that binds simple mouse gestures to number properties so that
their values can be controlled with mouse drag events.
-
Field Summary
FieldsModifier and TypeFieldDescriptionjavafx.event.EventHandler
<javafx.scene.input.KeyEvent> javafx.event.EventHandler
<javafx.scene.input.MouseEvent> -
Constructor Summary
ConstructorsConstructorDescriptionDragSupport
(javafx.scene.Scene target, javafx.scene.input.KeyCode modifier, javafx.geometry.Orientation orientation, javafx.beans.property.Property<Number> property) Creates DragSupport instance that attaches EventHandlers to the given scene and responds to mouse and keyboard events in order to change given property values according to mouse drag events of given orientationDragSupport
(javafx.scene.Scene target, javafx.scene.input.KeyCode modifier, javafx.geometry.Orientation orientation, javafx.beans.property.Property<Number> property, double factor) Creates DragSupport instance that attaches EventHandlers to the given scene and responds to mouse and keyboard events in order to change given property values according to mouse drag events of given orientation.DragSupport
(javafx.scene.Scene target, javafx.scene.input.KeyCode modifier, javafx.scene.input.MouseButton mouseButton, javafx.geometry.Orientation orientation, javafx.beans.property.Property<Number> property) DragSupport
(javafx.scene.Scene target, javafx.scene.input.KeyCode modifier, javafx.scene.input.MouseButton mouseButton, javafx.geometry.Orientation orientation, javafx.beans.property.Property<Number> property, double factor) -
Method Summary
Modifier and TypeMethodDescriptionvoid
detach()
Removes event handlers of this DragSupport instance from the target scene
-
Field Details
-
Constructor Details
-
DragSupport
public DragSupport(javafx.scene.Scene target, javafx.scene.input.KeyCode modifier, javafx.geometry.Orientation orientation, javafx.beans.property.Property<Number> property) Creates DragSupport instance that attaches EventHandlers to the given scene and responds to mouse and keyboard events in order to change given property values according to mouse drag events of given orientation- Parameters:
target
- scenemodifier
- null if no modifier neededorientation
- vertical or horizontalproperty
- number property to control- See Also:
-
DragSupport
public DragSupport(javafx.scene.Scene target, javafx.scene.input.KeyCode modifier, javafx.scene.input.MouseButton mouseButton, javafx.geometry.Orientation orientation, javafx.beans.property.Property<Number> property) -
DragSupport
public DragSupport(javafx.scene.Scene target, javafx.scene.input.KeyCode modifier, javafx.geometry.Orientation orientation, javafx.beans.property.Property<Number> property, double factor) Creates DragSupport instance that attaches EventHandlers to the given scene and responds to mouse and keyboard events in order to change given property values according to mouse drag events of given orientation. Mouse movement amount is multiplied by given factor.- Parameters:
target
- scenemodifier
- null if no modifier neededorientation
- vertical or horizontalproperty
- number property to controlfactor
- multiplier for mouse movement amount
-
DragSupport
public DragSupport(javafx.scene.Scene target, javafx.scene.input.KeyCode modifier, javafx.scene.input.MouseButton mouseButton, javafx.geometry.Orientation orientation, javafx.beans.property.Property<Number> property, double factor)
-
-
Method Details