public class Rule
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
class |
Rule.Closed |
class |
Rule.Element |
static class |
Rule.RuleVisitor |
class |
Rule.Selector |
static class |
Rule.TextSizeVisitor |
static class |
Rule.UpdateVisitor |
| Modifier and Type | Field and Description |
|---|---|
java.lang.String |
cat |
int |
element |
static Rule[] |
EMPTY_RULES |
static RenderStyle[] |
EMPTY_STYLE |
boolean |
selectFirstMatch |
boolean |
selectWhenMatched |
RenderStyle[] |
styles |
Rule[] |
subRules |
int |
zoom |
| Modifier and Type | Method and Description |
|---|---|
void |
apply(Rule.RuleVisitor v) |
static RuleBuilder |
builder() |
void |
dispose() |
boolean |
matchElement(int type,
Tag[] tags,
int zoomLevel,
java.util.List<RenderStyle> result) |
boolean |
matchesTags(Tag[] tags) |
void |
scaleTextSize(float scaleFactor) |
Rule |
setCat(java.lang.String cat) |
void |
updateStyles() |
public static final RenderStyle[] EMPTY_STYLE
public static final Rule[] EMPTY_RULES
public final Rule[] subRules
public final RenderStyle[] styles
public java.lang.String cat
public final int zoom
public final int element
public final boolean selectFirstMatch
public final boolean selectWhenMatched
public boolean matchesTags(Tag[] tags)
public boolean matchElement(int type,
Tag[] tags,
int zoomLevel,
java.util.List<RenderStyle> result)
public void dispose()
public void scaleTextSize(float scaleFactor)
public Rule setCat(java.lang.String cat)
public void updateStyles()
public void apply(Rule.RuleVisitor v)
public static RuleBuilder builder()