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

Variable Index

 o HANDLESIZE
The standard size of a handle.

Constructor Index

 o AbstractHandle(Figure)
Initializes the owner of the figure.

Method Index

 o containsPoint(int, int)
Tests if a point is contained in the handle.
 o displayBox()
Gets the display box of the handle.
 o draw(Graphics)
Draws this handle.
 o invokeEnd(int, int, Drawing)
Deprecated.
 o invokeEnd(int, int, int, int, DrawingView)
Tracks the end of the interaction.
 o invokeStart(int, int, Drawing)
 o invokeStart(int, int, DrawingView)
 o invokeStep(int, int, Drawing)
 o invokeStep(int, int, int, int, DrawingView)
Tracks a step of the interaction.
 o locate()
Locates the handle on the figure.
 o owner()
Gets the handle's owner.

Variables

 o HANDLESIZE
 public static final int HANDLESIZE
The standard size of a handle.

Constructors

 o AbstractHandle
 public AbstractHandle(Figure owner)
Initializes the owner of the figure.

Methods

 o locate
 public abstract Point locate()
Locates the handle on the figure. The handle is drawn centered around the returned point.

 o 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
 o 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
 o invokeStep
 public void invokeStep(int dx,
                        int dy,
                        Drawing drawing)
Parameters:
dx - x delta of this step
dy - y delta of this step
 o 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
 o 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
 o 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.

 o owner
 public Figure owner()
Gets the handle's owner.

 o displayBox
 public Rectangle displayBox()
Gets the display box of the handle.

 o containsPoint
 public boolean containsPoint(int x,
                              int y)
Tests if a point is contained in the handle.

 o draw
 public void draw(Graphics g)
Draws this handle.


All Packages  Class Hierarchy  This Package  Previous  Next  Index