- java.lang.Object
-
- com.sun.javafx.scene.control.behavior.BehaviorBase<SnapshotView>
-
- impl.org.controlsfx.behavior.SnapshotViewBehavior
-
public class SnapshotViewBehavior extends com.sun.javafx.scene.control.behavior.BehaviorBase<SnapshotView>
The behavior for theSnapshotView. It is concerned with creating and changing selections according to mouse events handed tohandleMouseEvents.
-
-
Constructor Summary
Constructors Constructor Description SnapshotViewBehavior(SnapshotView snapshotView)Creates a new behavior for the specifiedSnapshotView.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.sun.javafx.scene.control.inputmap.InputMap<SnapshotView>getInputMap()CursorhandleMouseEvent(MouseEvent mouseEvent)Handles the specified mouse event (possibly by creating/changing/removing a selection) and returns the matching cursor.
-
-
-
Constructor Detail
-
SnapshotViewBehavior
public SnapshotViewBehavior(SnapshotView snapshotView)
Creates a new behavior for the specifiedSnapshotView.- Parameters:
snapshotView- the control which this behavior will control
-
-
Method Detail
-
getInputMap
public com.sun.javafx.scene.control.inputmap.InputMap<SnapshotView> getInputMap()
- Specified by:
getInputMapin classcom.sun.javafx.scene.control.behavior.BehaviorBase<SnapshotView>
-
handleMouseEvent
public Cursor handleMouseEvent(MouseEvent mouseEvent)
Handles the specified mouse event (possibly by creating/changing/removing a selection) and returns the matching cursor.- Parameters:
mouseEvent- the handledMouseEvent; must not benull- Returns:
- the cursor which will be used for this event
-
-