Package org.geotools.map.legend
Class DefaultGlyphFactory
Object
DefaultGlyphFactory
- All Implemented Interfaces:
 GlyphFactory
- 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionicon(SimpleFeatureType schema) Make a basic representation of the provided FeatureType.Glyph for the provided layer.Produces a simple Icon representing a line.Produce a simple Icon representing a point.Produce a simple Icon representing a point.Produce a simple Icon representing a point. 
- 
Constructor Details
- 
DefaultGlyphFactory
public DefaultGlyphFactory() 
 - 
 - 
Method Details
- 
icon
Glyph for the provided layer.At a minimum the icon will be based on:
- layer schema, will be considered a generic geometry if not recognized
 - layer style, defaults will be used if not recognized
 
- Specified by:
 iconin interfaceGlyphFactory- Returns:
 - Icon For the provided layer
 
 - 
polygon
- Specified by:
 polygonin interfaceGlyphFactory
 - 
geometry
- Specified by:
 geometryin interfaceGlyphFactory
 - 
geometry
- Specified by:
 geometryin interfaceGlyphFactory
 - 
grid
- Specified by:
 gridin interfaceGlyphFactory
 - 
icon
Description copied from interface:GlyphFactoryMake a basic representation of the provided FeatureType.- Specified by:
 iconin interfaceGlyphFactory
 - 
line
Description copied from interface:GlyphFactoryProduces a simple Icon representing a line.- Specified by:
 linein interfaceGlyphFactory- Parameters:
 line- Line colourwidth- Line width
 - 
line
Description copied from interface:GlyphFactoryProduce a simple Icon representing a point.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.
- Specified by:
 linein interfaceGlyphFactory- Parameters:
 rule- Rule used to render a Point- Returns:
 - Icon representing a Point
 
 - 
palette
- Specified by:
 palettein interfaceGlyphFactory
 - 
point
Description copied from interface:GlyphFactoryProduce a simple Icon representing a point.- Specified by:
 pointin interfaceGlyphFactory- Parameters:
 point- Color of the Pointfill- Color inside the Point- Returns:
 - Icon representing a Point
 
 - 
point
Description copied from interface:GlyphFactoryProduce a simple Icon representing a point.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.
- Specified by:
 pointin interfaceGlyphFactory- Parameters:
 rule- Rule used to render a Point- Returns:
 - Icon representing a Point
 
 - 
polygon
- Specified by:
 polygonin interfaceGlyphFactory
 - 
swatch
- Specified by:
 swatchin interfaceGlyphFactory
 
 -