kiyut.citra 2.5

kiyut.citra.canvas
Class FXSelectionModel

java.lang.Object
  extended by kiyut.citra.canvas.FXSelectionModel

public class FXSelectionModel
extends Object

Author:
Kiyut

Field Summary
protected  Area area
           
protected  FXCanvas canvas
           
protected  Timer timer
           
 
Constructor Summary
FXSelectionModel(FXCanvas canvas)
          Creates a new instance of FXSelectionModel
 
Method Summary
 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

timer

protected Timer timer

area

protected Area area

canvas

protected FXCanvas canvas
Constructor Detail

FXSelectionModel

public FXSelectionModel(FXCanvas canvas)
Creates a new instance of FXSelectionModel

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()

kiyut.citra 2.5