Drawable, Interactive, Measurable, Selectablepublic class InteractiveArrow extends BoundedShape
| Modifier and Type | Class | Description |
|---|---|---|
protected static class |
InteractiveArrow.InteractiveArrowLoader |
A class to save and load InteractiveArrow in an XMLControl.
|
BoundedShape.BoundedShapeLoaderInteractiveShape.InteractiveShapeLoadercolor, x, yedgeColor, height, pixelSized, shape, shapeClass, theta, width, xoff, yoff| Constructor | Description |
|---|---|
InteractiveArrow(double x,
double y,
double w,
double h) |
Constructor InteractiveArrow
|
| Modifier and Type | Method | Description |
|---|---|---|
void |
draw(DrawingPanel panel,
java.awt.Graphics g) |
Draws the arrow.
|
static XML.ObjectLoader |
getLoader() |
Gets the XML object loader for this class.
|
java.awt.Cursor |
getPreferredCursor() |
Gets the cursor depending on the current hot spot.
|
boolean |
isInside(DrawingPanel panel,
int xpix,
int ypix) |
Determines if the shape is enabled and if the given pixel coordinates are within the shape.
|
void |
setOffset(double xoffset,
double yoffset) |
Drawing offset not supported.
|
void |
setStrokeWidth(double width) |
Sets the stroke for rendering fat arrows.
|
void |
setTheta(double theta) |
Rotates the arrow without changing its length.
|
void |
setWidthHeight(double width,
double height) |
Sets the origin, width (horizontal) and height (vertical) components of this arrow.
|
getX, getY, isEnabled, setEnabledcreateBoundedArrow, createBoundedCenteredArrow, createBoundedCircle, createBoundedEllipse, createBoundedImage, createBoundedRectangle, createBoundedTriangle, findInteractive, isHeightDrag, isRotateDrag, isSelected, isWidthDrag, isXYDrag, setHeightDrag, setRotateDrag, setSelected, setWidthDrag, setXYDrag, toggleSelected, toStringgetX, getY, isEnabled, setEnabled, setX, setXY, setYcontains, createArrow, createCenteredArrow, createCircle, createEllipse, createImage, createRectangle, createSquare, createTextLine, createTriangle, getHeight, getShape, getWidth, getXMax, getXMin, getYMax, getYMin, isMeasured, setHeight, setMarkerColor, setMeasured, setPixelSized, setWidth, setX, setXY, setY, tranform, transformgetXMax, getXMin, getYMax, getYMin, isMeasuredpublic InteractiveArrow(double x,
double y,
double w,
double h)
x - y - w - h - public void setStrokeWidth(double width)
width - doublepublic void setOffset(double xoffset,
double yoffset)
setOffset in class InteractiveShapexoffset - doubleyoffset - doublepublic boolean isInside(DrawingPanel panel, int xpix, int ypix)
isInside in class BoundedShapepanel - DrawingPanelxpix - intypix - intpublic void setTheta(double theta)
setTheta in class InteractiveShapetheta - public void setWidthHeight(double width,
double height)
width - doubleheight - doublepublic void draw(DrawingPanel panel, java.awt.Graphics g)
draw in interface Drawabledraw in class BoundedShapepanel - the world in which the arrow is viewedg - the graphics context upon which to drawpublic java.awt.Cursor getPreferredCursor()
getPreferredCursor in interface SelectablegetPreferredCursor in class BoundedShapepublic static XML.ObjectLoader getLoader()