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
- Author:
- osbornb
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StyleRow
getDefault()
Default styleStyleRow
getStyle()
Get the style, either the default or single geometry type styleStyleRow
getStyle(GeometryType geometryType)
Get the style for the geometry typeMap<GeometryType,StyleRow>
getStyles()
Get an unmodifiable mapping between specific geometry types and stylesboolean
hasDefault()
Determine if there is a default styleboolean
isEmpty()
Determine if this styles is emptyboolean
isTableStyles()
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
-
-
-
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
-
-