Package dk.vajhoej.model.graphic.base
Class SuperSquare
- java.lang.Object
-
- dk.vajhoej.model.graphic.base.SuperSquare
-
public class SuperSquare extends java.lang.ObjectClass 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 intgetDimX()Get width.intgetDimY()Get heightstatic SuperSquaregetInstance()Get instance of SuperSquare.voidsetDimX(int dimX)Set width.voidsetDimY(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
-
-