|
|||||||||
| 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 | |
|---|---|
private DrawingView |
myDrawingView
|
private Handle |
myWrappedHandle
|
| Fields inherited from interface org.jhotdraw.draw.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. |
protected Handle |
getWrappedHandle()
|
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. |
protected void |
setDrawingView(DrawingView newDrawingView)
Deprecated. attribute not required anymore |
void |
setUndoActivity(Undoable newUndoableActivity)
Sets an Undoable to be used by the Undo/Redo infrastructure. |
protected void |
setWrappedHandle(Handle newWrappedHandle)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private Handle myWrappedHandle
private DrawingView myDrawingView
| 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 HandleHandle.locate()
public void invokeStart(int x,
int y,
DrawingView view)
invokeStart in interface Handlex - the x position where the interaction startedy - the y position where the interaction startedview - the handles containerHandle.invokeStart(int, int, org.jhotdraw.draw.DrawingView)
public void invokeStart(int x,
int y,
Drawing drawing)
invokeStart in interface Handlex - the x position where the interaction startedy - the y position where the interaction startedHandle.invokeStart(int, int, org.jhotdraw.draw.Drawing)
public void invokeStep(int x,
int y,
int anchorX,
int anchorY,
DrawingView view)
invokeStep in interface Handlex - 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.draw.DrawingView)
public void invokeStep(int dx,
int dy,
Drawing drawing)
invokeStep in interface Handledx - x delta of this stepdy - y delta of this stepHandle.invokeStep(int, int, org.jhotdraw.draw.Drawing)
public void invokeEnd(int x,
int y,
int anchorX,
int anchorY,
DrawingView view)
invokeEnd in interface Handlex - 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.draw.DrawingView)
public void invokeEnd(int dx,
int dy,
Drawing drawing)
invokeEnd in interface HandleHandle.invokeEnd(int, int, org.jhotdraw.draw.Drawing)public Figure owner()
owner in interface HandleHandle.owner()public java.awt.Rectangle displayBox()
displayBox in interface HandleHandle.displayBox()
public boolean containsPoint(int x,
int y)
containsPoint in interface HandleHandle.containsPoint(int, int)public void draw(java.awt.Graphics g)
draw in interface HandleHandle.draw(java.awt.Graphics)protected void setWrappedHandle(Handle newWrappedHandle)
protected Handle getWrappedHandle()
public DrawingView getDrawingView()
protected void setDrawingView(DrawingView newDrawingView)
public Undoable getUndoActivity()
Handle
getUndoActivity in interface HandleHandle.getUndoActivity()public void setUndoActivity(Undoable newUndoableActivity)
Handle
setUndoActivity in interface HandleHandle.setUndoActivity(org.jhotdraw.util.Undoable)public Cursor getCursor()
Handle
getCursor in interface HandleHandle.getCursor()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||