com.moneydance.awt
Class ArrowHead

java.lang.Object
  extended by com.moneydance.awt.ArrowHead

public class ArrowHead
extends java.lang.Object

Class capable of drawing an arrow head. See 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.

Author:
Kevin Menningen

Constructor Summary
ArrowHead(java.awt.geom.Point2D lineStart, java.awt.geom.Point2D lineEnd, double width, double height, boolean filled)
          Constructor to allow immutability.
 
Method Summary
 void draw(java.awt.Graphics2D g)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ArrowHead

public ArrowHead(java.awt.geom.Point2D lineStart,
                 java.awt.geom.Point2D lineEnd,
                 double width,
                 double height,
                 boolean filled)
Constructor to allow immutability. See ArrowIcon for a description of the meaning of the parameters.

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.
Method Detail

draw

public void draw(java.awt.Graphics2D g)