org.geotools.renderer.style
Interface ExternalGraphicFactory

All Known Implementing Classes:
ChartGraphicFactory, ImageGraphicFactory, SVGGraphicFactory

public interface ExternalGraphicFactory

Symbol handler for an external symbolizers.


Method Summary
 javax.swing.Icon getIcon(org.opengis.feature.Feature feature, org.opengis.filter.expression.Expression url, java.lang.String format, int size)
          Turns the specified URL into an Icon, eventually using the Feature attributes to evaluate CQL expressions embedded in the url.
The size parameter defines the size of the image (so that vector based symbols can be drawn at the specified size directly), or may be zero or negative if the size was not specified (in that case the "natural" size of the image will be used, which is the size in pixels for raster images, and 16 for any format that does not have a specific size, according to the SLD spec).
null will be returned if this factory cannot handle the provided url.
 

Method Detail

getIcon

javax.swing.Icon getIcon(org.opengis.feature.Feature feature,
                         org.opengis.filter.expression.Expression url,
                         java.lang.String format,
                         int size)
                         throws java.lang.Exception
Turns the specified URL into an Icon, eventually using the Feature attributes to evaluate CQL expressions embedded in the url.
The size parameter defines the size of the image (so that vector based symbols can be drawn at the specified size directly), or may be zero or negative if the size was not specified (in that case the "natural" size of the image will be used, which is the size in pixels for raster images, and 16 for any format that does not have a specific size, according to the SLD spec).
null will be returned if this factory cannot handle the provided url.

Throws:
java.lang.Exception


Copyright © 1996-2010 Geotools. All Rights Reserved.