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
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncopy()Copy the rowGet the anchor uGet the anchor u columnintGet the anchor u column indexdoubleGet the anchor u value or the default value of 0.5Get the anchor vGet the anchor v columnintGet the anchor v column indexdoubleGet 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 neededdoubleGet the height or derived height from the icon data and scaled as needed for the widthdoubleGet the width or derived width from the icon data and scaled as needed for the heightGet the descriptionGet the description columnintGet the description column indexGet the heightGet the height columnintGet the height column indexgetName()Get the nameGet the name columnintGet the name column indexgetTable()getWidth()Get the widthGet the width columnintGet the width column indexbooleanIs a table iconvoidsetAnchorU(Double anchor) Set the anchor uvoidsetAnchorV(Double anchor) Set the anchor vvoidsetDescription(String description) Set the descriptionvoidSet the heightvoidSet the namevoidsetTableIcon(boolean tableIcon) Set table icon flagvoidSet 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, setDataMethods inherited from class mil.nga.geopackage.user.custom.UserCustomRow
getColumnsMethods 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, 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
-