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).
|
| 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. |
void |
setArrowheadEnd(boolean value) |
void |
setArrowheadStart(boolean value) |
void |
setArrowSize(float arrowSize) |
void |
setClosed(boolean closed) |
contains, getBounds, getEndPoint, getEndX, getEndY, getStartPoint, getStartX, getStartY, scale, scale, setEndPoint, setStartPointcontains, getBottomY, getCenterX, getCenterY, getColor, getGCanvas, getHeight, getLocation, getPaint, getRightX, getSize, getWidth, getX, getY, intersects, isVisible, moveBy, moveByPolar, moveTo, moveTo, moveToPolar, repaint, sendBackward, sendForward, sendToBack, sendToFront, setBottomY, setCanvas, setColor, setGCanvas, setLocation, setLocation, setPaint, setRightX, setVisible, setX, setY, toString, translatepublic GArrow()
public GArrow(float x1,
float y1)
public GArrow(float x0,
float y0,
float x1,
float y1)
public boolean hasArrowheadStart()
public boolean hasArrowheadEnd()
public void setArrowheadStart(boolean value)
public void 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 void setArrowSize(float arrowSize)
public boolean isClosed()
public void setClosed(boolean closed)