Module com.esri.arcgisruntime
Class SimpleLabelExpression
java.lang.Object
com.esri.arcgisruntime.mapping.labeling.LabelExpression
com.esri.arcgisruntime.mapping.labeling.SimpleLabelExpression
An expression script using the Simple REST language.
The label Simple expression expects to hold a legal, Simple script and to be read and evaluated by a Simple expression interpreter. An example expression that combines text with a field value is
"State: " CONCAT [State_Name]
Note that quotes are needed around the literal text. See Labeling Objects for full documentation on the labelExpression syntax and functions.
Warning: If the expression attempts to use attributes which don't exist then no label will be produced. This is distinct from the attribute existing but having a null or empty value, which can form part of the produced text label.
- Since:
- 100.11.0
-
Constructor Summary
ConstructorDescriptionCreates a label Simple expression with an empty expression script.SimpleLabelExpression
(String simpleExpression) Creates a label Simple expression with a specific Simple script. -
Method Summary
Methods inherited from class com.esri.arcgisruntime.mapping.labeling.LabelExpression
getExpression, setExpression
-
Constructor Details
-
SimpleLabelExpression
public SimpleLabelExpression()Creates a label Simple expression with an empty expression script.An empty script is a legal Simple expression that will evaluate to an empty string.
- Since:
- 100.11.0
-
SimpleLabelExpression
Creates a label Simple expression with a specific Simple script.The expression is expected to be a complete, self-contained Simple expression.
- Parameters:
simpleExpression
- the Simple expression script string- Throws:
IllegalArgumentException
- if simpleExpression is null- Since:
- 100.11.0
-