Class Styles
java.lang.Object
mil.nga.geopackage.extension.nga.style.Styles
Styles for a single feature geometry or feature table default
- Since:
- 3.2.0
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionDefault stylegetStyle()
Get the style, either the default or single geometry type stylegetStyle
(GeometryType geometryType) Get the style for the geometry typeGet an unmodifiable mapping between specific geometry types and stylesboolean
Determine if there is a default styleboolean
isEmpty()
Determine if this styles is emptyboolean
Is table stylesvoid
setDefault
(StyleRow styleRow) Set the default style iconvoid
setStyle
(StyleRow styleRow, GeometryType geometryType) Set the style for the geometry typevoid
setTableStyles
(boolean tableStyles) Set table styles flag
-
Constructor Details
-
Styles
public Styles()Constructor -
Styles
public Styles(boolean tableStyles) Constructor- Parameters:
tableStyles
- table styles- Since:
- 3.5.0
-
-
Method Details
-
setDefault
Set the default style icon- Parameters:
styleRow
- default style
-
setStyle
Set the style for the geometry type- Parameters:
styleRow
- style rowgeometryType
- geometry type
-
getDefault
Default style- Returns:
- default style
-
getStyles
Get an unmodifiable mapping between specific geometry types and styles- Returns:
- geometry types to style mapping
-
getStyle
Get the style, either the default or single geometry type style- Returns:
- style
-
getStyle
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
-