public interface LayerProperties extends ConvertableToXML, Cloneable
| Modifier and Type | Field and Description |
|---|---|
static int |
EXPRESSIONTYPE_BEANSHELL
The expression is a beansehell script that must be evaluated by BeanShell.
|
static int |
EXPRESSIONTYPE_GROOVY
The expression is a grooy script that must be evaluated by the groovy shell.
|
static int |
EXPRESSIONTYPE_PROPERTYNAME
The expression refers to a name of a property of feature.
|
static int |
EXPRESSIONTYPE_STATIC
The expression refers to a static string.
|
static int |
EXPRESSIONTYPE_UNDEFINED
The expression is undefined or not supported.
|
static String |
LAYER_PROPERTIES_ELEMENT |
static int |
QUERYTYPE_HTTPGET
HTTP_GET style parameters query, e.g.
|
static int |
QUERYTYPE_SQL
SQL style query.
|
static int |
QUERYTYPE_UNDEFINED
The query type is not defined, the layee dooes not support queries.
|
static int |
QUERYTYPE_XML
XML style query, eg.g WFS query.
|
TYPE_ATTRIBUTE| Modifier and Type | Method and Description |
|---|---|
void |
assign(LayerProperties layerProperties)
Assigns all properties of the
layerProperties object to the current instance this. |
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()
Returns the expression able to assign a unique id to each feature associated with this layer.
|
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.
|
boolean |
isIdExpressionEnabled()
Determines if the id expression for this particular layer should be evaluated.
|
void |
setFeatureService(AbstractFeatureService service)
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.
|
initFromElement, toElementstatic final int EXPRESSIONTYPE_UNDEFINED
static final int EXPRESSIONTYPE_STATIC
static final int EXPRESSIONTYPE_PROPERTYNAME
static final int EXPRESSIONTYPE_GROOVY
static final int EXPRESSIONTYPE_BEANSHELL
static final int QUERYTYPE_UNDEFINED
static final int QUERYTYPE_HTTPGET
static final int QUERYTYPE_XML
static final int QUERYTYPE_SQL
static final String LAYER_PROPERTIES_ELEMENT
void setStyle(Style featureStyle)
featureStyle - New style object to be setStyle getStyle()
String getIdExpression()
void setIdExpression(String idExpression, int type)
idExpression - the new expression to be settype - the type of the expression, see static EXPRESSIONTYPE_ variablesint getIdExpressionType()
String getPrimaryAnnotationExpression()
int getPrimaryAnnotationExpressionType()
void setPrimaryAnnotationExpression(String primaryAnnotationExpression, int type)
primaryAnnotationExpression - the new expression to be settype - the type of the expression, see static EXPRESSIONTYPE_ variablesString getSecondaryAnnotationExpression()
int getSecondaryAnnotationExpressionType()
void setSecondaryAnnotationExpression(String secondaryAnnotationExpression, int type)
secondaryAnnotationExpression - the new expression to be settype - the type of the expression, see static EXPRESSIONTYPE_ variablesvoid assign(LayerProperties layerProperties)
layerProperties 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.layerProperties - propertiesd to be assigned to this instanceint getQueryType()
void setQueryType(int queryType)
queryType - the query type as specified by the QUERYTYPE_ variablesboolean isIdExpressionEnabled()
falsetrue if id expression is supported, false otherwisevoid setIdExpressionEnabled(boolean idExpressionEnabled)
idExpressionEnabled - set to true if enabledAbstractFeatureService getFeatureService()
void setFeatureService(AbstractFeatureService service)
service - DOCUMENT ME!LayerProperties clone()
AttributeTableRuleSet getAttributeTableRuleSet()
FeatureSimplifier getFeatureSimplifier()
Copyright © 2012–2026 cismet GmbH. All rights reserved.