kiyut.citra 3.7

kiyut.citra.canvas.tool
Class SelectionLassoTool

java.lang.Object
  extended by kiyut.citra.canvas.tool.AbstractTool
      extended by kiyut.citra.canvas.tool.AbstractSelectionTool
          extended by kiyut.citra.canvas.tool.SelectionLassoTool
All Implemented Interfaces:
KeyListener, MouseListener, MouseMotionListener, EventListener, MouseInputListener, FXTool

public class SelectionLassoTool
extends AbstractSelectionTool

Implementation of Lasso Selection Tool

Author:
Kiyut

Field Summary
protected  GeneralPath path
           
 
Fields inherited from class kiyut.citra.canvas.tool.AbstractSelectionTool
cursor, prevCursor
 
Fields inherited from class kiyut.citra.canvas.tool.AbstractTool
canvas, enabled, listenerList
 
Constructor Summary
SelectionLassoTool()
          Creates a new instance of SelectionLassoTool
 
Method Summary
 void mouseDragged(MouseEvent evt)
           
 void mousePressed(MouseEvent evt)
           
 void mouseReleased(MouseEvent evt)
           
 void paint(Graphics2D g2d)
          this methods do nothing
 void reset()
           
 void startTool(FXCanvas canvas)
           Overidden to register input listener.
 
Methods inherited from class kiyut.citra.canvas.tool.AbstractSelectionTool
endTool
 
Methods inherited from class kiyut.citra.canvas.tool.AbstractTool
addToolListener, fireStateChanged, isEnabled, keyPressed, keyReleased, keyTyped, mouseClicked, mouseEntered, mouseExited, mouseMoved, registerInputListener, removeToolListener, setEnabled, unregisterInputListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

path

protected GeneralPath path
Constructor Detail

SelectionLassoTool

public SelectionLassoTool()
Creates a new instance of SelectionLassoTool

Method Detail

paint

public void paint(Graphics2D g2d)
Description copied from class: AbstractTool
this methods do nothing

Specified by:
paint in interface FXTool
Overrides:
paint in class AbstractTool
Parameters:
g2d - Graphics2D

startTool

public void startTool(FXCanvas canvas)
Description copied from class: AbstractSelectionTool
Overidden to register input listener. Inherited tool please do not forget to call super Overriden to set cursor

Specified by:
startTool in interface FXTool
Overrides:
startTool in class AbstractSelectionTool

reset

public void reset()

mousePressed

public void mousePressed(MouseEvent evt)
Specified by:
mousePressed in interface MouseListener
Overrides:
mousePressed in class AbstractTool

mouseDragged

public void mouseDragged(MouseEvent evt)
Specified by:
mouseDragged in interface MouseMotionListener
Overrides:
mouseDragged in class AbstractTool

mouseReleased

public void mouseReleased(MouseEvent evt)
Specified by:
mouseReleased in interface MouseListener
Overrides:
mouseReleased in class AbstractTool

kiyut.citra 3.7