Class IconRow
java.lang.Object
mil.nga.geopackage.user.UserCoreRow<TColumn,TTable>
mil.nga.geopackage.user.UserRow<UserCustomColumn,UserCustomTable>
mil.nga.geopackage.user.custom.UserCustomRow
mil.nga.geopackage.extension.related.media.MediaRow
mil.nga.geopackage.extension.nga.style.IconRow
Icon Row containing the values from a single cursor row
- Since:
- 3.2.0
-
Field Summary
Fields inherited from class mil.nga.geopackage.user.UserCoreRow
columns, columnTypes, table, values
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncopy()
Copy the rowGet the anchor uGet the anchor u columnint
Get the anchor u column indexdouble
Get the anchor u value or the default value of 0.5Get the anchor vGet the anchor v columnint
Get the anchor v column indexdouble
Get the anchor v value or the default value of 1.0double[]
Get the derived width and height from the values and icon data, scaled as neededdouble
Get the height or derived height from the icon data and scaled as needed for the widthdouble
Get the width or derived width from the icon data and scaled as needed for the heightGet the descriptionGet the description columnint
Get the description column indexGet the heightGet the height columnint
Get the height column indexgetName()
Get the nameGet the name columnint
Get the name column indexgetTable()
getWidth()
Get the widthGet the width columnint
Get the width column indexboolean
Is a table iconvoid
setAnchorU
(Double anchor) Set the anchor uvoid
setAnchorV
(Double anchor) Set the anchor vvoid
setDescription
(String description) Set the descriptionvoid
Set the heightvoid
Set the namevoid
setTableIcon
(boolean tableIcon) Set table icon flagvoid
Set the widthMethods inherited from class mil.nga.geopackage.extension.related.media.MediaRow
getContentType, getContentTypeColumn, getContentTypeColumnIndex, getData, getDataBitmap, getDataBitmap, getDataBounds, getDataColumn, getDataColumnIndex, getId, getIdColumn, getIdColumnIndex, setContentType, setData, setData, setData
Methods inherited from class mil.nga.geopackage.user.custom.UserCustomRow
getColumns
Methods 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, getPkColumn, getPkColumnIndex, getRowColumnType, getRowColumnType, getRowColumnTypes, getValue, getValue, getValues, getValueString, getValueString, hasColumn, hasId, hasIdColumn, resetId, setId, setValue, setValue, validateValue
-
Constructor Details
-
IconRow
public IconRow()Constructor to create an empty row -
IconRow
Constructor to create an empty row- Parameters:
table
- icon table
-
IconRow
Constructor- Parameters:
userCustomRow
- user custom row
-
IconRow
Copy Constructor- Parameters:
iconRow
- icon row to copy
-
-
Method Details
-
getTable
-
isTableIcon
public boolean isTableIcon()Is a table icon- Returns:
- table icon flag
- Since:
- 3.5.0
-
setTableIcon
public void setTableIcon(boolean tableIcon) Set table icon flag- Parameters:
tableIcon
- table icon flag- Since:
- 3.5.0
-
getNameColumnIndex
public int getNameColumnIndex()Get the name column index- Returns:
- name column index
-
getNameColumn
Get the name column- Returns:
- name column
-
getName
Get the name- Returns:
- name
-
setName
Set the name- Parameters:
name
- Feature Icon name
-
getDescriptionColumnIndex
public int getDescriptionColumnIndex()Get the description column index- Returns:
- description column index
-
getDescriptionColumn
Get the description column- Returns:
- description column
-
getDescription
Get the description- Returns:
- description
-
setDescription
Set the description- Parameters:
description
- Feature Icon description
-
getWidthColumnIndex
public int getWidthColumnIndex()Get the width column index- Returns:
- width column index
-
getWidthColumn
Get the width column- Returns:
- width column
-
getWidth
Get the width- Returns:
- width
-
setWidth
Set the width- Parameters:
width
- Icon display width, when null use actual icon width
-
getDerivedWidth
public double getDerivedWidth()Get the width or derived width from the icon data and scaled as needed for the height- Returns:
- derived width
-
getHeightColumnIndex
public int getHeightColumnIndex()Get the height column index- Returns:
- height column index
-
getHeightColumn
Get the height column- Returns:
- height column
-
getHeight
Get the height- Returns:
- height
-
setHeight
Set the height- Parameters:
height
- Icon display height, when null use actual icon height
-
getDerivedHeight
public double getDerivedHeight()Get the height or derived height from the icon data and scaled as needed for the width- Returns:
- derived height
-
getDerivedDimensions
public double[] getDerivedDimensions()Get the derived width and height from the values and icon data, scaled as needed- Returns:
- derived dimensions array with two values, width at index 0, height at index 1
-
getAnchorUColumnIndex
public int getAnchorUColumnIndex()Get the anchor u column index- Returns:
- anchor u column index
-
getAnchorUColumn
Get the anchor u column- Returns:
- anchor u column
-
getAnchorU
Get the anchor u- Returns:
- anchor u
-
setAnchorU
Set the anchor u- Parameters:
anchor
- UV Mapping horizontal anchor distance inclusively between 0.0 and 1.0 from the left edge, when null assume 0.5 (middle of icon)
-
getAnchorUOrDefault
public double getAnchorUOrDefault()Get the anchor u value or the default value of 0.5- Returns:
- anchor u value
-
getAnchorVColumnIndex
public int getAnchorVColumnIndex()Get the anchor v column index- Returns:
- anchor v column index
-
getAnchorVColumn
Get the anchor v column- Returns:
- anchor v column
-
getAnchorV
Get the anchor v- Returns:
- anchor v
-
setAnchorV
Set the anchor v- Parameters:
anchor
- UV Mapping vertical anchor distance inclusively between 0.0 and 1.0 from the top edge, when null assume 1.0 (bottom of icon)
-
getAnchorVOrDefault
public double getAnchorVOrDefault()Get the anchor v value or the default value of 1.0- Returns:
- anchor v value
-
copy
Copy the row
-