public interface SelectionHandler
Modifier and Type | Method and Description |
---|---|
void |
addToSelection(Figure figure)
Adds a figure to the current selection.
|
void |
clearSelection()
Clears the current selection.
|
void |
removeFromSelection(Figure figure)
Removes a figure from the selection.
|
java.util.List<Figure> |
selection()
Get an iterator over all selected figures
|
void |
toggleSelection(Figure figure)
If a figure isn't selected it is added to the selection.
|
java.util.List<Figure> selection()
void addToSelection(Figure figure)
figure
- the figure to add to the selectionvoid removeFromSelection(Figure figure)
figure
- the figure to removevoid toggleSelection(Figure figure)
figure
- the figure to togglevoid clearSelection()
From the book: Flexible, Reliable Software, © CRC Press 2010. Author: Henrik B. Christensen, Aarhus University, Denmark