Package kiyut.citra.canvas.tool
Class SelectionRectangleTool
- java.lang.Object
-
- kiyut.citra.canvas.tool.AbstractTool
-
- kiyut.citra.canvas.tool.AbstractSelectionTool
-
- kiyut.citra.canvas.tool.AbstractSelectionAreaTool
-
- kiyut.citra.canvas.tool.SelectionRectangleTool
-
- All Implemented Interfaces:
KeyListener,MouseListener,MouseMotionListener,EventListener,MouseInputListener,FXTool
public class SelectionRectangleTool extends AbstractSelectionAreaTool
Implementation of Rectangle Selection Tool- Author:
- Kiyut
-
-
Field Summary
-
Fields inherited from class kiyut.citra.canvas.tool.AbstractSelectionAreaTool
area, bounds, newX, newY, paintedArea, startX, startY
-
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 SelectionRectangleTool()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected AreacreateArea()Return area.-
Methods inherited from class kiyut.citra.canvas.tool.AbstractSelectionAreaTool
mouseDragged, mousePressed, mouseReleased, paint, startTool
-
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
-
-
-
-
Method Detail
-
createArea
protected Area createArea()
Return area. This is called to get the initial shape area Create Rectangle Area- Specified by:
createAreain classAbstractSelectionAreaTool- Returns:
- Area
-
-