Package mil.nga.geopackage.tiles.user
Class TileRow
java.lang.Object
mil.nga.geopackage.user.UserCoreRow<TColumn,TTable>
Tile Row containing the values from a single cursor row
-
Field Summary
Fields inherited from class mil.nga.geopackage.user.UserCoreRow
columns, columnTypes, table, values
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncopy()
Copy the rowlong
Get the tile columnGet the tile column columnint
Get the tile column column indexbyte[]
Get the tile dataGet the tile data bitmapgetTileDataBitmap
(BitmapFactory.Options options) Get the tile data bitmap with decoding optionsGet the tile data columnint
Get the tile data column indexlong
Get the tile rowGet the tile row columnint
Get the tile row column indexlong
Get the zoom levelGet the zoom level columnint
Get the zoom level column indexvoid
setTileColumn
(long tileColumn) Set the tile columnvoid
setTileData
(byte[] tileData) Set the tile datavoid
setTileData
(Bitmap bitmap, Bitmap.CompressFormat format) Set the tile data from a full quality bitmapvoid
setTileData
(Bitmap bitmap, Bitmap.CompressFormat format, int quality) Set the tile data from a bitmapvoid
setTileRow
(long tileRow) Set the tile rowvoid
setZoomLevel
(long zoomLevel) Set the zoom levelMethods inherited from class mil.nga.geopackage.user.UserRow
columnToContentValue, isValid, setValid, 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 Details
-
TileRow
Copy Constructor- Parameters:
tileRow
- tile row to copy- Since:
- 1.4.0
-
-
Method Details
-
getColumns
- Overrides:
getColumns
in classUserCoreRow<TileColumn,
TileTable>
-
getZoomLevelColumnIndex
public int getZoomLevelColumnIndex()Get the zoom level column index- Returns:
- zoom level column index
-
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 column index
-
getTileColumnColumn
Get the tile column column- Returns:
- tile column 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
Get the tile row column- Returns:
- tile 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
Get the tile data column- Returns:
- tile data column
-
getTileData
public byte[] getTileData()Get the tile data- Returns:
- tile data bytes
-
setTileData
public void setTileData(byte[] tileData) Set the tile data- Parameters:
tileData
- tile data bytes
-
getTileDataBitmap
Get the tile data bitmap- Returns:
- tile data bitmap
-
getTileDataBitmap
Get the tile data bitmap with decoding options- Parameters:
options
- bitmap options- Returns:
- tile data bitmap
-
setTileData
Set the tile data from a full quality bitmap- Parameters:
bitmap
- tile bitmapformat
- compress format- Throws:
IOException
- upon failure
-
setTileData
public void setTileData(Bitmap bitmap, Bitmap.CompressFormat format, int quality) throws IOException Set the tile data from a bitmap- Parameters:
bitmap
- tile bitmapformat
- compress formatquality
- quality- Throws:
IOException
- upon failure
-
copy
Copy the row- Returns:
- row copy
- Since:
- 3.0.1
-