public class StandardRubberBandSelectionStrategy extends java.lang.Object implements RubberBandSelectionStrategy
Constructor and Description |
---|
StandardRubberBandSelectionStrategy() |
Modifier and Type | Method and Description |
---|---|
void |
selectGroup(Drawing model,
java.awt.Rectangle rubberBandRectangle,
boolean toggle)
Add figures in 'model' to the model's internal selection.
|
public void selectGroup(Drawing model, java.awt.Rectangle rubberBandRectangle, boolean toggle)
RubberBandSelectionStrategy
selectGroup
in interface RubberBandSelectionStrategy
model
- the drawing where figures should be selected inrubberBandRectangle
- the rectangle selectedtoggle
- if true then figures are not added but "toggled" in and out of the
selectionFrom the book: Flexible, Reliable Software, © CRC Press 2010. Author: Henrik B. Christensen, Aarhus University, Denmark