jdraw.graphics
Class ArrowTip

java.lang.Object
  |
  +--jdraw.graphics.ArrowTip

public abstract class ArrowTip
extends java.lang.Object

Class ArrowTip defines the Arrow shapes which appear at the ends of lines when certain brushes are used.


Constructor Summary
ArrowTip()
           
 
Method Summary
static java.awt.geom.GeneralPath getArrowPath(java.awt.geom.Point2D.Double headPoint, java.awt.geom.Point2D.Double tailPoint, float zoom)
          ArrowTip's only method, getArrowPath takes two points and a zoom factor and returns the appropriate GeneralPath object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ArrowTip

public ArrowTip()
Method Detail

getArrowPath

public static java.awt.geom.GeneralPath getArrowPath(java.awt.geom.Point2D.Double headPoint,
                                                     java.awt.geom.Point2D.Double tailPoint,
                                                     float zoom)
ArrowTip's only method, getArrowPath takes two points and a zoom factor and returns the appropriate GeneralPath object. The arrow created will be centered at the headPoint and aiming away from the tailPoint.
Parameters:
headPoint - - The Point2D.Double object representing the location of the arrow head.
tailPoint - - The Point2D.Double object from which the arrow head will point.