|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface GlyphFactory
Used to draw the little pictures that appear in a Legend.
We are making this an interface so that applications can implement their own icons as needed.
Method Summary | |
---|---|
javax.swing.Icon |
geometry(java.awt.Color color,
java.awt.Color fill)
|
javax.swing.Icon |
geometry(Rule rule)
|
javax.swing.Icon |
grid(java.awt.Color color1,
java.awt.Color color2,
java.awt.Color color3,
java.awt.Color color4)
|
javax.swing.Icon |
icon(MapLayer layer)
Glyph for the provided layer. |
javax.swing.Icon |
icon(org.opengis.feature.simple.SimpleFeatureType schema)
Make a basic representation of the provided FeatureType. |
javax.swing.Icon |
line(java.awt.Color line,
int width)
Produces a simple Icon representing a line. |
javax.swing.Icon |
line(Rule rule)
Produce a simple Icon representing a point. |
javax.swing.Icon |
palette(java.awt.Color[] colors)
|
javax.swing.Icon |
point(java.awt.Color point,
java.awt.Color fill)
Produce a simple Icon representing a point. |
javax.swing.Icon |
point(Rule rule)
Produce a simple Icon representing a point. |
javax.swing.Icon |
polygon(java.awt.Color color,
java.awt.Color fill,
int width)
|
javax.swing.Icon |
polygon(Rule rule)
|
javax.swing.Icon |
swatch(java.awt.Color color)
|
Method Detail |
---|
javax.swing.Icon point(java.awt.Color point, java.awt.Color fill)
point
- Color of the Pointfill
- Color inside the Point
javax.swing.Icon 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 Point
javax.swing.Icon line(java.awt.Color line, int width)
line
- Line colourwidth
- Line width
javax.swing.Icon 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 Point
javax.swing.Icon geometry(java.awt.Color color, java.awt.Color fill)
javax.swing.Icon geometry(Rule rule)
javax.swing.Icon polygon(java.awt.Color color, java.awt.Color fill, int width)
javax.swing.Icon polygon(Rule rule)
javax.swing.Icon grid(java.awt.Color color1, java.awt.Color color2, java.awt.Color color3, java.awt.Color color4)
javax.swing.Icon swatch(java.awt.Color color)
javax.swing.Icon palette(java.awt.Color[] colors)
javax.swing.Icon icon(org.opengis.feature.simple.SimpleFeatureType schema)
schema
-
javax.swing.Icon icon(MapLayer layer)
At a minimum the icon will be based on:
layer
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |