|
deegree 2.5 (2011/06/29 09:44 build-8-official) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.deegree.graphics.sld.ExternalGraphic
public class 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.
| Constructor Summary | |
|---|---|
ExternalGraphic(java.lang.String format,
java.net.URL onlineResource)
Creates a new ExternalGraphic_Impl object. |
|
| Method Summary | |
|---|---|
java.lang.String |
exportAsXML()
exports the content of the ExternalGraphic as XML formated String |
java.awt.image.BufferedImage |
getAsImage(int targetSizeX,
int targetSizeY,
Feature feature)
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)
sets the format (MIME type) |
void |
setOnlineResource(java.net.URL onlineResource)
sets the online resource / URL of the external graphic |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
ExternalGraphic(java.lang.String format,
java.net.URL onlineResource)
format - onlineResource - | Method Detail |
|---|
public java.lang.String getFormat()
public void setFormat(java.lang.String format)
format - Format of the external graphicpublic java.net.URL getOnlineResource()
public void setOnlineResource(java.net.URL onlineResource)
onlineResource - URL of the external graphic
public java.awt.image.BufferedImage getAsImage(int targetSizeX,
int targetSizeY,
Feature feature)
targetSizeX - targetSizeY - feature -
public void setAsImage(java.awt.image.BufferedImage image)
image - the external graphic as BufferedImagepublic java.lang.String exportAsXML()
exportAsXML in interface Marshallable
|
deegree 2.5 (2011/06/29 09:44 build-8-official) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
an open source project founded by lat/lon, Bonn, Germany.
For more information visit: http://www.deegree.org