Package mil.nga.geopackage.tiles.user
Class TileRow
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
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncopy()Copy the rowlongGet the tile columnGet the tile column columnintGet the tile column column indexbyte[]Get the tile dataandroid.graphics.BitmapGet the tile data bitmapandroid.graphics.BitmapgetTileDataBitmap(android.graphics.BitmapFactory.Options options) Get the tile data bitmap with decoding optionsGet the tile data columnintGet the tile data column indexlongGet the tile rowGet the tile row columnintGet the tile row column indexlongGet the zoom levelGet the zoom level columnintGet the zoom level column indexvoidsetTileColumn(long tileColumn) Set the tile columnvoidsetTileData(byte[] tileData) Set the tile datavoidsetTileData(android.graphics.Bitmap bitmap, android.graphics.Bitmap.CompressFormat format) Set the tile data from a full quality bitmapvoidsetTileData(android.graphics.Bitmap bitmap, android.graphics.Bitmap.CompressFormat format, int quality) Set the tile data from a bitmapvoidsetTileRow(long tileRow) Set the tile rowvoidsetZoomLevel(long zoomLevel) Set the zoom levelMethods inherited from class mil.nga.geopackage.user.UserRow
columnToContentValue, isValid, setValid, toContentValues, toContentValuesMethods 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:
getColumnsin 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
public android.graphics.Bitmap getTileDataBitmap()Get the tile data bitmap- Returns:
- tile data bitmap
-
getTileDataBitmap
public android.graphics.Bitmap getTileDataBitmap(android.graphics.BitmapFactory.Options options) Get the tile data bitmap with decoding options- Parameters:
options- bitmap options- Returns:
- tile data bitmap
-
setTileData
public void setTileData(android.graphics.Bitmap bitmap, android.graphics.Bitmap.CompressFormat format) throws IOException Set the tile data from a full quality bitmap- Parameters:
bitmap- tile bitmapformat- compress format- Throws:
IOException- upon failure
-
setTileData
public void setTileData(android.graphics.Bitmap bitmap, android.graphics.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
-