public class XyGridSystem extends XyGrid
Additional layers are optional, but without extra XyGrids this class becomes a standard XyGrid.
Copyright 2008 Partner Software, Inc.
| Constructor and Description |
|---|
XyGridSystem(double cellSize) |
XyGridSystem(double cellWidth,
double cellHeight) |
XyGridSystem(double originX,
double originY,
double cellSize) |
XyGridSystem(double originX,
double originY,
double cellWidth,
double cellHeight) |
XyGridSystem(XyPoint origin,
XySize cellSize) |
XyGridSystem(XySize cellSize) |
| Modifier and Type | Method and Description |
|---|---|
void |
addLevel(int columns,
int rows)
Adds an internal XyGrid to be applied to each cell of the
XyGrid above this XyGrid.
|
XyGridCell[] |
allCellsContainingPoint(XyPoint point)
Returns an array of all XyGridCells containing this point.
|
XyGridCell |
cellContainingPoint(XyPoint point)
Returns the innermost XyGridCell containing the passed XyPoint
|
cellContainingPoint, chop, chop, chop, columnToX, getCellSize, getOrigin, listCellsIntersecting, rowToY, xToColumn, yToRowpublic XyGridSystem(double originX,
double originY,
double cellWidth,
double cellHeight)
public XyGridSystem(double originX,
double originY,
double cellSize)
public XyGridSystem(double cellWidth,
double cellHeight)
public XyGridSystem(double cellSize)
public XyGridSystem(XySize cellSize)
public XyGridCell cellContainingPoint(XyPoint point)
cellContainingPoint in class XyGridpoint - - XyPoint to locate.public XyGridCell[] allCellsContainingPoint(XyPoint point)
point - - XyPoint to locate.public void addLevel(int columns,
int rows)
rows - - Number of rows for internal XyGrid to have.columns - - Number of columns for internal XyGrid to have.