Interface FigureSelection

All Superinterfaces:
ClipboardOwner, Cloneable, Extensible, Figure, FigureCollection, Restorable, Selection
All Known Implementing Classes:
DefaultFigureSelection

public interface FigureSelection extends FigureCollection, Selection
A selection of figures.

Figures added to this collection will automatically be selected. When removed, they become deselected.

A figure selection can have a certain selection stage. When displayed, a figure selections asks its figures for its Handles at the given stage.

Since:
Ceres 0.10
  • Method Details

    • getSelectionStage

      int getSelectionStage()
      Gets the current selection stage. The maximum selection stage is given by the selected figure(s).
      Returns:
      The current selection stage.
      See Also:
    • setSelectionStage

      void setSelectionStage(int stage)
      Sets the current selection stage. The maximum selection stage is given by the selected figure(s).
      Parameters:
      stage - The current selection stage.
    • getHandles

      Handle[] getHandles()
      Gets the handles associated with the current selection stage.
      1. For a single selection, the handles are the ones created by the selected figure's Figure.createHandles(int) factory method.
      2. For a multiple selection, the handles are the ones created by this figure selection's Figure.createHandles(int) factory method.
      3. If the selection is empty, an empty handle array is returned.
      Returns:
      The handles associated with the current selection stage.
      See Also:
    • getSelectedHandle

      Handle getSelectedHandle()
    • setSelectedHandle

      void setSelectedHandle(Handle handle)