In LineSegment.java -- paint
public void paint(Graphics g) {
g.drawLine(p1.getX(), p1.getY(),
p2.getX(), p2.getY());
plotIntersections(g);
}
Previous slide
Next slide
Back to first slide
View graphic version