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 TileRow
copy()
Copy the rowTileColumns
getColumns()
long
getTileColumn()
Get the tile columnTileColumn
getTileColumnColumn()
Get the tile column columnint
getTileColumnColumnIndex()
Get the tile column column indexbyte[]
getTileData()
Get the tile dataTileColumn
getTileDataColumn()
Get the tile data columnint
getTileDataColumnIndex()
Get the tile data column indexBufferedImage
getTileDataImage()
Get the tile data imagelong
getTileRow()
Get the tile rowTileColumn
getTileRowColumn()
Get the tile row columnint
getTileRowColumnIndex()
Get the tile row column indexlong
getZoomLevel()
Get the zoom levelTileColumn
getZoomLevelColumn()
Get the zoom level columnint
getZoomLevelColumnIndex()
Get the zoom level column indexvoid
setTileColumn(long tileColumn)
Set the tile columnvoid
setTileData(byte[] tileData)
Set the tile datavoid
setTileData(BufferedImage image, String imageFormat)
Set the tile data from an imagevoid
setTileRow(long tileRow)
Set the tile rowvoid
setZoomLevel(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:
getColumns
in 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
-
-