org.opengis.style
Interface ExternalGraphic

All Superinterfaces:
GraphicalSymbol
All Known Subinterfaces:
ExternalGraphic
All Known Implementing Classes:
ExternalGraphicImpl

@XmlElement(value="ExternalGraphic")
public interface ExternalGraphic
extends GraphicalSymbol

Points to an external file that contains an image of some kind, such as a CGM, JPG, or SVG.

Since:
GeoAPI 2.2
Author:
Open Geospatial Consortium, Johann Sorel (Geomatys), Chris Dillard (SYS Technologies)

Method Summary
 Object accept(StyleVisitor visitor, Object extraData)
          calls the visit method of a StyleVisitor
 Collection<ColorReplacement> getColorReplacements()
          The ColorReplacement element, which may occur multiple times, allows to replace a color in the ExternalGraphic, the color specified in the OriginalColor sub-element, by another color as a result of a recode function as defined in Interpolate .
 String getFormat()
          Returns the mime type of the onlineResource/InlineContent
 Icon getInlineContent()
          Returns the InlineContent that comprise the image.
 OnLineResource getOnlineResource()
          Returns a OnlineResource to a file (perhaps a local file) that contains an image.
 

Method Detail

getOnlineResource

@XmlElement(value="OnlineResource")
OnLineResource getOnlineResource()
Returns a OnlineResource to a file (perhaps a local file) that contains an image. This can be null if the image is already loaded locally and the InlineContent property is set.

Returns:
OnlineResource

getInlineContent

@XmlElement(value="InlineContent")
Icon getInlineContent()
Returns the InlineContent that comprise the image. This overrides the OnlineResource property, if it is set.

Returns:

getFormat

@XmlElement(value="Format")
String getFormat()
Returns the mime type of the onlineResource/InlineContent

Returns:
mime type

getColorReplacements

@XmlElement(value="ColorReplacement")
Collection<ColorReplacement> getColorReplacements()
The ColorReplacement element, which may occur multiple times, allows to replace a color in the ExternalGraphic, the color specified in the OriginalColor sub-element, by another color as a result of a recode function as defined in Interpolate .


accept

@Extension
Object accept(StyleVisitor visitor,
                        Object extraData)
calls the visit method of a StyleVisitor

Parameters:
visitor - the style visitor


Copyright © 1996-2014 Geotools. All Rights Reserved.