@Api(allMethods=true) public class FeatureStyleInfo extends Object implements IsInfo, CacheableObject
| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_STYLE_INDEX
Default value for style index, should be the last in sort order.
|
| Constructor and Description |
|---|
FeatureStyleInfo()
No args constructor for configuration and GWT.
|
FeatureStyleInfo(FeatureStyleInfo other)
Copy constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
applyDefaults()
Applies default values to all properties that have not been set.
|
boolean |
equals(Object o)
Are the two objects equal?
|
String |
getCacheId()
String identifier which is guaranteed to include sufficient information to assure to be different for two
instances which could produce different result.
|
String |
getDashArray()
Get dash array to apply.
|
String |
getFillColor()
Get fill colour.
|
float |
getFillOpacity()
Get fill opacity.
|
String |
getFormula()
Get formula to test whether this style can be applied.
|
int |
getIndex()
Gets the ordering index of the style.
|
LayerType |
getLayerType()
Returns the geometry type for which this style is applicable.
|
String |
getName()
Get feature style name.
|
String |
getStrokeColor()
Get stroke colour.
|
float |
getStrokeOpacity()
Get stroke opacity.
|
int |
getStrokeWidth()
Get stroke width.
|
String |
getStyleId()
Return a unique style identifier for this client side style definition.
|
SymbolInfo |
getSymbol()
Get symbol to indicate feature.
|
int |
hashCode()
Calculate object hash code.
|
void |
setDashArray(String dashArray)
Set the dash array to apply.
|
void |
setFillColor(String fillColor)
Set fill colour.
|
void |
setFillOpacity(float fillOpacity)
Set the fill opacity.
|
void |
setFormula(String formula)
Set formula to test whether this style can be applied.
|
void |
setIndex(int index)
Sets the ordering index of the style.
|
void |
setLayerType(LayerType layerType)
Specifies the geometry type for which this style is applicable.
|
void |
setName(String name)
Set feature style name.
|
void |
setStrokeColor(String strokeColor)
Set stroke colour.
|
void |
setStrokeOpacity(float strokeOpacity)
Set the stroke opacity.
|
void |
setStrokeWidth(int strokeWidth)
Set stroke width.
|
void |
setStyleId(String styleId)
Set a unique style identifier for this client side style definition.
|
void |
setSymbol(SymbolInfo symbol)
Set symbol to indicate feature.
|
String |
toString()
String representation of object.
|
public static final int DEFAULT_STYLE_INDEX
public FeatureStyleInfo()
public FeatureStyleInfo(FeatureStyleInfo other)
FeatureStyleInfo object.other - the feature style to copypublic void applyDefaults()
public int getIndex()
public void setIndex(int index)
index - ordering indexpublic String getName()
public void setName(String name)
name - namepublic String getFormula()
public void setFormula(String formula)
formula - formulapublic String getFillColor()
public void setFillColor(String fillColor)
fillColor - fill colour (in "#rrggbb" notation)public float getFillOpacity()
public void setFillOpacity(float fillOpacity)
fillOpacity - opacity for background fillpublic String getStrokeColor()
public void setStrokeColor(String strokeColor)
strokeColor - stroke colour (in "#rrggbb" notation)public float getStrokeOpacity()
public void setStrokeOpacity(float strokeOpacity)
strokeOpacity - opacity for the strokepublic int getStrokeWidth()
public void setStrokeWidth(int strokeWidth)
strokeWidth - stroke widthpublic String getDashArray()
public void setDashArray(String dashArray)
dashArray - dash array, comma separated list of dash and gap lengthspublic SymbolInfo getSymbol()
public void setSymbol(SymbolInfo symbol)
symbol - symbolpublic String getStyleId()
public void setStyleId(String styleId)
styleId - style idpublic LayerType getLayerType()
LayerType.POLYGON for mixed geometry layers.LayerType.POINT, LayerType.MULTIPOINT,
LayerType.LINESTRING, LayerType.MULTILINESTRING, LayerType.POLYGON, or
LayerType.MULTIPOLYGONpublic void setLayerType(LayerType layerType)
LayerType.POLYGON for mixed geometry layers.layerType - the geometry type for this style (should be one of LayerType.POINT,
LayerType.MULTIPOINT, LayerType.LINESTRING, LayerType.MULTILINESTRING,
LayerType.POLYGON, or LayerType.MULTIPOLYGONpublic String getCacheId()
getCacheId in interface CacheableObjectpublic String toString()
public boolean equals(Object o)
Copyright © 2015 Geosparc. All Rights Reserved.