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
- Author:
- osbornb
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IconRow
getDefault()
Get the default iconIconRow
getIcon()
Get the icon, either the default or single geometry type iconIconRow
getIcon(GeometryType geometryType)
Get the icon for the geometry typeMap<GeometryType,IconRow>
getIcons()
Get an unmodifiable mapping between specific geometry types and iconsboolean
hasDefault()
Determine if there is a default iconboolean
isEmpty()
Determine if this icons is emptyboolean
isTableIcons()
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
-
-
-
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
-
-