14a14,14
> import java.awt.Graphics;
14a19,22
> import CH.ifa.draw.framework.Drawing;
> import CH.ifa.draw.framework.DrawingView;
> import CH.ifa.draw.framework.Figure;
> import CH.ifa.draw.framework.Handle;
15,15c15,15
< import java.awt.*;
---
> import java.awt.Point;
15a16,17
> import java.awt.Rectangle;
>
25a33,46
> /**
> * Constructor for UndoableHandle
.
> * @param newWrappedHandle
> */
> public UndoableHandle(Handle newWrappedHandle) {
> setWrappedHandle(newWrappedHandle);
> }
>
> /**
> * Constructor for UndoableHandle
.
> * @param newWrappedHandle
> * @param newDrawingView
> * @deprecated use the constructor without the DrawingView instead
> */
33a55,55
> * @see CH.ifa.draw.framework.Handle#locate()
40,40d79
< * @deprecated As of version 4.1,
41,41c80,80
< * use invokeStart(x, y, drawingView)
---
> * use invokeStart(x, y, drawingView)
45a66,67
> * @param view the handles container
> * @see CH.ifa.draw.framework.Handle#invokeStart(int, int, CH.ifa.draw.framework.DrawingView)
47,47c82,82
< public void invokeStart(int x, int y, Drawing drawing) {
---
> public void invokeStart(int x, int y, Drawing drawing) {
48,48c83,83
< getWrappedHandle().invokeStart(x, y, drawing);
---
> getWrappedHandle().invokeStart(x, y, drawing);
52,53d73
< * @deprecated As of version 4.1,
< * use invokeStart(x, y, drawingView)
57a78,78
> * @see CH.ifa.draw.framework.Handle#invokeStart(int, int, CH.ifa.draw.framework.Drawing)
58,59d68
< * @param view the handles container
< */
60,60c69,69
< public void invokeStart(int x, int y, DrawingView view) {
---
> public void invokeStart(int x, int y, DrawingView view) {
61,61c70,70
< getWrappedHandle().invokeStart(x, y, view);
---
> getWrappedHandle().invokeStart(x, y, view);
62,64d70
< }
<
< /**
66,67d98
< * use invokeStep(x, y, anchorX, anchorY, drawingView)
< *
68,68c99,99
< * Tracks a step of the interaction.
---
> * Tracks a step of the interaction.
69,69c100,100
< * @param dx x delta of this step
---
> * @param dx x delta of this step
70a102,110
> * @see CH.ifa.draw.framework.Handle#invokeStep(int, int, CH.ifa.draw.framework.Drawing)
> * @deprecated As of version 4.1,
> * use invokeStep(x, y, anchorX, anchorY, drawingView)
> */
> public void invokeStep(int dx, int dy, Drawing drawing) {
> getWrappedHandle().invokeStep(dx, dy, drawing);
> }
>
> /**
70,70c101,101
< * @param dy y delta of this step
---
> * @param dy y delta of this step
72,73d81
< public void invokeStep(int dx, int dy, Drawing drawing) {
< getWrappedHandle().invokeStep(dx, dy, drawing);
81a92,92
> * @see CH.ifa.draw.framework.Handle#invokeStep(int, int, int, int, CH.ifa.draw.framework.DrawingView)
92a116,116
> * @see CH.ifa.draw.framework.Handle#invokeEnd(int, int, int, int, CH.ifa.draw.framework.DrawingView)
99,99c123,123
< getDrawingView().editor().getUndoManager().pushUndo(undoableActivity);
---
> view.editor().getUndoManager().pushUndo(undoableActivity);
100,100c124,124
< getDrawingView().editor().getUndoManager().clearRedos();
---
> view.editor().getUndoManager().clearRedos();
107,107d128
< *
108,108c129,129
< * Tracks the end of the interaction.
---
> * Tracks the end of the interaction.
108a130,130
> * @see CH.ifa.draw.framework.Handle#invokeEnd(int, int, CH.ifa.draw.framework.Drawing)
115a140,140
> * @see CH.ifa.draw.framework.Handle#owner()
122a148,148
> * @see CH.ifa.draw.framework.Handle#displayBox()
129a156,156
> * @see CH.ifa.draw.framework.Handle#containsPoint(int, int)
136a164,164
> * @see CH.ifa.draw.framework.Handle#draw(java.awt.Graphics)
149a178,180
> /**
> * @deprecated attribute not required anymore
> */
153a185,187
> /**
> * @deprecated attribute not required anymore
> */
157a192,194
> /**
> * @see CH.ifa.draw.framework.Handle#getUndoActivity()
> */
161a199,201
> /**
> * @see CH.ifa.draw.framework.Handle#setUndoActivity(CH.ifa.draw.util.Undoable)
> */
164a205,212
>
> /**
> * @see CH.ifa.draw.framework.Handle#getCursor()
> */
> public Cursor getCursor() {
> return getWrappedHandle().getCursor();
> }
>