dk.vajhoej.model.graphic.base
Class SuperSquare

java.lang.Object
  extended by dk.vajhoej.model.graphic.base.SuperSquare

public class SuperSquare
extends java.lang.Object

Class SuperSquare keeps track of the dimensions of the super square.


Method Summary
 int getDimX()
          Get width.
 int getDimY()
          Get height
static SuperSquare getInstance()
          Get instance of SuperSquare.
 void setDimX(int dimX)
          Set width.
 void setDimY(int dimY)
          Set height.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static SuperSquare getInstance()
Get instance of SuperSquare.

Returns:
instance

getDimX

public int getDimX()
Get width.

Returns:
width

setDimX

public void setDimX(int dimX)
Set width.

Parameters:
dimX - width

getDimY

public int getDimY()
Get height

Returns:
height

setDimY

public void setDimY(int dimY)
Set height.

Parameters:
dimY - height