public class FXSelectionModel extends Object
| Modifier and Type | Field and Description |
|---|---|
protected Area |
area |
protected FXCanvas |
canvas |
protected Timer |
timer |
| Constructor and Description |
|---|
FXSelectionModel(FXCanvas canvas)
Creates a new instance of FXSelectionModel
|
| Modifier and Type | Method and Description |
|---|---|
Area |
getSelectionArea()
Return a copy of selection Area, incase the area is modified externally
|
void |
invertSelectionArea() |
void |
paint(Graphics2D g2d)
Paint the Selected Area
|
void |
setSelectionArea(Area area)
This methods take a copy of supplied parameter area, incase the area is modified
externally
|
public FXSelectionModel(FXCanvas canvas)
public void paint(Graphics2D g2d)
g2d - Graphics2Dpublic Area getSelectionArea()
public void setSelectionArea(Area area)
area - The Areapublic void invertSelectionArea()