public class StyleSelectorBuilder
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected boolean |
swigCMemOwn |
Constructor and Description |
---|
StyleSelectorBuilder()
Constructs a new empty builder.
|
StyleSelectorBuilder(long cPtr,
boolean cMemoryOwn) |
Modifier and Type | Method and Description |
---|---|
void |
addRule(java.lang.String expr,
Style style)
Adds new rule to the builder rule set.
|
void |
addRule(Style style)
Adds new rule to the builder rule set.
|
StyleSelector |
buildSelector()
Builds a new style selector from the added rule list.
|
void |
delete() |
protected void |
finalize() |
static long |
getCPtr(StyleSelectorBuilder obj) |
public StyleSelectorBuilder(long cPtr, boolean cMemoryOwn)
public StyleSelectorBuilder()
public static long getCPtr(StyleSelectorBuilder obj)
protected void finalize()
finalize
in class java.lang.Object
public void delete()
public void addRule(java.lang.String expr, Style style)
expr
- The filter expression to use for this rule. For example, "geometry::type = 'linestring' AND type = 'road'"style
- The style for this rule.public void addRule(Style style)
style
- The style for this rule.public StyleSelector buildSelector()