public class ArrowHead
extends java.lang.Object
ArrowIcon
for more information. Note that
the color or opacity of the arrow head (or antialiasing, etc.) is not defined by this class, it
simply draws the polygon and fills it if requested.Constructor and Description |
---|
ArrowHead(java.awt.geom.Point2D lineStart,
java.awt.geom.Point2D lineEnd,
double width,
double height,
boolean filled)
Constructor to allow immutability.
|
Modifier and Type | Method and Description |
---|---|
void |
draw(java.awt.Graphics2D g) |
public ArrowHead(java.awt.geom.Point2D lineStart, java.awt.geom.Point2D lineEnd, double width, double height, boolean filled)
ArrowIcon
for a description of the meaning
of the parameters.lineStart
- The start of the line specifying the arrow's direction.lineEnd
- The end of the line specifying the arrow's direction (arrow's tip).width
- The width of the arrow.height
- The height/length of the arrow.filled
- True to fill the arrow head, false to draw it as an outline.