Class FeatureTableStyles
java.lang.Object
mil.nga.geopackage.extension.nga.style.FeatureTableStyles
Feature Table Styles, styles and icons for an individual feature table
- Since:
- 3.2.0
-
Constructor Summary
ConstructorsConstructorDescriptionFeatureTableStyles(GeoPackage geoPackage, String featureTable) ConstructorFeatureTableStyles(GeoPackage geoPackage, Contents contents) ConstructorFeatureTableStyles(GeoPackage geoPackage, GeometryColumns geometryColumns) ConstructorFeatureTableStyles(GeoPackage geoPackage, FeatureTable featureTable) Constructor -
Method Summary
Modifier and TypeMethodDescriptionCalculate style pixel boundscalculatePixelBounds(float density) Calculate style pixel boundsvoidClear the cached table feature stylesvoidClear the cached table iconsvoidClear the cached table stylesvoidCreate an icon relationship for the feature tablevoidCreate style, icon, table style, and table icon relationships for the feature tablevoidCreate a style relationship for the feature tablevoidCreate a feature table icon relationshipvoidCreate a feature table style relationshipvoidDelete all feature styles including table styles, table icons, style, and iconsvoidDelete all icons including table icons and feature row iconsvoidDelete all styles including table styles and feature row stylesvoidDelete all feature stylesvoiddeleteIcon(long featureId, GeometryType geometryType) Delete the feature row icon for the geometry typevoiddeleteIcon(FeatureRow featureRow) Delete the feature row icon for the feature row geometry typevoiddeleteIcon(FeatureRow featureRow, GeometryType geometryType) Delete the feature row icon for the geometry typevoiddeleteIconDefault(long featureId) Delete the feature row default iconvoiddeleteIconDefault(FeatureRow featureRow) Delete the feature row default iconvoidDelete a icon relationship for the feature tablevoidDelete all iconsvoiddeleteIcons(long featureId) Delete feature row iconsvoiddeleteIcons(FeatureRow featureRow) Delete feature row iconsvoidDelete the style and icon table and row relationships for the feature tablevoiddeleteStyle(long featureId, GeometryType geometryType) Delete the feature row style for the geometry typevoiddeleteStyle(FeatureRow featureRow) Delete the feature row style for the feature row geometry typevoiddeleteStyle(FeatureRow featureRow, GeometryType geometryType) Delete the feature row style for the geometry typevoiddeleteStyleDefault(long featureId) Delete the feature row default stylevoiddeleteStyleDefault(FeatureRow featureRow) Delete the feature row default stylevoidDelete a style relationship for the feature tablevoidDelete all stylesvoiddeleteStyles(long featureId) Delete feature row stylesvoiddeleteStyles(FeatureRow featureRow) Delete feature row stylesvoidDelete the feature table feature stylesvoiddeleteTableIcon(GeometryType geometryType) Delete the feature table icon for the geometry typevoidDelete the feature table default iconvoidDelete a table icon relationship for the feature tablevoidDelete the feature table iconsvoiddeleteTableStyle(GeometryType geometryType) Delete the feature table style for the geometry typevoidDelete the feature table default stylevoidDelete a table style relationship for the feature tablevoidDelete the feature table stylesGet all the unique icon row ids the features map toGet all the unique style row ids the features map toGet all the unique icon row ids the table maps toGet all the unique style row ids the table maps toGet the cached table icons, querying and caching if neededGet the cached table styles, querying and caching if neededGet all icons used by feature rows in the tablegetFeatureStyle(long featureId, GeometryType geometryType) Get the feature style (style and icon) of the feature, searching in order: feature geometry type style or icon, feature default style or icon, table geometry type style or icon, table default style or icongetFeatureStyle(FeatureRow featureRow) Get the feature style (style and icon) of the feature row, searching in order: feature geometry type style or icon, feature default style or icon, table geometry type style or icon, table default style or icongetFeatureStyle(FeatureRow featureRow, GeometryType geometryType) Get the feature style (style and icon) of the feature row with the provided geometry type, searching in order: feature geometry type style or icon, feature default style or icon, table geometry type style or icon, table default style or icongetFeatureStyleDefault(long featureId) Get the feature style (style and icon) of the feature, searching in order: feature geometry type style or icon, feature default style or icon, table geometry type style or icon, table default style or icongetFeatureStyleDefault(FeatureRow featureRow) Get the feature style default (style and icon) of the feature row, searching in order: feature default style or icon, table default style or iconGet the feature style extensionGet all styles used by feature rows in the tablegetFeatureStyles(long featureId) Get the feature styles for the feature idgetFeatureStyles(FeatureRow featureRow) Get the feature styles for the feature rowgetIcon(long featureId, GeometryType geometryType) Get the icon of the feature, searching in order: feature geometry type icon, feature default icon, table geometry type icon, table default icongetIcon(FeatureRow featureRow) Get the icon of the feature row, searching in order: feature geometry type icon, feature default icon, table geometry type icon, table default icongetIcon(FeatureRow featureRow, GeometryType geometryType) Get the icon of the feature row with the provided geometry type, searching in order: feature geometry type icon, feature default icon, table geometry type icon, table default iconGet a icon DAOgetIconDefault(long featureId) Get the default icon of the feature, searching in order: feature default icon, table default icongetIconDefault(FeatureRow featureRow) Get the default icon of the feature row, searching in order: feature default icon, table default iconGet a Icon Mapping DAOgetIcons()Get all icons used by the feature tablegetIcons(long featureId) Get the icons for the feature idgetIcons(FeatureRow featureRow) Get the icons for the feature rowgetStyle(long featureId, GeometryType geometryType) Get the style of the feature, searching in order: feature geometry type style, feature default style, table geometry type style, table default stylegetStyle(FeatureRow featureRow) Get the style of the feature row, searching in order: feature geometry type style, feature default style, table geometry type style, table default stylegetStyle(FeatureRow featureRow, GeometryType geometryType) Get the style of the feature row with the provided geometry type, searching in order: feature geometry type style, feature default style, table geometry type style, table default styleGet a style DAOgetStyleDefault(long featureId) Get the default style of the feature, searching in order: feature default style, table default stylegetStyleDefault(FeatureRow featureRow) Get the default style of the feature row, searching in order: feature default style, table default styleGet a Style Mapping DAOGet all styles used by the feature tablegetStyles(long featureId) Get the styles for the feature idgetStyles(FeatureRow featureRow) Get the styles for the feature rowGet the table feature stylesgetTableIcon(GeometryType geometryType) Get the table icon of the geometry typeGet the table icon defaultGet a Table Icon Mapping DAOGet the table iconsGet the feature table namegetTableStyle(GeometryType geometryType) Get the table style of the geometry typeGet the table style defaultGet a Table Style Mapping DAOGet the table stylesbooleanhas()Determine if the GeoPackage has the extension for the tablebooleanDetermine if an icon relationship exists for the feature tablebooleanCheck if feature table has a style, icon, table style, or table icon relationshipsbooleanDetermine if a style relationship exists for the feature tablebooleanDetermine if feature table icon relationship existsbooleanDetermine if feature table style relationship existsvoidsetFeatureStyle(long featureId, GeometryType geometryType, FeatureStyle featureStyle) Set the feature style (style and icon) of the featurevoidsetFeatureStyle(FeatureRow featureRow, FeatureStyle featureStyle) Set the feature style (style and icon) of the feature rowvoidsetFeatureStyle(FeatureRow featureRow, GeometryType geometryType, FeatureStyle featureStyle) Set the feature style (style and icon) of the feature row for the specified geometry typevoidsetFeatureStyleDefault(long featureId, FeatureStyle featureStyle) Set the feature style (style and icon) of the featurevoidsetFeatureStyleDefault(FeatureRow featureRow, FeatureStyle featureStyle) Set the feature style default (style and icon) of the feature rowvoidsetFeatureStyles(long featureId, FeatureStyles featureStyles) Set the feature styles for the feature table and feature idvoidsetFeatureStyles(FeatureRow featureRow, FeatureStyles featureStyles) Set the feature styles for the feature rowvoidsetIcon(long featureId, GeometryType geometryType, IconRow icon) Get the icon of the feature, searching in order: feature geometry type icon, feature default icon, table geometry type icon, table default iconvoidsetIcon(FeatureRow featureRow, IconRow icon) Set the icon of the feature rowvoidsetIcon(FeatureRow featureRow, GeometryType geometryType, IconRow icon) Set the icon of the feature row for the specified geometry typevoidsetIconDefault(long featureId, IconRow icon) Set the default icon of the featurevoidsetIconDefault(FeatureRow featureRow, IconRow icon) Set the default icon of the feature rowvoidSet the icons for the feature table and feature idvoidsetIcons(FeatureRow featureRow, Icons icons) Set the icons for the feature rowvoidsetStyle(long featureId, GeometryType geometryType, StyleRow style) Set the style of the featurevoidsetStyle(FeatureRow featureRow, StyleRow style) Set the style of the feature rowvoidsetStyle(FeatureRow featureRow, GeometryType geometryType, StyleRow style) Set the style of the feature row for the specified geometry typevoidsetStyleDefault(long featureId, StyleRow style) Set the default style of the featurevoidsetStyleDefault(FeatureRow featureRow, StyleRow style) Set the default style of the feature rowvoidSet the styles for the feature table and feature idvoidsetStyles(FeatureRow featureRow, Styles styles) Set the styles for the feature rowvoidsetTableFeatureStyles(FeatureStyles featureStyles) Set the feature table default feature stylesvoidsetTableIcon(GeometryType geometryType, IconRow icon) Set the feature table icon for the geometry typevoidsetTableIconDefault(IconRow icon) Set the feature table icon defaultvoidsetTableIcons(Icons icons) Set the feature table default iconsvoidsetTableStyle(GeometryType geometryType, StyleRow style) Set the feature table style for the geometry typevoidsetTableStyleDefault(StyleRow style) Set the feature table style defaultvoidsetTableStyles(Styles styles) Set the feature table default styles
-
Constructor Details
-
FeatureTableStyles
Constructor- Parameters:
geoPackage- GeoPackagefeatureTable- feature table
-
FeatureTableStyles
Constructor- Parameters:
geoPackage- GeoPackagegeometryColumns- geometry columns
-
FeatureTableStyles
Constructor- Parameters:
geoPackage- GeoPackagecontents- feature contents
-
FeatureTableStyles
Constructor- Parameters:
geoPackage- GeoPackagefeatureTable- feature table
-
-
Method Details
-
getFeatureStyleExtension
Get the feature style extension- Returns:
- feature style extension
-
getTableName
Get the feature table name- Returns:
- feature table name
-
has
public boolean has()Determine if the GeoPackage has the extension for the table- Returns:
- true if has extension
-
createRelationships
public void createRelationships()Create style, icon, table style, and table icon relationships for the feature table -
hasRelationship
public boolean hasRelationship()Check if feature table has a style, icon, table style, or table icon relationships- Returns:
- true if has a relationship
-
createStyleRelationship
public void createStyleRelationship()Create a style relationship for the feature table -
hasStyleRelationship
public boolean hasStyleRelationship()Determine if a style relationship exists for the feature table- Returns:
- true if relationship exists
-
createTableStyleRelationship
public void createTableStyleRelationship()Create a feature table style relationship -
hasTableStyleRelationship
public boolean hasTableStyleRelationship()Determine if feature table style relationship exists- Returns:
- true if relationship exists
-
createIconRelationship
public void createIconRelationship()Create an icon relationship for the feature table -
hasIconRelationship
public boolean hasIconRelationship()Determine if an icon relationship exists for the feature table- Returns:
- true if relationship exists
-
createTableIconRelationship
public void createTableIconRelationship()Create a feature table icon relationship -
hasTableIconRelationship
public boolean hasTableIconRelationship()Determine if feature table icon relationship exists- Returns:
- true if relationship exists
-
deleteRelationships
public void deleteRelationships()Delete the style and icon table and row relationships for the feature table -
deleteStyleRelationship
public void deleteStyleRelationship()Delete a style relationship for the feature table -
deleteTableStyleRelationship
public void deleteTableStyleRelationship()Delete a table style relationship for the feature table -
deleteIconRelationship
public void deleteIconRelationship()Delete a icon relationship for the feature table -
deleteTableIconRelationship
public void deleteTableIconRelationship()Delete a table icon relationship for the feature table -
getStyleMappingDao
Get a Style Mapping DAO- Returns:
- style mapping DAO
-
getTableStyleMappingDao
Get a Table Style Mapping DAO- Returns:
- table style mapping DAO
-
getIconMappingDao
Get a Icon Mapping DAO- Returns:
- icon mapping DAO
-
getTableIconMappingDao
Get a Table Icon Mapping DAO- Returns:
- table icon mapping DAO
-
getStyleDao
Get a style DAO- Returns:
- style DAO
-
getIconDao
Get a icon DAO- Returns:
- icon DAO
-
getTableFeatureStyles
Get the table feature styles- Returns:
- table feature styles or null
-
getTableStyles
Get the table styles- Returns:
- table styles or null
-
getCachedTableStyles
Get the cached table styles, querying and caching if needed- Returns:
- cached table styles
-
getTableStyle
Get the table style of the geometry type- Parameters:
geometryType- geometry type- Returns:
- style row
-
getTableStyleDefault
Get the table style default- Returns:
- style row
-
getTableIcons
Get the table icons- Returns:
- table icons or null
-
getCachedTableIcons
Get the cached table icons, querying and caching if needed- Returns:
- cached table icons
-
getTableIcon
Get the table icon of the geometry type- Parameters:
geometryType- geometry type- Returns:
- icon row
-
getTableIconDefault
Get the table icon default- Returns:
- icon row
-
getStyles
Get all styles used by the feature table- Returns:
- style rows mapped by ids
- Since:
- 6.3.0
-
getFeatureStyles
Get all styles used by feature rows in the table- Returns:
- style rows mapped by ids
- Since:
- 6.3.0
-
getIcons
Get all icons used by the feature table- Returns:
- icon rows mapped by ids
- Since:
- 6.3.0
-
getFeatureIcons
Get all icons used by feature rows in the table- Returns:
- icon rows mapped by ids
- Since:
- 6.3.0
-
getFeatureStyles
Get the feature styles for the feature row- Parameters:
featureRow- feature row- Returns:
- feature styles or null
-
getFeatureStyles
Get the feature styles for the feature id- Parameters:
featureId- feature id- Returns:
- feature styles or null
-
getFeatureStyle
Get the feature style (style and icon) of the feature row, searching in order: feature geometry type style or icon, feature default style or icon, table geometry type style or icon, table default style or icon- Parameters:
featureRow- feature row- Returns:
- feature style
-
getFeatureStyle
Get the feature style (style and icon) of the feature row with the provided geometry type, searching in order: feature geometry type style or icon, feature default style or icon, table geometry type style or icon, table default style or icon- Parameters:
featureRow- feature rowgeometryType- geometry type- Returns:
- feature style
-
getFeatureStyleDefault
Get the feature style default (style and icon) of the feature row, searching in order: feature default style or icon, table default style or icon- Parameters:
featureRow- feature row- Returns:
- feature style
-
getFeatureStyle
Get the feature style (style and icon) of the feature, searching in order: feature geometry type style or icon, feature default style or icon, table geometry type style or icon, table default style or icon- Parameters:
featureId- feature idgeometryType- geometry type- Returns:
- feature style
-
getFeatureStyleDefault
Get the feature style (style and icon) of the feature, searching in order: feature geometry type style or icon, feature default style or icon, table geometry type style or icon, table default style or icon- Parameters:
featureId- feature id- Returns:
- feature style
-
getStyles
Get the styles for the feature row- Parameters:
featureRow- feature row- Returns:
- styles or null
-
getStyles
Get the styles for the feature id- Parameters:
featureId- feature id- Returns:
- styles or null
-
getStyle
Get the style of the feature row, searching in order: feature geometry type style, feature default style, table geometry type style, table default style- Parameters:
featureRow- feature row- Returns:
- style row
-
getStyle
Get the style of the feature row with the provided geometry type, searching in order: feature geometry type style, feature default style, table geometry type style, table default style- Parameters:
featureRow- feature rowgeometryType- geometry type- Returns:
- style row
-
getStyleDefault
Get the default style of the feature row, searching in order: feature default style, table default style- Parameters:
featureRow- feature row- Returns:
- style row
-
getStyle
Get the style of the feature, searching in order: feature geometry type style, feature default style, table geometry type style, table default style- Parameters:
featureId- feature idgeometryType- geometry type- Returns:
- style row
-
getStyleDefault
Get the default style of the feature, searching in order: feature default style, table default style- Parameters:
featureId- feature id- Returns:
- style row
-
getIcons
Get the icons for the feature row- Parameters:
featureRow- feature row- Returns:
- icons or null
-
getIcons
Get the icons for the feature id- Parameters:
featureId- feature id- Returns:
- icons or null
-
getIcon
Get the icon of the feature row, searching in order: feature geometry type icon, feature default icon, table geometry type icon, table default icon- Parameters:
featureRow- feature row- Returns:
- icon row
-
getIcon
Get the icon of the feature row with the provided geometry type, searching in order: feature geometry type icon, feature default icon, table geometry type icon, table default icon- Parameters:
featureRow- feature rowgeometryType- geometry type- Returns:
- icon row
-
getIconDefault
Get the default icon of the feature row, searching in order: feature default icon, table default icon- Parameters:
featureRow- feature row- Returns:
- icon row
-
getIcon
Get the icon of the feature, searching in order: feature geometry type icon, feature default icon, table geometry type icon, table default icon- Parameters:
featureId- feature idgeometryType- geometry type- Returns:
- icon row
-
getIconDefault
Get the default icon of the feature, searching in order: feature default icon, table default icon- Parameters:
featureId- feature id- Returns:
- icon row
-
setTableFeatureStyles
Set the feature table default feature styles- Parameters:
featureStyles- default feature styles
-
setTableStyles
Set the feature table default styles- Parameters:
styles- default styles
-
setTableStyleDefault
Set the feature table style default- Parameters:
style- style row
-
setTableStyle
Set the feature table style for the geometry type- Parameters:
geometryType- geometry typestyle- style row
-
setTableIcons
Set the feature table default icons- Parameters:
icons- default icons
-
setTableIconDefault
Set the feature table icon default- Parameters:
icon- icon row
-
setTableIcon
Set the feature table icon for the geometry type- Parameters:
geometryType- geometry typeicon- icon row
-
setFeatureStyles
Set the feature styles for the feature row- Parameters:
featureRow- feature rowfeatureStyles- feature styles
-
setFeatureStyles
Set the feature styles for the feature table and feature id- Parameters:
featureId- feature idfeatureStyles- feature styles
-
setFeatureStyle
Set the feature style (style and icon) of the feature row- Parameters:
featureRow- feature rowfeatureStyle- feature style
-
setFeatureStyle
public void setFeatureStyle(FeatureRow featureRow, GeometryType geometryType, FeatureStyle featureStyle) Set the feature style (style and icon) of the feature row for the specified geometry type- Parameters:
featureRow- feature rowgeometryType- geometry typefeatureStyle- feature style
-
setFeatureStyleDefault
Set the feature style default (style and icon) of the feature row- Parameters:
featureRow- feature rowfeatureStyle- feature style
-
setFeatureStyle
Set the feature style (style and icon) of the feature- Parameters:
featureId- feature idgeometryType- geometry typefeatureStyle- feature style
-
setFeatureStyleDefault
Set the feature style (style and icon) of the feature- Parameters:
featureId- feature idfeatureStyle- feature style
-
setStyles
Set the styles for the feature row- Parameters:
featureRow- feature rowstyles- styles
-
setStyles
Set the styles for the feature table and feature id- Parameters:
featureId- feature idstyles- styles
-
setStyle
Set the style of the feature row- Parameters:
featureRow- feature rowstyle- style row
-
setStyle
Set the style of the feature row for the specified geometry type- Parameters:
featureRow- feature rowgeometryType- geometry typestyle- style row
-
setStyleDefault
Set the default style of the feature row- Parameters:
featureRow- feature rowstyle- style row
-
setStyle
Set the style of the feature- Parameters:
featureId- feature idgeometryType- geometry typestyle- style row
-
setStyleDefault
Set the default style of the feature- Parameters:
featureId- feature idstyle- style row
-
setIcons
Set the icons for the feature row- Parameters:
featureRow- feature rowicons- icons
-
setIcons
Set the icons for the feature table and feature id- Parameters:
featureId- feature idicons- icons
-
setIcon
Set the icon of the feature row- Parameters:
featureRow- feature rowicon- icon row
-
setIcon
Set the icon of the feature row for the specified geometry type- Parameters:
featureRow- feature rowgeometryType- geometry typeicon- icon row
-
setIconDefault
Set the default icon of the feature row- Parameters:
featureRow- feature rowicon- icon row
-
setIcon
Get the icon of the feature, searching in order: feature geometry type icon, feature default icon, table geometry type icon, table default icon- Parameters:
featureId- feature idgeometryType- geometry typeicon- icon row
-
setIconDefault
Set the default icon of the feature- Parameters:
featureId- feature idicon- icon row
-
deleteAllFeatureStyles
public void deleteAllFeatureStyles()Delete all feature styles including table styles, table icons, style, and icons -
deleteAllStyles
public void deleteAllStyles()Delete all styles including table styles and feature row styles -
deleteAllIcons
public void deleteAllIcons()Delete all icons including table icons and feature row icons -
deleteTableFeatureStyles
public void deleteTableFeatureStyles()Delete the feature table feature styles -
deleteTableStyles
public void deleteTableStyles()Delete the feature table styles -
deleteTableStyleDefault
public void deleteTableStyleDefault()Delete the feature table default style -
deleteTableStyle
Delete the feature table style for the geometry type- Parameters:
geometryType- geometry type
-
deleteTableIcons
public void deleteTableIcons()Delete the feature table icons -
deleteTableIconDefault
public void deleteTableIconDefault()Delete the feature table default icon -
deleteTableIcon
Delete the feature table icon for the geometry type- Parameters:
geometryType- geometry type
-
clearCachedTableFeatureStyles
public void clearCachedTableFeatureStyles()Clear the cached table feature styles -
clearCachedTableStyles
public void clearCachedTableStyles()Clear the cached table styles -
clearCachedTableIcons
public void clearCachedTableIcons()Clear the cached table icons -
deleteFeatureStyles
public void deleteFeatureStyles()Delete all feature styles -
deleteStyles
public void deleteStyles()Delete all styles -
deleteStyles
Delete feature row styles- Parameters:
featureRow- feature row
-
deleteStyles
public void deleteStyles(long featureId) Delete feature row styles- Parameters:
featureId- feature id
-
deleteStyleDefault
Delete the feature row default style- Parameters:
featureRow- feature row
-
deleteStyleDefault
public void deleteStyleDefault(long featureId) Delete the feature row default style- Parameters:
featureId- feature id
-
deleteStyle
Delete the feature row style for the feature row geometry type- Parameters:
featureRow- feature row
-
deleteStyle
Delete the feature row style for the geometry type- Parameters:
featureRow- feature rowgeometryType- geometry type
-
deleteStyle
Delete the feature row style for the geometry type- Parameters:
featureId- feature idgeometryType- geometry type
-
deleteIcons
public void deleteIcons()Delete all icons -
deleteIcons
Delete feature row icons- Parameters:
featureRow- feature row
-
deleteIcons
public void deleteIcons(long featureId) Delete feature row icons- Parameters:
featureId- feature id
-
deleteIconDefault
Delete the feature row default icon- Parameters:
featureRow- feature row
-
deleteIconDefault
public void deleteIconDefault(long featureId) Delete the feature row default icon- Parameters:
featureId- feature id
-
deleteIcon
Delete the feature row icon for the feature row geometry type- Parameters:
featureRow- feature row
-
deleteIcon
Delete the feature row icon for the geometry type- Parameters:
featureRow- feature rowgeometryType- geometry type
-
deleteIcon
Delete the feature row icon for the geometry type- Parameters:
featureId- feature idgeometryType- geometry type
-
getAllTableStyleIds
Get all the unique style row ids the table maps to- Returns:
- style row ids
-
getAllTableIconIds
Get all the unique icon row ids the table maps to- Returns:
- icon row ids
-
getAllStyleIds
Get all the unique style row ids the features map to- Returns:
- style row ids
-
getAllIconIds
Get all the unique icon row ids the features map to- Returns:
- icon row ids
-
calculatePixelBounds
Calculate style pixel bounds- Returns:
- pixel bounds
- Since:
- 6.3.0
-
calculatePixelBounds
Calculate style pixel bounds- Parameters:
density- display density:DisplayMetrics.density- Returns:
- pixel bounds
- Since:
- 6.3.0
-