Package org.geotools.map.legend
Class DefaultGlyphFactory
- Object
- 
- DefaultGlyphFactory
 
- 
- All Implemented Interfaces:
- GlyphFactory
 
 public class DefaultGlyphFactory extends Object implements GlyphFactory 
- 
- 
Constructor SummaryConstructors Constructor Description DefaultGlyphFactory()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description Icongeometry(Color color, Color fill)Icongeometry(Rule rule)Icongrid(Color color1, Color color2, Color color3, Color color4)Iconicon(SimpleFeatureType schema)Make a basic representation of the provided FeatureType.Iconicon(Layer layer)Glyph for the provided layer.Iconline(Color line, int width)Produces a simple Icon representing a line.Iconline(Rule rule)Produce a simple Icon representing a point.Iconpalette(Color[] colors)Iconpoint(Color point, Color fill)Produce a simple Icon representing a point.Iconpoint(Rule rule)Produce a simple Icon representing a point.Iconpolygon(Color color, Color fill, int width)Iconpolygon(Rule rule)Iconswatch(Color color)
 
- 
- 
- 
Method Detail- 
iconpublic Icon icon(Layer layer) 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 interface- GlyphFactory
- Returns:
- Icon For the provided layer
 
 - 
polygonpublic Icon polygon(Rule rule) - Specified by:
- polygonin interface- GlyphFactory
 
 - 
geometrypublic Icon geometry(Color color, Color fill) - Specified by:
- geometryin interface- GlyphFactory
 
 - 
geometrypublic Icon geometry(Rule rule) - Specified by:
- geometryin interface- GlyphFactory
 
 - 
gridpublic Icon grid(Color color1, Color color2, Color color3, Color color4) - Specified by:
- gridin interface- GlyphFactory
 
 - 
iconpublic Icon icon(SimpleFeatureType schema) Description copied from interface:GlyphFactoryMake a basic representation of the provided FeatureType.- Specified by:
- iconin interface- GlyphFactory
 
 - 
linepublic Icon line(Color line, int width) Description copied from interface:GlyphFactoryProduces a simple Icon representing a line.- Specified by:
- linein interface- GlyphFactory
- Parameters:
- line- Line colour
- width- Line width
 
 - 
linepublic Icon line(Rule rule) 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 interface- GlyphFactory
- Parameters:
- rule- Rule used to render a Point
- Returns:
- Icon representing a Point
 
 - 
palettepublic Icon palette(Color[] colors) - Specified by:
- palettein interface- GlyphFactory
 
 - 
pointpublic Icon point(Color point, Color fill) Description copied from interface:GlyphFactoryProduce a simple Icon representing a point.- Specified by:
- pointin interface- GlyphFactory
- Parameters:
- point- Color of the Point
- fill- Color inside the Point
- Returns:
- Icon representing a Point
 
 - 
pointpublic Icon point(Rule rule) 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 interface- GlyphFactory
- Parameters:
- rule- Rule used to render a Point
- Returns:
- Icon representing a Point
 
 - 
polygonpublic Icon polygon(Color color, Color fill, int width) - Specified by:
- polygonin interface- GlyphFactory
 
 - 
swatchpublic Icon swatch(Color color) - Specified by:
- swatchin interface- GlyphFactory
 
 
- 
 
-