|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.geotools.renderer.style.ImageGraphicFactory
public class ImageGraphicFactory
External graphic factory accepting an Expression that can be evaluated to a
URL pointing to a image file. The format
must be one of the
mime types supported by the current JDK.
Constructor Summary | |
---|---|
ImageGraphicFactory()
|
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. |
java.util.Set<java.lang.String> |
getSupportedMimeTypes()
Returs the set of mime types supported by this factory |
static void |
resetCache()
Images are cached by the factory, this method can be used to drop the cache |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ImageGraphicFactory()
Method Detail |
---|
public 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
ExternalGraphicFactory
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.
getIcon
in interface ExternalGraphicFactory
java.lang.Exception
public java.util.Set<java.lang.String> getSupportedMimeTypes()
public static void resetCache()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |