| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Represents a container with squares, where each square may be (active/not active) and each square also has a colour
| Method Summary | |
|  java.awt.Color | getColor(int x,
         int y)Get the color of a specific square | 
|  int | getHeight()Get the number of vertical squares in the container | 
|  int | getWidth()Get the number of horisontal squares in the container | 
|  boolean | isUsed(int x,
       int y)Checks if a specific square is active or not | 
|  void | setUnused(int x,
          int y)Change the state to not active for a specific square | 
|  void | setUsed(int x,
        int y,
        java.awt.Color c)Change the state to active for a specific square | 
| Method Detail | 
public int getWidth()
public int getHeight()
public java.awt.Color getColor(int x,
                               int y)
x - The x position of the squarey - The y position of the square
public boolean isUsed(int x,
                      int y)
x - The x position of the squarey - The y position of the square
public void setUsed(int x,
                    int y,
                    java.awt.Color c)
x - The x position of the squarey - The y position of the squarec - The colour of the square
public void setUnused(int x,
                      int y)
x - The x position of the squarey - The y position of the square| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||