Package dev.avelar.mapnik
Class Style
java.lang.Object
dev.avelar.mapnik.Style
A named set of
Rules. Add it to a map with MapnikMap.addStyle(dev.avelar.mapnik.Style), then refer to it
from a layer with Layer.addStyle(java.lang.String).-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumWhether every matching rule draws, or only the first one that matches. -
Method Summary
Modifier and TypeMethodDescriptionThe style's own attributes, such asopacityandcomp-op, as written.Compositing mode used when the style's layer is blended onto the map, such asmultiply.static StylefilterMode(Style.FilterMode mode) static StyleRead a style from its XML, such as onetoXml()wrote or one taken from a Mapnik map file.imageFilters(String filters) Image filters applied to the layer after it is drawn, for example"blur(10)".name()opacity(double v) Opacity of everything drawn by this style, from 0 to 1.rules()toString()toXml()
-
Method Details
-
create
-
fromXml
Read a style from its XML, such as onetoXml()wrote or one taken from a Mapnik map file. ThrowsIllegalArgumentExceptionif the text is not a well-formed<Style>element. DTDs are refused. -
attributes
The style's own attributes, such asopacityandcomp-op, as written. -
name
-
opacity
Opacity of everything drawn by this style, from 0 to 1. -
compOp
Compositing mode used when the style's layer is blended onto the map, such asmultiply. -
compOp
-
filterMode
-
imageFilters
Image filters applied to the layer after it is drawn, for example"blur(10)". -
add
-
rules
-
toXml
-
toString
-