Package com.bc.ceres.swing.figure
Interface FigureSelection
- All Superinterfaces:
ClipboardOwner
,Cloneable
,Extensible
,Figure
,FigureCollection
,Restorable
,Selection
- All Known Implementing Classes:
DefaultFigureSelection
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 Handle
s
at the given stage.
- Since:
- Ceres 0.10
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.bc.ceres.swing.figure.Figure
Figure.Rank
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionHandle[]
Gets the handles associated with the current selection stage.int
Gets the current selection stage.void
setSelectedHandle
(Handle handle) void
setSelectionStage
(int stage) Sets the current selection stage.Methods inherited from interface java.awt.datatransfer.ClipboardOwner
lostOwnership
Methods inherited from interface com.bc.ceres.core.Extensible
getExtension
Methods inherited from interface com.bc.ceres.swing.figure.Figure
addChangeListener, addFigure, addFigure, addFigures, addSegment, clone, contains, createHandles, dispose, draw, getBounds, getChangeListeners, getEffectiveStyle, getFigure, getFigure, getFigureCount, getFigureIndex, getFigures, getFigures, getMaxSelectionStage, getNormalStyle, getRank, getSegment, getSelectedStyle, isCloseTo, isCollection, isSelectable, isSelected, move, removeAllFigures, removeChangeListener, removeFigure, removeFigures, removeSegment, rotate, scale, setNormalStyle, setSegment, setSelected, setSelectedStyle
Methods inherited from interface com.bc.ceres.swing.undo.Restorable
createMemento, setMemento
Methods inherited from interface com.bc.ceres.swing.selection.Selection
clone, createTransferable, getPresentationName, getSelectedValue, getSelectedValues, isEmpty
-
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.- For a single selection, the handles are the ones created by the selected figure's
Figure.createHandles(int)
factory method. - For a multiple selection, the handles are the ones created by this figure selection's
Figure.createHandles(int)
factory method. - If the selection is empty, an empty handle array is returned.
- Returns:
- The handles associated with the current selection stage.
- See Also:
- For a single selection, the handles are the ones created by the selected figure's
-
getSelectedHandle
Handle getSelectedHandle() -
setSelectedHandle
-