| java.lang.Object org.deegree.graphics.sld.ExternalGraphic
ExternalGraphic | public class ExternalGraphic implements Marshallable(Code) | | The ExternalGraphic element allows a reference to be made to an external graphic file with a Web
URL. The OnlineResource sub-element gives the URL and the Format sub-element identifies the
expected document MIME type of a successful fetch. Knowing the MIME type in advance allows the
styler to select the best- supported format from the list of URLs with equivalent content.
author: Andreas Poth author: last edited by: $Author: mschneider $ version: $Revision: 10547 $, $Date: 2008-03-11 01:40:28 -0700 (Tue, 11 Mar 2008) $ |
ExternalGraphic | ExternalGraphic(String format, URL onlineResource)(Code) | | Creates a new ExternalGraphic_Impl object.
Parameters: format - Parameters: onlineResource - |
exportAsXML | public String exportAsXML()(Code) | | exports the content of the ExternalGraphic as XML formated String
xml representation of the ExternalGraphic |
getAsImage | public BufferedImage getAsImage(int targetSizeX, int targetSizeY, Feature feature)(Code) | | returns the external graphic as an image. this method is not part of the sld specifications
but it is added for speed up applications
the external graphic as BufferedImage |
getFormat | public String getFormat()(Code) | | the Format sub-element identifies the expected document MIME type of a successful fetch.
Format of the external graphic |
getOnlineResource | public URL getOnlineResource()(Code) | | The OnlineResource gives the URL of the external graphic
URL of the external graphic |
setAsImage | public void setAsImage(BufferedImage image)(Code) | | sets the external graphic as an image.
Parameters: image - the external graphic as BufferedImage |
setFormat | public void setFormat(String format)(Code) | | sets the format (MIME type)
Parameters: format - Format of the external graphic |
setOnlineResource | public void setOnlineResource(URL onlineResource)(Code) | | sets the online resource / URL of the external graphic
Parameters: onlineResource - URL of the external graphic |
|
|