public class JaxoDefaultHandle extends AbstractJaxoHandle
DEFAULT_COLOR, DEFAULT_FILL_COLOR, DEFAULT_SECONDARY_COLOR, DEFAULT_SIZE, DEFAULT_STROKE
Constructor and Description |
---|
JaxoDefaultHandle() |
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.
|
void |
paint(JaxoGraphics2D g2,
int x,
int y,
boolean marked,
java.awt.Color handleColor)
Paints the handle to the given graphics context.
|
getBounds, getColor, getFillColor, getSecondaryColor, getSize, getStroke, paint, paint, paint, paintSecondary, paintSecondary, setColor, setFillColor, setSecondaryColor, setSize, setStroke
public void paint(JaxoGraphics2D g2, int x, int y, boolean marked, java.awt.Color handleColor)
paint
in class AbstractJaxoHandle
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 marked (selected).handleColor
- The color of the handle.public 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.Licensed under GPL. For more information, see http://jaxodraw.sourceforge.net/license.html or the LICENSE file in the jaxodraw distribution.