|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jhotdraw.standard.AbstractHandle
public abstract class AbstractHandle
AbstractHandle provides defaulf implementation for the Handle interface.
Figure
,
Handle
Field Summary | |
---|---|
static int |
HANDLESIZE
The standard size of a handle. |
Constructor Summary | |
---|---|
AbstractHandle(Figure owner)
Constructor for AbstractHandle . |
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. |
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. |
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 |
Methods inherited from interface org.jhotdraw.framework.Handle |
---|
locate |
Field Detail |
---|
public static final int HANDLESIZE
Constructor Detail |
---|
public AbstractHandle(Figure owner)
AbstractHandle
.
Initializes the owner of the figure.
owner
- Method Detail |
---|
public void invokeStart(int x, int y, DrawingView view)
Handle
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 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 |