public class GridSystem
extends java.lang.Object
| Constructor and Description |
|---|
GridSystem() |
GridSystem(double originX,
double originY,
double width,
double height) |
| Modifier and Type | Method and Description |
|---|---|
void |
addLevel(int columns,
int rows) |
int[] |
cellContaining(double x,
double y)
Returns an array of numbers describing the cell with the given XY.
|
double |
getHeight()
Gets the value of height
|
double |
getOriginX()
Gets the value of originX
|
double |
getOriginY()
Gets the value of originY
|
double |
getWidth()
Gets the value of width
|
void |
setHeight(double argHeight)
Sets the value of height
|
void |
setOriginX(double argOriginX)
Sets the value of originX
|
void |
setOriginY(double argOriginY)
Sets the value of originY
|
void |
setWidth(double argWidth)
Sets the value of width
|
public GridSystem()
public GridSystem(double originX,
double originY,
double width,
double height)
public void addLevel(int columns,
int rows)
public int[] cellContaining(double x,
double y)
| 0 | 1 | 2 |
| 3 | 4 | 5 |
| 6 | 7 | 8 |
public double getOriginX()
public void setOriginX(double argOriginX)
argOriginX - Value to assign to this.originXpublic double getOriginY()
public void setOriginY(double argOriginY)
argOriginY - Value to assign to this.originYpublic double getWidth()
public void setWidth(double argWidth)
argWidth - Value to assign to this.widthpublic double getHeight()
public void setHeight(double argHeight)
argHeight - Value to assign to this.height