import java.awt.*;
public class TestPoint6 {
   public static void main (String[] args) {
      
      DrawingPanel panel = new DrawingPanel(200, 200);
      Graphics g = panel.getGraphics();
   
      int scale = 10;
   
      // Point 1
      PointIG p1 = new PointIG(2, 6, g, scale);   
      System.out.println(p1);
      p1.draw();
      
      // Point 2
      PointIG p2 = new PointIG(8, 5, g, scale); 
      System.out.println(p2);
      p2.draw();   
      
      // Line
      g.setColor(Color.GREEN);
      p1.drawLine(p2);
      
      /*
      // Dots in a row (using disposable points)
      g.setColor(Color.ORANGE);
      new PointIG(10, 0, g, scale).draw();
      new PointIG(10, 1, g, scale).draw();
      new PointIG(10, 2, g, scale).draw();
      new PointIG(10, 3, g, scale).draw();
      */
   
      
   
   }
}