Class Cell

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.awt.Color color  
      private int size  
      private int x  
      private int y  
    • Constructor Summary

      Constructors 
      Constructor Description
      Cell​(int x, int y, int size, java.awt.Color color)  
    • Method Summary

      Modifier and Type Method Description
      boolean equals​(java.lang.Object o)  
      int getSize()  
      int getX()  
      int getY()  
      void paint​(java.awt.Graphics2D g)  
      void set​(int x, int y)
      Set position of Cell
      void setColor​(java.awt.Color color)  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • x

        private int x
      • y

        private int y
      • size

        private final int size
      • color

        private java.awt.Color color
    • Constructor Detail

      • Cell

        public Cell​(int x,
                    int y,
                    int size,
                    java.awt.Color color)
    • Method Detail

      • set

        public void set​(int x,
                        int y)
        Set position of Cell
        Parameters:
        x - X position
        y - Y position
      • setColor

        public void setColor​(java.awt.Color color)
      • getX

        public int getX()
      • getY

        public int getY()
      • getSize

        public int getSize()
      • paint

        public void paint​(java.awt.Graphics2D g)
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object