LINE_TOLERANCE| Constructor and Description |
|---|
GArrow()
Constructs an arrow at (0, 0) of length 0.
|
GArrow(float x1,
float y1)
Constructs an arrow from (0, 0) to (x1, y1).
|
GArrow(float x0,
float y0,
float x1,
float y1)
Constructs an arrow from (x0, y0) to (x1, y1).
|
GArrow(GCanvas canvas)
Constructs an arrow at (0, 0) of length 0.
|
GArrow(GCanvas canvas,
float x1,
float y1)
Constructs an arrow from (0, 0) to (x1, y1).
|
GArrow(GCanvas canvas,
float x0,
float y0,
float x1,
float y1)
Constructs an arrow from (x0, y0) to (x1, y1).
|
| Modifier and Type | Method and Description |
|---|---|
float |
getArrowSize() |
boolean |
hasArrowheadEnd() |
boolean |
hasArrowheadStart() |
boolean |
isClosed() |
void |
paint(Canvas canvas)
Implements the
paint operation for this graphical object. |
GArrow |
setArrowheadEnd(boolean value) |
GArrow |
setArrowheadStart(boolean value) |
GArrow |
setArrowSize(float arrowSize) |
GArrow |
setClosed(boolean closed) |
contains, getBounds, getEndPoint, getEndX, getEndY, getStartPoint, getStartX, getStartY, scale, setEndPoint, setStartPointaddTo, addTo, addTo, contains, getBottomY, getCenterX, getCenterY, getColor, getFillColor, getGCanvas, getHeight, getLeftX, getLocation, getPaint, getRightX, getSize, getTopY, getWidth, getX, getY, intersects, isFilled, isVisible, moveBy, moveByPolar, moveTo, moveTo, moveTo, moveToPolar, remove, repaint, scale, sendBackward, sendForward, sendToBack, sendToFront, setBottomY, setBounds, setBounds, setBounds, setCanvas, setColor, setFillColor, setFilled, setGCanvas, setLocation, setLocation, setLocation, setPaint, setRightX, setSize, setSize, setVisible, setX, setY, toString, translatepublic GArrow()
public GArrow(float x1,
float y1)
public GArrow(float x0,
float y0,
float x1,
float y1)
public GArrow(GCanvas canvas)
public GArrow(GCanvas canvas, float x1, float y1)
public GArrow(GCanvas canvas, float x0, float y0, float x1, float y1)
public boolean hasArrowheadStart()
public boolean hasArrowheadEnd()
public GArrow setArrowheadStart(boolean value)
public GArrow setArrowheadEnd(boolean value)
public void paint(Canvas canvas)
GLinepaint operation for this graphical object. This method
is not called directly by clients.public float getArrowSize()
public GArrow setArrowSize(float arrowSize)
public boolean isClosed()
public GArrow setClosed(boolean closed)