Class FeatureStyle
- java.lang.Object
-
- mil.nga.geopackage.extension.nga.style.FeatureStyle
-
public class FeatureStyle extends Object
Feature Style, including a style and icon, for a single feature geometry- Since:
- 3.2.0
- Author:
- osbornb
-
-
Constructor Summary
Constructors Constructor Description FeatureStyle()
ConstructorFeatureStyle(IconRow icon)
ConstructorFeatureStyle(StyleRow style)
ConstructorFeatureStyle(StyleRow style, IconRow icon)
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IconRow
getIcon()
Get the icon rowStyleRow
getStyle()
Get the style rowboolean
hasIcon()
Check if the feature style has an icon rowboolean
hasStyle()
Check if the feature style has a style rowvoid
setIcon(IconRow icon)
Set the icon rowvoid
setStyle(StyleRow style)
Set the style rowboolean
useIcon()
Determine if an icon exists and should be used.
-
-
-
Method Detail
-
getStyle
public StyleRow getStyle()
Get the style row- Returns:
- style row or null
-
setStyle
public void setStyle(StyleRow style)
Set the style row- Parameters:
style
- style row
-
getIcon
public IconRow getIcon()
Get the icon row- Returns:
- icon row or null
-
setIcon
public void setIcon(IconRow icon)
Set the icon row- Parameters:
icon
- icon row
-
hasStyle
public boolean hasStyle()
Check if the feature style has a style row- Returns:
- true if has style row
-
hasIcon
public boolean hasIcon()
Check if the feature style has an icon row- Returns:
- true if has icon row
-
useIcon
public boolean useIcon()
Determine if an icon exists and should be used. Returns false when an icon does not exist or when both a table level icon and row level style exist.- Returns:
- true if the icon exists and should be used over a style
- Since:
- 3.5.0
-
-