public class ArrowHead extends java.lang.Object
Class capable of drawing an arrow head. See
ArrowIconfor 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.
- Kevin Menningen
public ArrowHead(java.awt.geom.Point2D lineStart, java.awt.geom.Point2D lineEnd, double width, double height, boolean filled)Constructor to allow immutability. See
ArrowIconfor 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.
public void draw(java.awt.Graphics2D g)