|
kiyut.citra 2.5 | ||||||||
| 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.AbstractSelectionTool
kiyut.citra.canvas.tool.SelectionResizeTool
public class SelectionResizeTool
Implementation of Resize Selection Tool
| Field Summary | |
|---|---|
protected AffineTransform |
canvasAt
|
protected boolean |
constraint
|
protected int |
direction
|
protected Shape |
resizedShape
|
protected Shape |
shape
|
| 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 | |
|---|---|
SelectionResizeTool()
Creates a new instance of SelectionRectangleTool |
|
| Method Summary | |
|---|---|
protected AffineTransform |
createTransform()
Return resize transform |
protected int |
determineDirection(int pX,
int pY)
Determine direction. |
void |
endTool()
Overidden to unregister input listener. |
void |
mouseDragged(MouseEvent evt)
|
void |
mouseMoved(MouseEvent evt)
|
void |
mousePressed(MouseEvent evt)
|
void |
mouseReleased(MouseEvent evt)
|
void |
paint(Graphics2D g2d)
Invoked by FXCanvas to draw tool. |
void |
reset()
|
void |
startTool(FXCanvas canvas)
Overidden to register input listener. |
| Methods inherited from class kiyut.citra.canvas.tool.AbstractTool |
|---|
addToolListener, fireStateChanged, isEnabled, keyPressed, keyReleased, keyTyped, mouseClicked, mouseEntered, mouseExited, registerInputListener, removeToolListener, setEnabled, unregisterInputListener |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected Shape shape
protected Shape resizedShape
protected int direction
protected AffineTransform canvasAt
protected boolean constraint
| Constructor Detail |
|---|
public SelectionResizeTool()
| Method Detail |
|---|
public void paint(Graphics2D g2d)
FXTool
paint in interface FXToolpaint in class AbstractToolg2d - the Graphics2D context in which to paintpublic void startTool(FXCanvas canvas)
AbstractSelectionTool
startTool in interface FXToolstartTool in class AbstractSelectionToolpublic void endTool()
AbstractSelectionTool
endTool in interface FXToolendTool in class AbstractSelectionToolpublic void reset()
public 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
protected int determineDirection(int pX,
int pY)
1 2 4 4 5 6 7 8 9Note: there is direction 5
kiyut.sketsa.canvas.CanvasSelection#getBorder()protected AffineTransform createTransform()
|
kiyut.citra 2.5 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||