public class Styles extends Object
| Constructor and Description |
|---|
Styles() |
| Modifier and Type | Method and Description |
|---|---|
StyleRow |
getDefault()
Default style
|
StyleRow |
getStyle()
Get the style, either the default or single geometry type style
|
StyleRow |
getStyle(mil.nga.sf.GeometryType geometryType)
Get the style for the geometry type
|
Map<mil.nga.sf.GeometryType,StyleRow> |
getStyles()
Get an unmodifiable mapping between specific geometry types and styles
|
boolean |
hasDefault()
Determine if there is a default style
|
boolean |
isEmpty()
Determine if this styles is empty
|
void |
setDefault(StyleRow styleRow)
Set the default style icon
|
void |
setStyle(StyleRow styleRow,
mil.nga.sf.GeometryType geometryType)
Set the style for the geometry type
|
public void setDefault(StyleRow styleRow)
styleRow - default stylepublic void setStyle(StyleRow styleRow, mil.nga.sf.GeometryType geometryType)
styleRow - style rowgeometryType - geometry typepublic StyleRow getDefault()
public Map<mil.nga.sf.GeometryType,StyleRow> getStyles()
public StyleRow getStyle()
public StyleRow getStyle(mil.nga.sf.GeometryType geometryType)
geometryType - geometry typepublic boolean isEmpty()
public boolean hasDefault()