Class Dot


  • public class Dot
    extends Object
    A simple Dot class for IC211 Lab06
    • Constructor Detail

      • Dot

        public Dot​(int r,
                   int c)
        Dot Constructor
        Parameters:
        r - the row value for the Dot
        c - the column value for the Dot
    • Method Detail

      • incRow

        public void incRow()
        Increments the row value of the Dot
      • decRow

        public void decRow()
        Decrements the row value of the Dot
      • incCol

        public void incCol()
        Increments the column value of the Dot
      • decCol

        public void decCol()
        Decrements the column value of the Dot
      • toString

        public String toString()
        Returns the string representation of the Dot as: row + " " + col
        Overrides:
        toString in class Object
        Returns:
        the String representation of the Dot as: row + " " + col
      • main

        public static void main​(String[] args)
        A main to test Dot functionality. To display the Dots, send the output of this program into Plotter.jar using the following:
        java Dot | java -cp Plotter.jar Plotter
        Parameters:
        args - not used