Package selector

Interface SelectionModel.SelectionState

All Known Implementing Classes:
PointToPointSelectionModel.PointToPointState, SplineSelectionModel.SplineState
Enclosing class:
SelectionModel

public static interface SelectionModel.SelectionState
Declares capabilities that an object representing the "state" of selection progress must be able to support.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Return whether it is legal to invoke `addPoint()` in this state in order to extend the selection.
    boolean
    Return whether it is legal to invoke `movePoint()` in this state in order to modify the location of an existing control point.
    boolean
    Return whether it is legal to invoke `finishSelection()` in this state in order to close the selection by connecting it back to its start.
    boolean
    Return whether it is legal to invoke `undo()` in this state in order to remove the control point that was most recently added.
    boolean
    Return true if we are at the start of the selection process and no control points have been defined.
    boolean
    Return true if the selection has been completed, in which case no more points can be added, but the existing points can be moved.
    boolean
    Return whether this is a transient state that is performing work in the background.
  • Method Details

    • isEmpty

      boolean isEmpty()
      Return true if we are at the start of the selection process and no control points have been defined.
    • isFinished

      boolean isFinished()
      Return true if the selection has been completed, in which case no more points can be added, but the existing points can be moved.
    • canUndo

      boolean canUndo()
      Return whether it is legal to invoke `undo()` in this state in order to remove the control point that was most recently added.
    • canAddPoint

      boolean canAddPoint()
      Return whether it is legal to invoke `addPoint()` in this state in order to extend the selection.
    • canFinish

      boolean canFinish()
      Return whether it is legal to invoke `finishSelection()` in this state in order to close the selection by connecting it back to its start.
    • canEdit

      boolean canEdit()
      Return whether it is legal to invoke `movePoint()` in this state in order to modify the location of an existing control point.
    • isProcessing

      boolean isProcessing()
      Return whether this is a transient state that is performing work in the background. Typically the only legal operations in such a state are `cancelProcessing()` and `reset()`.