public class InteractiveArrow extends BoundedShape
| Modifier and Type | Class and Description |
|---|---|
protected static class |
InteractiveArrow.InteractiveArrowLoader
A class to save and load InteractiveArrow in an XMLControl.
|
BoundedShape.BoundedShapeLoaderInteractiveShape.InteractiveShapeLoaderedgeColor, height, pixelSized, shape, shapeClass, theta, width, xoff, yoffcolor, x, y| Constructor and Description |
|---|
InteractiveArrow(double x,
double y,
double w,
double h) |
| Modifier and Type | Method and 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.
|
createBoundedArrow, createBoundedCenteredArrow, createBoundedCircle, createBoundedEllipse, createBoundedImage, createBoundedRectangle, createBoundedTriangle, findInteractive, isHeightDrag, isRotateDrag, isSelected, isWidthDrag, isXYDrag, setHeightDrag, setRotateDrag, setSelected, setWidthDrag, setXYDrag, toggleSelected, toStringcontains, 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, transformgetX, getY, isEnabled, setEnabledclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetX, getY, isEnabled, setEnabled, setX, setXY, setYgetXMax, getXMin, getYMax, getYMin, isMeasuredpublic 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()