Class SnapshotViewBehavior


  • public class SnapshotViewBehavior
    extends com.sun.javafx.scene.control.behavior.BehaviorBase<SnapshotView>
    The behavior for the SnapshotView. It is concerned with creating and changing selections according to mouse events handed to handleMouseEvents.
    • Constructor Detail

      • SnapshotViewBehavior

        public SnapshotViewBehavior​(SnapshotView snapshotView)
        Creates a new behavior for the specified SnapshotView.
        Parameters:
        snapshotView - the control which this behavior will control
    • Method Detail

      • getInputMap

        public com.sun.javafx.scene.control.inputmap.InputMap<SnapshotView> getInputMap()
        Specified by:
        getInputMap in class com.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 handled MouseEvent; must not be null
        Returns:
        the cursor which will be used for this event