FieldStyleRule

public class FieldStyleRule implements IStyleRule, IJSONStore

Fields

JSON_FIELD_KEY

public static final String JSON_FIELD_KEY

JSON_RULES_KEY

public static final String JSON_RULES_KEY

mKey

String mKey

mLayer

VectorLayer mLayer

mStyleRules

Map<String, Style> mStyleRules

Constructors

FieldStyleRule

public FieldStyleRule(VectorLayer layer)

Methods

clearRules

public void clearRules()

fromJSON

public void fromJSON(JSONObject jsonObject)

getKey

public String getKey()

getStyle

public Style getStyle(String value)

getStyleRules

public Map<String, Style> getStyleRules()

removeStyle

public void removeStyle(String value)

setKey

public void setKey(String key)

setStyle

public void setStyle(String value, Style style)

setStyleParams

public void setStyleParams(Style style, long featureId)

size

public int size()

toJSON

public JSONObject toJSON()