Package dk.vajhoej.model.graphic.base
Class SuperSquare
- java.lang.Object
-
- 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
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getDimX()
Get width.int
getDimY()
Get heightstatic SuperSquare
getInstance()
Get instance of SuperSquare.void
setDimX(int dimX)
Set width.void
setDimY(int dimY)
Set height.
-
-
-
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
-
-