|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.geotools.legend.DefaultGlyphFactory
public class DefaultGlyphFactory
Constructor Summary | |
---|---|
DefaultGlyphFactory()
|
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)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultGlyphFactory()
Method Detail |
---|
public javax.swing.Icon icon(MapLayer layer)
At a minimum the icon will be based on:
icon
in interface GlyphFactory
layer
-
public javax.swing.Icon polygon(Rule rule)
polygon
in interface GlyphFactory
public javax.swing.Icon geometry(java.awt.Color color, java.awt.Color fill)
geometry
in interface GlyphFactory
public javax.swing.Icon geometry(Rule rule)
geometry
in interface GlyphFactory
public javax.swing.Icon grid(java.awt.Color color1, java.awt.Color color2, java.awt.Color color3, java.awt.Color color4)
grid
in interface GlyphFactory
public javax.swing.Icon icon(org.opengis.feature.simple.SimpleFeatureType schema)
GlyphFactory
icon
in interface GlyphFactory
public javax.swing.Icon line(java.awt.Color line, int width)
GlyphFactory
line
in interface GlyphFactory
line
- Line colourwidth
- Line width
public javax.swing.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 javax.swing.Icon palette(java.awt.Color[] colors)
palette
in interface GlyphFactory
public javax.swing.Icon point(java.awt.Color point, java.awt.Color fill)
GlyphFactory
point
in interface GlyphFactory
point
- Color of the Pointfill
- Color inside the Point
public javax.swing.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 javax.swing.Icon polygon(java.awt.Color color, java.awt.Color fill, int width)
polygon
in interface GlyphFactory
public javax.swing.Icon swatch(java.awt.Color color)
swatch
in interface GlyphFactory
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |