|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectDefaultGlyphFactory
public class DefaultGlyphFactory
Constructor Summary | |
---|---|
DefaultGlyphFactory()
|
Method Summary | |
---|---|
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)
|
Methods inherited from class Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultGlyphFactory()
Method Detail |
---|
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 width
public 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 Point
public 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 Point
public 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 Point
public Icon polygon(Color color, Color fill, int width)
polygon
in interface GlyphFactory
public Icon swatch(Color color)
swatch
in interface GlyphFactory
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |