org.deegree.graphics.sld
Interface ExternalGraphic

All Known Implementing Classes:
ExternalGraphic_Impl

public interface ExternalGraphic

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.

----------------------------------------------------------------------

Version:
$Revision: 1.2 $ $Date: 2004/01/12 14:48:13 $
Author:
Andreas Poth

Method Summary
 java.awt.image.BufferedImage getAsImage()
          returns the external graphic as an image. this method is not part of the sld specifications but it is added for speed up applications
 java.lang.String getFormat()
          the Format sub-element identifies the expected document MIME type of a successful fetch.
 java.net.URL getOnlineResource()
          The OnlineResource gives the URL of the external graphic
 void setAsImage(java.awt.image.BufferedImage image)
          sets the external graphic as an image.
 void setFormat(java.lang.String format)
          the Format sub-element identifies the expected document MIME type of a successful fetch.
 void setOnlineResource(java.net.URL onlineResource)
          The OnlineResource gives the URL of the external graphic This method sets the OnlineRessource of an ExternalGraphic.
 

Method Detail

getFormat

public java.lang.String getFormat()
the Format sub-element identifies the expected document MIME type of a successful fetch.

Returns:
Format of the external graphic

setFormat

public void setFormat(java.lang.String format)
the Format sub-element identifies the expected document MIME type of a successful fetch. This method sets the format of an ExternalGraphic.

Parameters:
format - Format of the external graphic

getOnlineResource

public java.net.URL getOnlineResource()
The OnlineResource gives the URL of the external graphic

Returns:
URL of the external graphic

setOnlineResource

public void setOnlineResource(java.net.URL onlineResource)
The OnlineResource gives the URL of the external graphic This method sets the OnlineRessource of an ExternalGraphic.

Parameters:
onlineResource - URL of the external graphic

getAsImage

public java.awt.image.BufferedImage getAsImage()
returns the external graphic as an image. this method is not part of the sld specifications but it is added for speed up applications

Returns:
the external graphic as BufferedImage

setAsImage

public void setAsImage(java.awt.image.BufferedImage image)
sets the external graphic as an image.

Parameters:
image - the external graphic as BufferedImage