Class ExternalGraphicImpl

    • Method Detail

      • setURI

        public void setURI​(String uri)
        Description copied from interface: ExternalGraphic
        Converts a URI in a string to the location URL
        Specified by:
        setURI in interface ExternalGraphic
        uri - the uri of the external graphic
      • getURI

        public String getURI()
        Description copied from interface: ExternalGraphic
        Returns the un-parsed URI for the mark (useful if the uri is using transformations or relative locations)
        Specified by:
        getURI in interface ExternalGraphic
      • getFormat

        public String getFormat()
        Provides the format of the external graphic.
        Specified by:
        getFormat in interface ExternalGraphic
        The format of the external graphic. Reported as its MIME type in a String object.
      • setFormat

        public void setFormat​(String format)
        Setter for property Format.
        Specified by:
        setFormat in interface ExternalGraphic
        format - New value of property Format.
      • setLocation

        public void setLocation​(URL location)
        Setter for property location.
        Specified by:
        setLocation in interface ExternalGraphic
        location - New value of property location.
      • clone

        public Object clone()
        Returns a clone of the ExternalGraphic
        Specified by:
        clone in interface Cloneable
        clone in class Object
        A copy of this object.
        See Also:
      • hashCode

        public int hashCode()
        Generates a hashcode for the ExternalGraphic
        hashCode in class Object
        The hash code.
      • equals

        public boolean equals​(Object oth)
        Compares this ExternalGraphi with another.

        Two external graphics are equal if they have the same uri and format.

        equals in class Object
        oth - The other External graphic.
        True if this and the other external graphic are equal.
      • getOnlineResource

        public OnLineResource getOnlineResource()
        Description copied from interface: ExternalGraphic
        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.
        Specified by:
        getOnlineResource in interface ExternalGraphic
      • setOnlineResource

        public void setOnlineResource​(OnLineResource online)
      • setInlineContent

        public void setInlineContent​(Icon inlineContent)
      • getColorReplacements

        public Collection<ColorReplacement> getColorReplacements()
        Description copied from interface: ExternalGraphic
        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 .
        Specified by:
        getColorReplacements in interface ExternalGraphic