@Api(allMethods=true) public class NamedStyleInfo extends Object implements IsInfo, CacheableObject
FeatureStyleInfo configuration.| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_NAME
Name of the default style.
|
| Constructor and Description |
|---|
NamedStyleInfo() |
| 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.
|
List<FeatureStyleInfo> |
getFeatureStyles()
Get possible styles for features.
|
LabelStyleInfo |
getLabelStyle()
Get label style.
|
String |
getName()
Name for style info.
|
String |
getSldLayerName()
Get the name of the SLD NamedLayer/UserLayer that contains this style.
|
String |
getSldLocation()
Get the SLD file location (Spring resource format).
|
String |
getSldStyleName()
Get the name of the SLD UserStyle that corresponds to this style.
|
org.geomajas.sld.UserStyleInfo |
getUserStyle()
Get the SLD UserStyle info for this layer.
|
int |
hashCode()
Calculate object hash code.
|
void |
setFeatureStyles(List<FeatureStyleInfo> featureStyles)
Set list of possible styles for features.
|
void |
setLabelStyle(LabelStyleInfo labelStyleInfo)
Set label style.
|
void |
setName(String name)
Set name for style info.
|
void |
setSldLayerName(String sldLayerName)
Set the name of the SLD NamedLayer/UserLayer that contains this style.
|
void |
setSldLocation(String sldLocation)
Set the SLD file location (Spring resource format).
|
void |
setSldStyleName(String sldStyleName)
Set the name of the SLD UserStyle that contains this style.
|
void |
setUserStyle(org.geomajas.sld.UserStyleInfo userStyle)
Set SLD UserStyle info, the style configuration for this layer.
|
String |
toString()
String representation of object.
|
public static final String DEFAULT_NAME
public void applyDefaults()
public org.geomajas.sld.UserStyleInfo getUserStyle()
public void setUserStyle(org.geomajas.sld.UserStyleInfo userStyle)
userStyle - SLD UserStyle infopublic String getSldLocation()
public void setSldLocation(String sldLocation)
sldLocation - the SLD locationpublic String getSldLayerName()
public void setSldLayerName(String sldLayerName)
sldLayerName - the name of the NamedLayer/UserLayerpublic String getSldStyleName()
public void setSldStyleName(String sldStyleName)
sldStyleName - the name of the UserStylepublic List<FeatureStyleInfo> getFeatureStyles()
public void setFeatureStyles(List<FeatureStyleInfo> featureStyles)
featureStyles - list of feature stylespublic String getName()
public void setName(String name)
name - namepublic LabelStyleInfo getLabelStyle()
public void setLabelStyle(LabelStyleInfo labelStyleInfo)
labelStyleInfo - label stylepublic String getCacheId()
getCacheId in interface CacheableObjectpublic String toString()
public boolean equals(Object o)
Copyright © 2015 Geosparc. All Rights Reserved.