Class FeatureStyle
java.lang.Object
mil.nga.geopackage.extension.nga.style.FeatureStyle
Feature Style, including a style and icon, for a single feature geometry
- Since:
- 3.2.0
-
Constructor Summary
ConstructorDescriptionConstructorFeatureStyle
(IconRow icon) ConstructorFeatureStyle
(StyleRow style) ConstructorFeatureStyle
(StyleRow style, IconRow icon) Constructor -
Method Summary
Modifier and TypeMethodDescriptiongetIcon()
Get the icon rowgetStyle()
Get the style rowboolean
hasIcon()
Check if the feature style has an icon rowboolean
hasStyle()
Check if the feature style has a style rowvoid
Set the icon rowvoid
Set the style rowboolean
useIcon()
Determine if an icon exists and should be used.
-
Constructor Details
-
FeatureStyle
public FeatureStyle()Constructor -
FeatureStyle
Constructor- Parameters:
style
- style row
-
FeatureStyle
Constructor- Parameters:
icon
- icon row
-
FeatureStyle
Constructor- Parameters:
style
- style rowicon
- icon row
-
-
Method Details
-
getStyle
Get the style row- Returns:
- style row or null
-
setStyle
Set the style row- Parameters:
style
- style row
-
getIcon
Get the icon row- Returns:
- icon row or null
-
setIcon
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
-