|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.partnersoft.v3x.graphics.GridCoordinate
public class GridCoordinate
A coordinate in a hierarchical, gridded coordinate system. Includes how deep it is in the hierarchy as well as the cell index at each level.
| Constructor Summary | |
|---|---|
GridCoordinate()
Create a new, blank GridCoordinate. |
|
GridCoordinate(int a)
Create a new single-level GridCoordinate. |
|
GridCoordinate(int[] coords)
Create a new n-level GridCoordinate. |
|
GridCoordinate(int a,
int b)
Create a new second-level GridCoordinate. |
|
GridCoordinate(int a,
int b,
int c)
Create a new third-level GridCoordinate. |
|
GridCoordinate(int a,
int b,
int c,
int d)
Create a new fourth-level GridCoordinate. |
|
| Method Summary | |
|---|---|
java.util.ArrayList |
getCoords()
Get the coordinates as a ArrayList. |
int[] |
getCoordsArray()
Get the coordinate index array. |
int |
getLevel()
Get the level (depth) of the coordinate. |
void |
setCoords(java.util.ArrayList newCoords)
Set the coordinates as a vector. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public GridCoordinate()
public GridCoordinate(int a)
public GridCoordinate(int a,
int b)
public GridCoordinate(int a,
int b,
int c)
public GridCoordinate(int a,
int b,
int c,
int d)
public GridCoordinate(int[] coords)
| Method Detail |
|---|
public java.lang.String toString()
toString in class java.lang.Objectpublic int getLevel()
public int[] getCoordsArray()
public java.util.ArrayList getCoords()
public void setCoords(java.util.ArrayList newCoords)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||