public interface ILcdMultilevelGridCoordinate
ILcdMultilevelGrid
with regard to which it is
defined. A multilevel grid coordinate will specify a small or large area, depending
on the number of levels to which the coordinate is specified and the grid with regard to which the coordinate is
specified.
The multilevel grid coordinate is expressed as a number of integer coordinates per level, usually two, one for each
axis.
When comparing multilevel grid coordinates defined with regard to the same multilevel grid, the multilevel grid
coordinate with the least number of levels specified will always designate the larger area.Modifier and Type | Method and Description |
---|---|
ILcdEditableMultilevelGridCoordinate |
cloneAsEditableMultilevelCoordinate()
Returns a copy of this object that can be edited.
|
int |
getCoordinate(int aLevel,
int aAxis)
Returns the value of a coordinate at a given level, for a given axis.
|
int |
getCoordinateLevelCount()
Returns how many levels of this coordinate are taken into account.
|
int getCoordinate(int aLevel, int aAxis)
aLevel
- the level to retrieve the coordinate for. The level should be smaller than
the count returned by getCoordinateLevelCount()
. Coordinates at higher levels should not be taken
into account.aAxis
- the axis to retrieve the coordinate for, either
ILcdMultilevelGrid.X_AXIS
or
ILcdMultilevelGrid.Y_AXIS
.int getCoordinateLevelCount()
getCoordinate(int, int)
should only be called for levels strictly smaller than the count returned by this
method.ILcdEditableMultilevelGridCoordinate cloneAsEditableMultilevelCoordinate()