Class Icons
- java.lang.Object
-
- mil.nga.geopackage.extension.nga.style.Icons
-
public class Icons extends Object
Icons for a single feature geometry or feature table default- Since:
- 3.2.0
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IconRowgetDefault()Get the default iconIconRowgetIcon()Get the icon, either the default or single geometry type iconIconRowgetIcon(GeometryType geometryType)Get the icon for the geometry typeMap<GeometryType,IconRow>getIcons()Get an unmodifiable mapping between specific geometry types and iconsbooleanhasDefault()Determine if there is a default iconbooleanisEmpty()Determine if this icons is emptybooleanisTableIcons()Is table iconsvoidsetDefault(IconRow iconRow)Set the default iconvoidsetIcon(IconRow iconRow, GeometryType geometryType)Set the icon for the geometry typevoidsetTableIcons(boolean tableIcons)Set table icons flag
-
-
-
Method Detail
-
setDefault
public void setDefault(IconRow iconRow)
Set the default icon- Parameters:
iconRow- default icon
-
setIcon
public void setIcon(IconRow iconRow, GeometryType geometryType)
Set the icon for the geometry type- Parameters:
iconRow- icon rowgeometryType- geometry type
-
getDefault
public IconRow getDefault()
Get the default icon- Returns:
- default icon
-
getIcons
public Map<GeometryType,IconRow> getIcons()
Get an unmodifiable mapping between specific geometry types and icons- Returns:
- geometry types to icon mapping
-
getIcon
public IconRow getIcon()
Get the icon, either the default or single geometry type icon- Returns:
- style
-
getIcon
public IconRow getIcon(GeometryType geometryType)
Get the icon for the geometry type- Parameters:
geometryType- geometry type- Returns:
- icon
-
isEmpty
public boolean isEmpty()
Determine if this icons is empty- Returns:
- true if empty, false if at least one icon
-
hasDefault
public boolean hasDefault()
Determine if there is a default icon- Returns:
- true if default icon exists
-
isTableIcons
public boolean isTableIcons()
Is table icons- Returns:
- table icons flag
- Since:
- 3.5.0
-
setTableIcons
public void setTableIcons(boolean tableIcons)
Set table icons flag- Parameters:
tableIcons- table icons flag- Since:
- 3.5.0
-
-