public interface GlyphFactory
We are making this an interface so that applications can implement their own icons as needed.
Modifier and Type | Method and Description |
---|---|
Icon |
geometry(Color color,
Color fill) |
Icon |
geometry(Rule rule) |
Icon |
grid(Color color1,
Color color2,
Color color3,
Color color4) |
Icon |
icon(MapLayer layer)
Glyph for the provided layer.
|
Icon |
icon(SimpleFeatureType schema)
Make a basic representation of the provided FeatureType.
|
Icon |
line(Color line,
int width)
Produces a simple Icon representing a line.
|
Icon |
line(Rule rule)
Produce a simple Icon representing a point.
|
Icon |
palette(Color[] colors) |
Icon |
point(Color point,
Color fill)
Produce a simple Icon representing a point.
|
Icon |
point(Rule rule)
Produce a simple Icon representing a point.
|
Icon |
polygon(Color color,
Color fill,
int width) |
Icon |
polygon(Rule rule) |
Icon |
swatch(Color color) |
Icon point(Color point, Color fill)
point
- Color of the Pointfill
- Color inside the PointIcon point(Rule rule)
At a minimum this code is the same as:
PointSymbolizer symbolizer = SLD.pointSymbolizer( rule );
return glyphFactory.point( SLD.pointColor( symbolizer ), SLD.fillColor( symbolizer ) );
Implementations have the option of going into greater detail, picking up on TextSymbolizers and so on.
rule
- Rule used to render a PointIcon line(Color line, int width)
line
- Line colourwidth
- Line widthIcon line(Rule rule)
At a minimum this code is the same as:
LineSymbolizer symbolizer = SLD.lineSymbolizer( rule );
return glyphFactory.point( SLD.lineColor( symbolizer ), SLD.lineWidth( symbolizer ) );
Implementations have the option of going into greater detail, picking up on TextSymbolizers and so on.
rule
- Rule used to render a PointIcon icon(SimpleFeatureType schema)
schema
- Copyright © 1996–2019 Geotools. All rights reserved.