org.opengis.sld
Interface ExternalGraphic
-
- All Superinterfaces:
- ExternalGraphicOrMark
@XmlElement(value="ExternalGraphic") public interface ExternalGraphic extends ExternalGraphicOrMark
Points to an external file that contains an image of some kind, such as a CGM, JPG, or SVG.- Since:
- GeoAPI 2.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method and Description java.lang.StringgetFormat()Returns the format that the image should be parsed as.byte[]getInlineContent()Returns the array of bytes that comprise the image.java.lang.StringgetOnlineResource()Returns a URL to a file (perhaps a local file) that contains an image.voidsetFormat(java.lang.String format)Sets the format that the image should be parsed as.voidsetInlineContent(byte[] content)Sets the array of bytes that comprise the image.voidsetOnlineResource(java.lang.String url)Sets the URL to a file (perhaps a local file) that contains an image.-
Methods inherited from interface org.opengis.sld.ExternalGraphicOrMark
accept
-
-
-
-
Method Detail
-
getOnlineResource
@XmlElement(value="OnlineResource") java.lang.String getOnlineResource()
Returns a URL to a file (perhaps a local file) that contains an image. This can be null if the image is already loaded locally and theInlineContentproperty is set.
-
setOnlineResource
@XmlElement(value="OnlineResource") void setOnlineResource(java.lang.String url)
Sets the URL to a file (perhaps a local file) that contains an image. SeegetOnlineResource()for details.
-
getInlineContent
byte[] getInlineContent()
Returns the array of bytes that comprise the image. This overrides theOnlineResourceproperty, if it is set.
-
setInlineContent
void setInlineContent(byte[] content)
Sets the array of bytes that comprise the image. SeegetInlineContent()for details.
-
getFormat
java.lang.String getFormat()
Returns the format that the image should be parsed as. This can be null if the rendering engine should attempt to guess the format of the file, perhaps based on its name. The format string is a mime type, such as "image/jpeg".
-
setFormat
void setFormat(java.lang.String format)
Sets the format that the image should be parsed as. SeegetFormat()for details.
-
-
DataMelt 3.0 © DataMelt by jWork.ORG