Package mil.nga.geopackage.tiles.user
Class TileRow
- java.lang.Object
-
- mil.nga.geopackage.user.UserCoreRow<TColumn,TTable>
-
- mil.nga.geopackage.user.UserRow<TileColumn,TileTable>
-
- mil.nga.geopackage.tiles.user.TileRow
-
public class TileRow extends UserRow<TileColumn,TileTable>
Tile Row containing the values from a single result set row- Author:
- osbornb
-
-
Field Summary
-
Fields inherited from class mil.nga.geopackage.user.UserCoreRow
columns, columnTypes, table, values
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TileRowcopy()Copy the rowTileColumnsgetColumns()longgetTileColumn()Get the tile columnTileColumngetTileColumnColumn()Get the tile column columnintgetTileColumnColumnIndex()Get the tile column column indexbyte[]getTileData()Get the tile dataTileColumngetTileDataColumn()Get the tile data columnintgetTileDataColumnIndex()Get the tile data column indexBufferedImagegetTileDataImage()Get the tile data imagelonggetTileRow()Get the tile rowTileColumngetTileRowColumn()Get the tile row columnintgetTileRowColumnIndex()Get the tile row column indexlonggetZoomLevel()Get the zoom levelTileColumngetZoomLevelColumn()Get the zoom level columnintgetZoomLevelColumnIndex()Get the zoom level column indexvoidsetTileColumn(long tileColumn)Set the tile columnvoidsetTileData(byte[] tileData)Set the tile datavoidsetTileData(BufferedImage image, String imageFormat)Set the tile data from an imagevoidsetTileRow(long tileRow)Set the tile rowvoidsetZoomLevel(long zoomLevel)Set the zoom level-
Methods inherited from class mil.nga.geopackage.user.UserRow
columnToContentValue, toContentValues, toContentValues
-
Methods inherited from class mil.nga.geopackage.user.UserCoreRow
columnCount, copyValue, getAsMap, getColumn, getColumn, getColumnIndex, getColumnName, getColumnNames, getId, getPkColumn, getPkColumnIndex, getRowColumnType, getRowColumnType, getRowColumnTypes, getTable, getValue, getValue, getValues, getValueString, getValueString, hasColumn, hasId, hasIdColumn, resetId, setId, setValue, setValue, validateValue
-
-
-
-
Constructor Detail
-
TileRow
public TileRow(TileRow tileRow)
Copy Constructor- Parameters:
tileRow- tile row to copy- Since:
- 1.3.0
-
-
Method Detail
-
getColumns
public TileColumns getColumns()
- Overrides:
getColumnsin classUserCoreRow<TileColumn,TileTable>
-
getZoomLevelColumnIndex
public int getZoomLevelColumnIndex()
Get the zoom level column index- Returns:
- zoom level column index
-
getZoomLevelColumn
public TileColumn getZoomLevelColumn()
Get the zoom level column- Returns:
- zoom level column
-
getZoomLevel
public long getZoomLevel()
Get the zoom level- Returns:
- zoom level
-
setZoomLevel
public void setZoomLevel(long zoomLevel)
Set the zoom level- Parameters:
zoomLevel- zoom level
-
getTileColumnColumnIndex
public int getTileColumnColumnIndex()
Get the tile column column index- Returns:
- tile column index
-
getTileColumnColumn
public TileColumn getTileColumnColumn()
Get the tile column column- Returns:
- tile column
-
getTileColumn
public long getTileColumn()
Get the tile column- Returns:
- tile column
-
setTileColumn
public void setTileColumn(long tileColumn)
Set the tile column- Parameters:
tileColumn- tile column
-
getTileRowColumnIndex
public int getTileRowColumnIndex()
Get the tile row column index- Returns:
- tile row column index
-
getTileRowColumn
public TileColumn getTileRowColumn()
Get the tile row column- Returns:
- tile row column
-
getTileRow
public long getTileRow()
Get the tile row- Returns:
- tile row
-
setTileRow
public void setTileRow(long tileRow)
Set the tile row- Parameters:
tileRow- tile row
-
getTileDataColumnIndex
public int getTileDataColumnIndex()
Get the tile data column index- Returns:
- tile data column index
-
getTileDataColumn
public TileColumn getTileDataColumn()
Get the tile data column- Returns:
- tile data column
-
getTileData
public byte[] getTileData()
Get the tile data- Returns:
- bytes
-
setTileData
public void setTileData(byte[] tileData)
Set the tile data- Parameters:
tileData- tile data
-
getTileDataImage
public BufferedImage getTileDataImage() throws IOException
Get the tile data image- Returns:
- image
- Throws:
IOException- upon failure
-
setTileData
public void setTileData(BufferedImage image, String imageFormat) throws IOException
Set the tile data from an image- Parameters:
image- imageimageFormat- image format- Throws:
IOException- upon failure
-
copy
public TileRow copy()
Copy the row- Returns:
- row copy
- Since:
- 3.0.1
-
-