Package selector

Enum Class PointToPointSelectionModel.PointToPointState

java.lang.Object
java.lang.Enum<PointToPointSelectionModel.PointToPointState>
selector.PointToPointSelectionModel.PointToPointState
All Implemented Interfaces:
Serializable, Comparable<PointToPointSelectionModel.PointToPointState>, Constable, SelectionModel.SelectionState
Enclosing class:
PointToPointSelectionModel

static enum PointToPointSelectionModel.PointToPointState extends Enum<PointToPointSelectionModel.PointToPointState> implements SelectionModel.SelectionState
The possible states that a point-to-point selection model can be in.
  • Nested Class Summary

    Nested classes/interfaces inherited from class java.lang.Enum

    Enum.EnumDesc<E extends Enum<E>>
  • Enum Constant Summary

    Enum Constants
    Enum Constant
    Description
    No selection is currently in progress (no starting point has been selected).
    The selection path represents a closed selection that start and ends at the same point.
    Currently assembling a selection.
  • 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.
    Returns the enum constant of this class with the specified name.
    Returns an array containing the constants of this enum class, in the order they are declared.

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Enum Constant Details

    • NO_SELECTION

      public static final PointToPointSelectionModel.PointToPointState NO_SELECTION
      No selection is currently in progress (no starting point has been selected).
    • SELECTING

      public static final PointToPointSelectionModel.PointToPointState SELECTING
      Currently assembling a selection. A starting point has been selected, and the selection path may contain a sequence of segments, which can be appended to by adding points.
    • SELECTED

      public static final PointToPointSelectionModel.PointToPointState SELECTED
      The selection path represents a closed selection that start and ends at the same point. Points may be moved, but no additional points may be added. The selected region of the image may be extracted and saved from this state.
  • Method Details