Package kiyut.citra.canvas
Class FXSelectionModel
- java.lang.Object
-
- kiyut.citra.canvas.FXSelectionModel
-
public class FXSelectionModel extends Object
- Author:
- Kiyut
-
-
Constructor Summary
Constructors Constructor Description FXSelectionModel(FXCanvas canvas)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AreagetSelectionArea()Return a copy of selection Area, incase the area is modified externallyvoidinvertSelectionArea()voidpaint(Graphics2D g2d)Paint the Selected AreavoidsetSelectionArea(Area area)This methods take a copy of supplied parameter area, incase the area is modified externally
-
-
-
Constructor Detail
-
FXSelectionModel
public FXSelectionModel(FXCanvas canvas)
-
-
Method Detail
-
paint
public void paint(Graphics2D g2d)
Paint the Selected Area- Parameters:
g2d- Graphics2D
-
getSelectionArea
public Area getSelectionArea()
Return a copy of selection Area, incase the area is modified externally- Returns:
- Area
-
setSelectionArea
public void setSelectionArea(Area area)
This methods take a copy of supplied parameter area, incase the area is modified externally- Parameters:
area- The Area
-
invertSelectionArea
public void invertSelectionArea()
-
-