Package hec.map.tms.datasource
Class TmsLevel
java.lang.Object
hec.map.tms.datasource.TmsLevel
- All Implemented Interfaces:
ImageObserver
This is one level in a TMS file. Each level is a specified resolution. Level 0 is the most detailed resolution.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classRepresents an area that is an empty tile. -
Field Summary
FieldsFields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidclose()protected doublecolToX(int col) Returns the left hand X coordinate of this columnprotected TmsImagecreateImage(WorldRect visibleRect, TmsGlyphDataRecord gdr) create the level image made up of the individual tile images that intersect the visible rectanglegetImage(WorldRect visibleRect, TmsGlyphDataRecord gdr) doublegetMaxX()doublegetMaxY()doublegetMinX()doublegetMinY()floatintintgetTile(int row, int column) Returns the tile for a given row and column.float[]getValue(double[] easting, double[] northing) booleanimageUpdate(Image img, int infoflags, int x, int y, int width, int height) protected doublerowToY(int row) REtruns the top hand Y coordinate of this columnprotected intxToCol(double x) protected intyToRow(double y)
-
Field Details
-
NO_DATA_VALUE
public static final float NO_DATA_VALUE- See Also:
-
-
Constructor Details
-
TmsLevel
-
-
Method Details
-
colToX
protected double colToX(int col) Returns the left hand X coordinate of this column- Parameters:
col-- Returns:
-
rowToY
protected double rowToY(int row) REtruns the top hand Y coordinate of this column- Parameters:
row-- Returns:
-
yToRow
protected int yToRow(double y) -
xToCol
protected int xToCol(double x) -
getImage
-
createImage
create the level image made up of the individual tile images that intersect the visible rectangle- Parameters:
visibleRect-gdr-- Returns:
- Returns a TmsImage that contains the image and its bounding rectangle. Returns null if nothing can be drawn to that visible area.
-
getExtents
-
getNumberRows
public int getNumberRows() -
getNumberColumns
public int getNumberColumns() -
getMinX
public double getMinX() -
getMaxX
public double getMaxX() -
getMinY
public double getMinY() -
getMaxY
public double getMaxY() -
getNoDataValue
public float getNoDataValue() -
getTile
Returns the tile for a given row and column. There is no guarantee that a tile may exist at that row column. If no tile exists, then a null Tile is returned.- Parameters:
row-column-- Returns:
-
getValue
public float[] getValue(double[] easting, double[] northing) -
close
public void close() -
imageUpdate
- Specified by:
imageUpdatein interfaceImageObserver
-
clearImage
public void clearImage()
-