public class Level
extends java.lang.Object
LevelSet
.Modifier and Type | Field and Description |
---|---|
int |
levelNumber
The level's ordinal in its parent level set.
|
LevelSet |
parent
The LevelSet that this level is a member of.
|
double |
texelHeight
The size of pixels or elevation cells within this level, in radians per pixel (or per cell).
|
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 double tileDelta
public final int tileWidth
public final int tileHeight
public final double texelHeight
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()