public class DefaultLayerProperties extends Object implements LayerProperties
| Modifier and Type | Field and Description |
|---|---|
protected static org.apache.log4j.Logger |
logger |
EXPRESSIONTYPE_BEANSHELL, EXPRESSIONTYPE_GROOVY, EXPRESSIONTYPE_PROPERTYNAME, EXPRESSIONTYPE_STATIC, EXPRESSIONTYPE_UNDEFINED, LAYER_PROPERTIES_ELEMENT, QUERYTYPE_HTTPGET, QUERYTYPE_SQL, QUERYTYPE_UNDEFINED, QUERYTYPE_XMLTYPE_ATTRIBUTE| Constructor and Description |
|---|
DefaultLayerProperties()
Creates a new DefaultLayerProperties instance and initialises the style property with a preconfigured BasicStyle
object.
|
DefaultLayerProperties(org.jdom.Element element)
Initialises a new DefaultLayerProperties instance from an xml document.
|
DefaultLayerProperties(LayerProperties layerProperties)
Initialises a new DefaultLayerProperties instance from an existing LayerProperties object.
|
DefaultLayerProperties(Style style)
Creates a new DefaultLayerProperties instance and initialises the style property from the style parameter.
|
| Modifier and Type | Method and Description |
|---|---|
void |
assign(LayerProperties layerProperties)
Assigns all properties of the
layerProperties object to the current instance this. |
static String |
camelize(String toCamelize)
camelizes the given string.
|
LayerProperties |
clone()
Creates a 1:1 copy of this object.
|
AttributeTableRuleSet |
getAttributeTableRuleSet() |
AbstractFeatureService |
getFeatureService()
DOCUMENT ME!
|
FeatureSimplifier |
getFeatureSimplifier()
The FeatureSimplifier is used to simplify geometrie when they were drawing to the map.
|
String |
getIdExpression()
Get the value of idExpression.
|
int |
getIdExpressionType()
Returns the type of the actual idExpression.
|
String |
getPrimaryAnnotationExpression()
Returns the expression able to assign a primary annotation to each feature associated with this layer.
|
int |
getPrimaryAnnotationExpressionType()
Returns the type of the actual primaryAnnotationExpressio.
|
int |
getQueryType()
Returns the type of the query used to query the layer for new features.
|
String |
getSecondaryAnnotationExpression()
Returns the expression able to assign a secondary annotation to each feature associated with this layer.
|
int |
getSecondaryAnnotationExpressionType()
Returns the type of the actual secondaryAnnotationExpressio.
|
Style |
getStyle()
Returns the style associated to this object.
|
void |
initFromElement(org.jdom.Element element)
Initialies an object that implements the ConvertableToXML interface from a DOM Element.
|
boolean |
isIdExpressionEnabled()
Determines if the id expression for this particular layer should be evaluated.
|
void |
setAttributeTableRuleSet(AttributeTableRuleSet attributeTableRuleSet)
DOCUMENT ME!
|
void |
setFeatureService(AbstractFeatureService featureService)
DOCUMENT ME!
|
void |
setFeatureSimplifier(FeatureSimplifier featureSimplifier)
DOCUMENT ME!
|
void |
setIdExpression(String idExpression,
int type)
Sets the expression able to assign a unique id to each feature associated with this layer.
|
void |
setIdExpressionEnabled(boolean idExpressionEnabled)
Enables or disables the evaluation of the is expression.
|
void |
setPrimaryAnnotationExpression(String primaryAnnotationExpression,
int type)
Sets the expression able to assign a primary annotation to each feature associated with this layer.
|
void |
setQueryType(int queryType)
Sets the type of the query used to query the layer for new features.
|
void |
setSecondaryAnnotationExpression(String secondaryAnnotationExpression,
int type)
Sets the expression able to assign a secondary annotation to each feature associated with this layer.
|
void |
setStyle(Style featureStyle)
Sets the style of this layer.
|
org.jdom.Element |
toElement()
Serializes the object that implements the ConvertableToXML interface to a DOM Element.
|
public DefaultLayerProperties()
public DefaultLayerProperties(Style style)
style - Style object to be usedpublic DefaultLayerProperties(org.jdom.Element element)
throws Exception
element - the xml serialized DefaultLayerProperties objectException - if the initilaisation failedConvertableToXML.initFromElement(Element)public DefaultLayerProperties(LayerProperties layerProperties)
layerProperties - LayerProperties to be used for initialisationLayerProperties#clone(Object)public LayerProperties clone()
LayerPropertiesclone in interface LayerPropertiesclone in class Objectpublic void setStyle(Style featureStyle)
LayerPropertiessetStyle in interface LayerPropertiesfeatureStyle - New style object to be setpublic Style getStyle()
LayerPropertiesgetStyle in interface LayerPropertiespublic String getIdExpression()
getIdExpression in interface LayerPropertiespublic void setIdExpression(String idExpression, int type)
LayerPropertiessetIdExpression in interface LayerPropertiesidExpression - the new expression to be settype - the type of the expression, see static EXPRESSIONTYPE_ variablespublic int getIdExpressionType()
LayerPropertiesgetIdExpressionType in interface LayerPropertiespublic String getPrimaryAnnotationExpression()
LayerPropertiesgetPrimaryAnnotationExpression in interface LayerPropertiespublic int getPrimaryAnnotationExpressionType()
LayerPropertiesgetPrimaryAnnotationExpressionType in interface LayerPropertiespublic void setPrimaryAnnotationExpression(String primaryAnnotationExpression, int type)
LayerPropertiessetPrimaryAnnotationExpression in interface LayerPropertiesprimaryAnnotationExpression - the new expression to be settype - the type of the expression, see static EXPRESSIONTYPE_ variablespublic String getSecondaryAnnotationExpression()
LayerPropertiesgetSecondaryAnnotationExpression in interface LayerPropertiespublic int getSecondaryAnnotationExpressionType()
LayerPropertiesgetSecondaryAnnotationExpressionType in interface LayerPropertiespublic void setSecondaryAnnotationExpression(String secondaryAnnotationExpression, int type)
LayerPropertiessetSecondaryAnnotationExpression in interface LayerPropertiessecondaryAnnotationExpression - the new expression to be settype - the type of the expression, see static EXPRESSIONTYPE_ variablespublic int getQueryType()
LayerPropertiesgetQueryType in interface LayerPropertiespublic org.jdom.Element toElement()
ConvertableToXMLtoElement in interface ConvertableToXMLpublic void initFromElement(org.jdom.Element element)
throws Exception
ConvertableToXMLinitFromElement in interface ConvertableToXMLelement - the elemen to be reconstructedException - if the object could not be initializedpublic void assign(LayerProperties layerProperties)
LayerPropertieslayerProperties object to the current instance this. The operation
can for example be used to re-assign the modified properties of a cloned instance of this to this.
Especially usefull when this is referenced by many InheritsLayerProperties features.assign in interface LayerPropertieslayerProperties - propertiesd to be assigned to this instancepublic boolean isIdExpressionEnabled()
LayerPropertiesfalseisIdExpressionEnabled in interface LayerPropertiestrue if id expression is supported, false otherwisepublic void setIdExpressionEnabled(boolean idExpressionEnabled)
LayerPropertiessetIdExpressionEnabled in interface LayerPropertiesidExpressionEnabled - set to true if enabledpublic void setQueryType(int queryType)
LayerPropertiessetQueryType in interface LayerPropertiesqueryType - the query type as specified by the QUERYTYPE_ variablespublic AbstractFeatureService getFeatureService()
LayerPropertiesgetFeatureService in interface LayerPropertiespublic void setFeatureService(AbstractFeatureService featureService)
setFeatureService in interface LayerPropertiesfeatureService - DOCUMENT ME!public AttributeTableRuleSet getAttributeTableRuleSet()
getAttributeTableRuleSet in interface LayerPropertiespublic static String camelize(String toCamelize)
toCamelize - string to camalizepublic void setAttributeTableRuleSet(AttributeTableRuleSet attributeTableRuleSet)
attributeTableRuleSet - the defaultAttributeTableRuleSet to setpublic void setFeatureSimplifier(FeatureSimplifier featureSimplifier)
featureSimplifier - DOCUMENT ME!public FeatureSimplifier getFeatureSimplifier()
LayerPropertiesgetFeatureSimplifier in interface LayerPropertiesCopyright © 2012–2026 cismet GmbH. All rights reserved.