|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.ObjectCH.ifa.draw.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)
Initializes the owner of the figure. |
|
| 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. |
void |
invokeEnd(int dx,
int dy,
Drawing drawing)
Deprecated. As of version 4.1, use invokeEnd(x, y, anchorX, anchorY, drawingView). Tracks the end of the interaction. |
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)
|
void |
invokeStart(int x,
int y,
DrawingView view)
|
void |
invokeStep(int dx,
int dy,
Drawing drawing)
|
void |
invokeStep(int x,
int y,
int anchorX,
int anchorY,
DrawingView view)
Tracks a step of the interaction. |
abstract java.awt.Point |
locate()
Locates the handle on the figure. |
Figure |
owner()
Gets the handle's owner. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int HANDLESIZE
| Constructor Detail |
|---|
public AbstractHandle(Figure owner)
| Method Detail |
|---|
public abstract java.awt.Point locate()
locate in interface Handle
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 started
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 container
public void invokeStep(int dx,
int dy,
Drawing drawing)
invokeStep in interface Handledx - x delta of this stepdy - y delta of this step
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 started
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 started
public void invokeEnd(int dx,
int dy,
Drawing drawing)
invokeEnd in interface Handlepublic Figure owner()
owner in interface Handlepublic java.awt.Rectangle displayBox()
displayBox in interface Handle
public boolean containsPoint(int x,
int y)
containsPoint in interface Handlepublic void draw(java.awt.Graphics g)
draw in interface Handle
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||