LineSegment.java
public class LineSegment {
LineSegmentCollection collection;
public LSPoint getP1() { return p1; }
public LSPoint getP2() { return p2; }
public LineSegment(int anID,
LineSegmentCollection theCollection){...}
public void paint(Graphics g) {...}
private void computeIntersections() {...}
private LSPoint segIntersection(LineSegmentls){...}
private void plotIntersections(Graphics g) {...}