Interface ExternalGraphic

  • All Superinterfaces:
    GraphicalSymbol

    @XmlElement("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
    • Method Detail

      • getOnlineResource

        @XmlElement("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.
      • getInlineContent

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

        @XmlElement("Format")
        String getFormat()
        Returns the mime type of the onlineResource/InlineContent
        Returns:
        mime type
      • getColorReplacements

        @XmlElement("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

        Object accept​(StyleVisitor visitor,
                      Object extraData)
        calls the visit method of a StyleVisitor
        Parameters:
        visitor - the style visitor