|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.partnersoft.geometry.GridSystem
public class GridSystem
A system of grids within grids. Very common in utility mapping systems; this class is primarily designed to support the kind of grid nomenclatures used in map books.
| Constructor Summary | |
|---|---|
GridSystem()
|
|
GridSystem(double originX,
double originY,
double width,
double height)
|
|
| Method Summary | |
|---|---|
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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public GridSystem()
public GridSystem(double originX,
double originY,
double width,
double height)
| Method Detail |
|---|
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
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||