Package kiyut.citra.canvas.tool
Class SelectionLassoTool
- java.lang.Object
-
- kiyut.citra.canvas.tool.AbstractTool
-
- kiyut.citra.canvas.tool.AbstractSelectionTool
-
- 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
Fields Modifier and Type Field Description protected GeneralPathpath-
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
Constructors Constructor Description SelectionLassoTool()Creates a new instance of SelectionLassoTool
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidmouseDragged(MouseEvent evt)voidmousePressed(MouseEvent evt)voidmouseReleased(MouseEvent evt)voidpaint(Graphics2D g2d)this methods do nothingvoidreset()voidstartTool(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
-
-
-
-
Field Detail
-
path
protected GeneralPath path
-
-
Method Detail
-
paint
public void paint(Graphics2D g2d)
Description copied from class:AbstractToolthis methods do nothing- Specified by:
paintin interfaceFXTool- Overrides:
paintin classAbstractTool- Parameters:
g2d- Graphics2D
-
startTool
public void startTool(FXCanvas canvas)
Description copied from class:AbstractSelectionToolOveridden to register input listener. Inherited tool please do not forget to call super Overriden to set cursor- Specified by:
startToolin interfaceFXTool- Overrides:
startToolin classAbstractSelectionTool
-
reset
public void reset()
-
mousePressed
public void mousePressed(MouseEvent evt)
- Specified by:
mousePressedin interfaceMouseListener- Overrides:
mousePressedin classAbstractTool
-
mouseDragged
public void mouseDragged(MouseEvent evt)
- Specified by:
mouseDraggedin interfaceMouseMotionListener- Overrides:
mouseDraggedin classAbstractTool
-
mouseReleased
public void mouseReleased(MouseEvent evt)
- Specified by:
mouseReleasedin interfaceMouseListener- Overrides:
mouseReleasedin classAbstractTool
-
-