|
kiyut.citra 3.7 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectkiyut.citra.canvas.tool.AbstractTool
kiyut.citra.canvas.tool.ShapeMoveTool
public class ShapeMoveTool
Implementation of Shape Move Interactor Tool
| Field Summary | |
|---|---|
protected Cursor |
cursor
Cursor |
protected Shape |
movedShape
|
protected boolean |
moving
|
protected Cursor |
prevCursor
Previous Cursor |
protected Shape |
shape
|
protected int |
startX
|
protected int |
startY
|
protected Stroke |
stroke
|
protected int |
tx
|
protected int |
ty
|
| Fields inherited from class kiyut.citra.canvas.tool.AbstractTool |
|---|
canvas, enabled, listenerList |
| Constructor Summary | |
|---|---|
ShapeMoveTool()
Creates a new instance of ShapeMoveTool |
|
| Method Summary | |
|---|---|
void |
endTool()
Overidden to unregister input listener. |
Shape |
getShape()
|
void |
mouseDragged(MouseEvent evt)
|
void |
mouseMoved(MouseEvent evt)
|
void |
mousePressed(MouseEvent evt)
|
void |
mouseReleased(MouseEvent evt)
|
void |
paint(Graphics2D g2d)
this methods do nothing |
protected void |
reset()
reset all the variable |
void |
setShape(Shape shape)
|
| Methods inherited from class kiyut.citra.canvas.tool.AbstractTool |
|---|
addToolListener, fireStateChanged, isEnabled, keyPressed, keyReleased, keyTyped, mouseClicked, mouseEntered, mouseExited, registerInputListener, removeToolListener, setEnabled, startTool, unregisterInputListener |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected Cursor cursor
protected Cursor prevCursor
protected boolean moving
protected int startX
protected int startY
protected int tx
protected int ty
protected Shape shape
protected Shape movedShape
protected Stroke stroke
| Constructor Detail |
|---|
public ShapeMoveTool()
| Method Detail |
|---|
public void endTool()
endTool in interface FXToolendTool in class AbstractToolprotected void reset()
public void setShape(Shape shape)
public Shape getShape()
public void paint(Graphics2D g2d)
AbstractTool
paint in interface FXToolpaint in class AbstractToolg2d - Graphics2Dpublic void mouseMoved(MouseEvent evt)
mouseMoved in interface MouseMotionListenermouseMoved in class AbstractToolpublic void mousePressed(MouseEvent evt)
mousePressed in interface MouseListenermousePressed in class AbstractToolpublic void mouseDragged(MouseEvent evt)
mouseDragged in interface MouseMotionListenermouseDragged in class AbstractToolpublic void mouseReleased(MouseEvent evt)
mouseReleased in interface MouseListenermouseReleased in class AbstractTool
|
kiyut.citra 3.7 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||