public class Level
extends java.lang.Object
LevelSet
.Modifier and Type | Field and Description |
---|---|
int |
levelHeight
The height in pixels of the image represented by all tiles in this level set, or the number of sample points in
the latitudinal direction of this level set.
|
int |
levelNumber
The level's ordinal in its parent level set.
|
int |
levelWidth
The width in pixels of the image represented by all tiles in this level set, or the number of sample points in
the longitudinal direction of this level set.
|
LevelSet |
parent
The LevelSet that this level is a member of.
|
double |
tileDelta
The geographic width and height in degrees of tiles within this level.
|
int |
tileHeight
The parent LevelSet's tileHeight.
|
int |
tileWidth
The parent LevelSet's tileWidth.
|
Constructor and Description |
---|
Level(LevelSet parent,
int levelNumber,
double tileDelta)
Constructs a Level within a
LevelSet . |
Modifier and Type | Method and Description |
---|---|
boolean |
isFirstLevel()
Indicates whether this level is the lowest resolution level (level 0) within the parent level set.
|
boolean |
isLastLevel()
Indicates whether this level is the highest resolution level within the parent level set.
|
Level |
nextLevel()
Returns the level whose ordinal occurs immediately after this level's ordinal in the parent level set, or null if
this is the last level.
|
Level |
previousLevel()
Returns the level whose ordinal occurs immediately before this level's ordinal in the parent level set, or null
if this is the fist level.
|
public final LevelSet parent
public final int levelNumber
public final int levelWidth
public final int levelHeight
public final double tileDelta
public final int tileWidth
public final int tileHeight
public Level(LevelSet parent, int levelNumber, double tileDelta)
LevelSet
. Applications typically do not interact with this class.parent
- the level set that this level is a member oflevelNumber
- the level's ordinal within its parent level settileDelta
- the geographic width and height in degrees of tiles within this levelpublic boolean isFirstLevel()
public boolean isLastLevel()
public Level previousLevel()
public Level nextLevel()