|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jhotdraw.standard.AbstractHandle
org.jhotdraw.contrib.PolygonHandle
public class PolygonHandle
A handle for a node on the polygon. Based on PolyLineHandle
Nested Class Summary | |
---|---|
static class |
PolygonHandle.UndoActivity
|
Field Summary |
---|
Fields inherited from class org.jhotdraw.standard.AbstractHandle |
---|
HANDLESIZE |
Constructor Summary | |
---|---|
PolygonHandle(PolygonFigure owner,
Locator l,
int index)
Constructs a polygon handle. |
Method Summary | |
---|---|
void |
invokeEnd(int x,
int y,
int anchorX,
int anchorY,
DrawingView view)
Tracks the end of the interaction. |
void |
invokeStart(int x,
int y,
DrawingView view)
Tracks the start of the interaction. |
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. |
Methods inherited from class org.jhotdraw.standard.AbstractHandle |
---|
containsPoint, displayBox, draw, getCursor, getUndoActivity, invokeEnd, invokeStart, invokeStep, owner, setUndoActivity |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PolygonHandle(PolygonFigure owner, Locator l, int index)
owner
- the owning polygon figure.l
- the locatorindex
- the index of the node associated with this handle.Method Detail |
---|
public void invokeStart(int x, int y, DrawingView view)
Handle
invokeStart
in interface Handle
invokeStart
in class AbstractHandle
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 invokeStep(int x, int y, int anchorX, int anchorY, DrawingView view)
AbstractHandle
invokeStep
in interface Handle
invokeStep
in class AbstractHandle
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 invokeEnd(int x, int y, int anchorX, int anchorY, DrawingView view)
AbstractHandle
invokeEnd
in interface Handle
invokeEnd
in class AbstractHandle
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 java.awt.Point locate()
Handle
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |