/*$************************************************************************************************
**
** $Id: ExternalGraphic.java 831 2006-05-01 00:27:23Z Desruisseaux $
**
** $URL: http://svn.code.sf.net/p/geoapi/code/branches/2.0.x/geoapi/src/main/java/org/opengis/sld/ExternalGraphic.java $
**
** Copyright (C) 2005 Open GIS Consortium, Inc.
** All Rights Reserved. http://www.opengis.org/legal/
**
*************************************************************************************************/
package org.opengis.sld;
// Annotations
import org.opengis.annotation.XmlElement;
/**
* Points to an external file that contains an image of some kind, such as a CGM, JPG, or SVG.
*
* @version Implementation specification 1.0
* @author Chris Dillard (SYS Technologies)
* @since GeoAPI 2.0
*/
@XmlElement("ExternalGraphic")
public interface ExternalGraphic extends ExternalGraphicOrMark {
/**
* 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 the
* {@link #getInlineContent InlineContent} property is set.
*/
@XmlElement("OnlineResource")
String getOnlineResource();
/**
* Sets the URL to a file (perhaps a local file) that contains an image.
* See {@link #getOnlineResource} for details.
*/
@XmlElement("OnlineResource")
void setOnlineResource(String url);
/**
* Returns the array of bytes that comprise the image. This overrides the
* {@link #getOnlineResource OnlineResource} property, if it is set.
*/
byte[] getInlineContent();
/**
* Sets the array of bytes that comprise the image.
* See {@link #getInlineContent} for details.
*/
void setInlineContent(byte[] content);
/**
* 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".
*/
String getFormat();
/**
* Sets the format that the image should be parsed as.
* See {@link #getFormat} for details.
*/
void setFormat(String format);
}
Ads help maintain this website.