public class DefaultGlyphFactory extends Object implements GlyphFactory
Constructor and Description |
---|
DefaultGlyphFactory() |
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) |
public Icon icon(MapLayer layer)
At a minimum the icon will be based on:
icon
in interface GlyphFactory
layer
- public Icon polygon(Rule rule)
polygon
in interface GlyphFactory
public Icon geometry(Color color, Color fill)
geometry
in interface GlyphFactory
public Icon geometry(Rule rule)
geometry
in interface GlyphFactory
public Icon grid(Color color1, Color color2, Color color3, Color color4)
grid
in interface GlyphFactory
public Icon icon(SimpleFeatureType schema)
GlyphFactory
icon
in interface GlyphFactory
public Icon line(Color line, int width)
GlyphFactory
line
in interface GlyphFactory
line
- Line colourwidth
- Line widthpublic Icon line(Rule rule)
GlyphFactory
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.
line
in interface GlyphFactory
rule
- Rule used to render a Pointpublic Icon palette(Color[] colors)
palette
in interface GlyphFactory
public Icon point(Color point, Color fill)
GlyphFactory
point
in interface GlyphFactory
point
- Color of the Pointfill
- Color inside the Pointpublic Icon point(Rule rule)
GlyphFactory
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.
point
in interface GlyphFactory
rule
- Rule used to render a Pointpublic Icon polygon(Color color, Color fill, int width)
polygon
in interface GlyphFactory
public Icon swatch(Color color)
swatch
in interface GlyphFactory
Copyright © 1996–2019 Geotools. All rights reserved.