|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jhotdraw.util.UndoableHandle
public class UndoableHandle
Field Summary |
---|
Fields inherited from interface org.jhotdraw.framework.Handle |
---|
HANDLESIZE |
Constructor Summary | |
---|---|
UndoableHandle(Handle newWrappedHandle)
Constructor for UndoableHandle . |
|
UndoableHandle(Handle newWrappedHandle,
DrawingView newDrawingView)
Deprecated. use the constructor without the DrawingView instead |
Method Summary | |
---|---|
boolean |
containsPoint(int x,
int y)
Tests if a point is contained in the handle. |
java.awt.Rectangle |
displayBox()
Gets the display box of the handle. |
void |
draw(java.awt.Graphics g)
Draws this handle. |
Cursor |
getCursor()
Returns the preferred Cursor for this Handle. |
DrawingView |
getDrawingView()
Deprecated. attribute not required anymore |
Undoable |
getUndoActivity()
Returns an Undoable to be used by the Undo/Redo infrastructure. |
void |
invokeEnd(int dx,
int dy,
Drawing drawing)
Deprecated. As of version 4.1, use invokeEnd(x, y, anchorX, anchorY, drawingView). |
void |
invokeEnd(int x,
int y,
int anchorX,
int anchorY,
DrawingView view)
Tracks the end of the interaction. |
void |
invokeStart(int x,
int y,
Drawing drawing)
Deprecated. As of version 4.1, use invokeStart(x, y, drawingView) |
void |
invokeStart(int x,
int y,
DrawingView view)
Tracks the start of the interaction. |
void |
invokeStep(int dx,
int dy,
Drawing drawing)
Deprecated. As of version 4.1, use invokeStep(x, y, anchorX, anchorY, drawingView) |
void |
invokeStep(int x,
int y,
int anchorX,
int anchorY,
DrawingView view)
Tracks a step of the interaction. |
java.awt.Point |
locate()
Locates the handle on the figure. |
Figure |
owner()
Gets the handle's owner. |
void |
setUndoActivity(Undoable newUndoableActivity)
Sets an Undoable to be used by the Undo/Redo infrastructure. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public UndoableHandle(Handle newWrappedHandle)
UndoableHandle
.
newWrappedHandle
- public UndoableHandle(Handle newWrappedHandle, DrawingView newDrawingView)
UndoableHandle
.
newWrappedHandle
- newDrawingView
- Method Detail |
---|
public java.awt.Point locate()
locate
in interface Handle
Handle.locate()
public void invokeStart(int x, int y, DrawingView view)
invokeStart
in interface Handle
x
- the x position where the interaction startedy
- the y position where the interaction startedview
- the handles containerHandle.invokeStart(int, int, org.jhotdraw.framework.DrawingView)
public void invokeStart(int x, int y, Drawing drawing)
invokeStart
in interface Handle
x
- the x position where the interaction startedy
- the y position where the interaction startedHandle.invokeStart(int, int, org.jhotdraw.framework.Drawing)
public void invokeStep(int x, int y, int anchorX, int anchorY, DrawingView view)
invokeStep
in interface Handle
x
- the current x positiony
- the current y positionanchorX
- the x position where the interaction startedanchorY
- the y position where the interaction startedHandle.invokeStep(int, int, int, int, org.jhotdraw.framework.DrawingView)
public void invokeStep(int dx, int dy, Drawing drawing)
invokeStep
in interface Handle
dx
- x delta of this stepdy
- y delta of this stepHandle.invokeStep(int, int, org.jhotdraw.framework.Drawing)
public void invokeEnd(int x, int y, int anchorX, int anchorY, DrawingView view)
invokeEnd
in interface Handle
x
- the current x positiony
- the current y positionanchorX
- the x position where the interaction startedanchorY
- the y position where the interaction startedHandle.invokeEnd(int, int, int, int, org.jhotdraw.framework.DrawingView)
public void invokeEnd(int dx, int dy, Drawing drawing)
invokeEnd
in interface Handle
Handle.invokeEnd(int, int, org.jhotdraw.framework.Drawing)
public Figure owner()
owner
in interface Handle
Handle.owner()
public java.awt.Rectangle displayBox()
displayBox
in interface Handle
Handle.displayBox()
public boolean containsPoint(int x, int y)
containsPoint
in interface Handle
Handle.containsPoint(int, int)
public void draw(java.awt.Graphics g)
draw
in interface Handle
Handle.draw(java.awt.Graphics)
public DrawingView getDrawingView()
public Undoable getUndoActivity()
Handle
getUndoActivity
in interface Handle
Handle.getUndoActivity()
public void setUndoActivity(Undoable newUndoableActivity)
Handle
setUndoActivity
in interface Handle
Handle.setUndoActivity(org.jhotdraw.util.Undoable)
public Cursor getCursor()
Handle
getCursor
in interface Handle
Handle.getCursor()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |