All Packages Class Hierarchy This Package Previous Next Index
Class CH.ifa.draw.standard.AbstractHandle
java.lang.Object
|
+----CH.ifa.draw.standard.AbstractHandle
- public abstract class AbstractHandle
- extends Object
- implements Handle
AbstractHandle provides defaulf implementation for the
Handle interface.
- See Also:
- Figure, Handle
-
HANDLESIZE
- The standard size of a handle.
-
AbstractHandle(Figure)
- Initializes the owner of the figure.
-
containsPoint(int, int)
- Tests if a point is contained in the handle.
-
displayBox()
- Gets the display box of the handle.
-
draw(Graphics)
- Draws this handle.
-
invokeEnd(int, int, Drawing)
-
Deprecated.
-
invokeEnd(int, int, int, int, DrawingView)
- Tracks the end of the interaction.
-
invokeStart(int, int, Drawing)
-
-
invokeStart(int, int, DrawingView)
-
-
invokeStep(int, int, Drawing)
-
-
invokeStep(int, int, int, int, DrawingView)
- Tracks a step of the interaction.
-
locate()
- Locates the handle on the figure.
-
owner()
- Gets the handle's owner.
HANDLESIZE
public static final int HANDLESIZE
- The standard size of a handle.
AbstractHandle
public AbstractHandle(Figure owner)
- Initializes the owner of the figure.
locate
public abstract Point locate()
- Locates the handle on the figure. The handle is drawn
centered around the returned point.
invokeStart
public void invokeStart(int x,
int y,
Drawing drawing)
- Parameters:
- x - the x position where the interaction started
- y - the y position where the interaction started
invokeStart
public void invokeStart(int x,
int y,
DrawingView view)
- Parameters:
- x - the x position where the interaction started
- y - the y position where the interaction started
- view - the handles container
invokeStep
public void invokeStep(int dx,
int dy,
Drawing drawing)
- Parameters:
- dx - x delta of this step
- dy - y delta of this step
invokeStep
public void invokeStep(int x,
int y,
int anchorX,
int anchorY,
DrawingView view)
- Tracks a step of the interaction.
- Parameters:
- x - the current x position
- y - the current y position
- anchorX - the x position where the interaction started
- anchorY - the y position where the interaction started
invokeEnd
public void invokeEnd(int x,
int y,
int anchorX,
int anchorY,
DrawingView view)
- Tracks the end of the interaction.
- Parameters:
- x - the current x position
- y - the current y position
- anchorX - the x position where the interaction started
- anchorY - the y position where the interaction started
invokeEnd
public void invokeEnd(int dx,
int dy,
Drawing drawing)
- Note: invokeEnd() is deprecated.
As of version 4.1,
use invokeEnd(x, y, anchorX, anchorY, drawingView).
Tracks the end of the interaction.
owner
public Figure owner()
- Gets the handle's owner.
displayBox
public Rectangle displayBox()
- Gets the display box of the handle.
containsPoint
public boolean containsPoint(int x,
int y)
- Tests if a point is contained in the handle.
draw
public void draw(Graphics g)
- Draws this handle.
All Packages Class Hierarchy This Package Previous Next Index