public interface JaxoHandle
| Modifier and Type | Method and Description |
|---|---|
boolean |
contains(int handleX,
int handleY,
int x,
int y)
Determines whether the given point is contained in this handle.
|
java.awt.Rectangle |
getBounds(int x,
int y)
Return an enclosing Rectangle that completely contains this handle
at the given position.
|
void |
paint(JaxoGraphics2D g2,
int x,
int y,
boolean marked,
boolean secondary)
Paint the handle at a given position.
|
void paint(JaxoGraphics2D g2, int x, int y, boolean marked, boolean secondary)
g2 - The graphics context to paint to.x - The x position of the handle.y - The y position of the handle.marked - True if the handle should be painted as marked.
A marked handle is one that has been selected, eg for an edit operation.secondary - True if this is a secondary handle. A secondary handle
is one that cannot be selected in the current context.boolean contains(int handleX,
int handleY,
int x,
int y)
handleX - The x position of the handle.handleY - The y position of the handle.x - The x position of the point to check.y - The y position of the point to check.java.awt.Rectangle getBounds(int x,
int y)
x - the x position of this handle.y - the x position of this handle.Licensed under GPL. For more information, see http://jaxodraw.sourceforge.net/license.html or the LICENSE file in the jaxodraw distribution.