Line Methods

Line(point1, point2)
Constructs a line segment from point1 to point2.
setArrow(string)
Sets the arrowhead status of a line. Arrows may be drawn at either the first point, the last point, or both. Possible values of string are 'first', 'last', 'both', and 'none'. The default setting is 'none'.
getCenter()
Returns a clone of the midpoint of the line segment.
getP1(), getP2()
Returns a clone of the corresponding endpoint of the segment.



John Zelle 2010-08-29