Line Methods

`Line(point1, point2)`- Constructs a line segment from
`point1`to`point2`.

Example:`aLine = Line(Point(1,3), Point(7,4))` `setArrow(endString)`-
Sets the arrowhead status of a line.
Arrows may be drawn at either the first point, the last point, or
both. Possible values of
`endString`are`"first"`,`"last"`,`"both"`, and`"none"`. The default setting is`"none"`.

Example:`aLine.setArrow("both")` `getCenter()`-
Returns a clone of the midpoint of the line segment.

Example:`midPoint = aLine.getCenter()` `getP1(), getP2()`-
Returns a clone of the corresponding endpoint of the segment.

Example:`startPoint = aLine.getP1()`

zelle 2016-08-26