Class Icons
java.lang.Object
mil.nga.geopackage.extension.nga.style.Icons
Icons for a single feature geometry or feature table default
- Since:
- 3.2.0
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the default icongetIcon()
Get the icon, either the default or single geometry type icongetIcon
(GeometryType geometryType) Get the icon for the geometry typegetIcons()
Get an unmodifiable mapping between specific geometry types and iconsboolean
Determine if there is a default iconboolean
isEmpty()
Determine if this icons is emptyboolean
Is table iconsvoid
setDefault
(IconRow iconRow) Set the default iconvoid
setIcon
(IconRow iconRow, GeometryType geometryType) Set the icon for the geometry typevoid
setTableIcons
(boolean tableIcons) Set table icons flag
-
Constructor Details
-
Icons
public Icons()Constructor -
Icons
public Icons(boolean tableIcons) Constructor- Parameters:
tableIcons
- table icons- Since:
- 3.5.0
-
-
Method Details
-
setDefault
Set the default icon- Parameters:
iconRow
- default icon
-
setIcon
Set the icon for the geometry type- Parameters:
iconRow
- icon rowgeometryType
- geometry type
-
getDefault
Get the default icon- Returns:
- default icon
-
getIcons
Get an unmodifiable mapping between specific geometry types and icons- Returns:
- geometry types to icon mapping
-
getIcon
Get the icon, either the default or single geometry type icon- Returns:
- style
-
getIcon
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
-