13a14,17 > import java.awt.Graphics; > import java.awt.Point; > import java.awt.Rectangle; > 15c19,22 < import java.awt.*; --- > import CH.ifa.draw.framework.Drawing; > import CH.ifa.draw.framework.DrawingView; > import CH.ifa.draw.framework.Figure; > import CH.ifa.draw.framework.Handle; 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 > * @see CH.ifa.draw.framework.Handle#locate() 40,41d61 < * @deprecated As of version 4.1, < * 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,48c69,70 < public void invokeStart(int x, int y, Drawing drawing) { < getWrappedHandle().invokeStart(x, y, drawing); --- > public void invokeStart(int x, int y, DrawingView view) { > getWrappedHandle().invokeStart(x, y, view); 52,53d73 < * @deprecated As of version 4.1, < * use invokeStart(x, y, drawingView) 58,64c78 < * @param view the handles container < */ < public void invokeStart(int x, int y, DrawingView view) { < getWrappedHandle().invokeStart(x, y, view); < } < < /** --- > * @see CH.ifa.draw.framework.Handle#invokeStart(int, int, CH.ifa.draw.framework.Drawing) 66,70c80 < * use invokeStep(x, y, anchorX, anchorY, drawingView) < * < * Tracks a step of the interaction. < * @param dx x delta of this step < * @param dy y delta of this step --- > * use invokeStart(x, y, drawingView) 72,73c82,83 < public void invokeStep(int dx, int dy, Drawing drawing) { < getWrappedHandle().invokeStep(dx, dy, drawing); --- > public void invokeStart(int x, int y, Drawing drawing) { > getWrappedHandle().invokeStart(x, y, drawing); 81a92 > * @see CH.ifa.draw.framework.Handle#invokeStep(int, int, int, int, CH.ifa.draw.framework.DrawingView) 87a99,110 > * Tracks a step of the interaction. > * @param dx x delta of this step > * @param dy y delta of this step > * @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); > } > > /** 92a116 > * @see CH.ifa.draw.framework.Handle#invokeEnd(int, int, int, int, CH.ifa.draw.framework.DrawingView) 99,100c123,124 < getDrawingView().editor().getUndoManager().pushUndo(undoableActivity); < getDrawingView().editor().getUndoManager().clearRedos(); --- > view.editor().getUndoManager().pushUndo(undoableActivity); > view.editor().getUndoManager().clearRedos(); 104a129,130 > * Tracks the end of the interaction. > * @see CH.ifa.draw.framework.Handle#invokeEnd(int, int, CH.ifa.draw.framework.Drawing) 107,108d132 < * < * Tracks the end of the interaction. 115a140 > * @see CH.ifa.draw.framework.Handle#owner() 122a148 > * @see CH.ifa.draw.framework.Handle#displayBox() 129a156 > * @see CH.ifa.draw.framework.Handle#containsPoint(int, int) 136a164 > * @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(); > } >