Class Styles
- java.lang.Object
-
- mil.nga.geopackage.extension.nga.style.Styles
-
public class Styles extends Object
Styles 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 StyleRowgetDefault()Default styleStyleRowgetStyle()Get the style, either the default or single geometry type styleStyleRowgetStyle(GeometryType geometryType)Get the style for the geometry typeMap<GeometryType,StyleRow>getStyles()Get an unmodifiable mapping between specific geometry types and stylesbooleanhasDefault()Determine if there is a default stylebooleanisEmpty()Determine if this styles is emptybooleanisTableStyles()Is table stylesvoidsetDefault(StyleRow styleRow)Set the default style iconvoidsetStyle(StyleRow styleRow, GeometryType geometryType)Set the style for the geometry typevoidsetTableStyles(boolean tableStyles)Set table styles flag
-
-
-
Method Detail
-
setDefault
public void setDefault(StyleRow styleRow)
Set the default style icon- Parameters:
styleRow- default style
-
setStyle
public void setStyle(StyleRow styleRow, GeometryType geometryType)
Set the style for the geometry type- Parameters:
styleRow- style rowgeometryType- geometry type
-
getDefault
public StyleRow getDefault()
Default style- Returns:
- default style
-
getStyles
public Map<GeometryType,StyleRow> getStyles()
Get an unmodifiable mapping between specific geometry types and styles- Returns:
- geometry types to style mapping
-
getStyle
public StyleRow getStyle()
Get the style, either the default or single geometry type style- Returns:
- style
-
getStyle
public StyleRow getStyle(GeometryType geometryType)
Get the style for the geometry type- Parameters:
geometryType- geometry type- Returns:
- style
-
isEmpty
public boolean isEmpty()
Determine if this styles is empty- Returns:
- true if empty, false if at least one style
-
hasDefault
public boolean hasDefault()
Determine if there is a default style- Returns:
- true if default style exists
-
isTableStyles
public boolean isTableStyles()
Is table styles- Returns:
- table styles flag
- Since:
- 3.5.0
-
setTableStyles
public void setTableStyles(boolean tableStyles)
Set table styles flag- Parameters:
tableStyles- table styles flag- Since:
- 3.5.0
-
-