Class SvgElement

  • Direct Known Subclasses:
    SvgGradient, SvgGradientStop, SvgGraphic, SvgStyle

    public abstract class SvgElement
    extends java.lang.Object
    An svg document is an xml document. As such, all contained xml elements are also svg elements. SvgElement is the base abstract class for all svg elements in an SvgDocument.
    • Field Detail

      • id

        private java.lang.String id
    • Constructor Detail

      • SvgElement

        SvgElement​(SvgContainer container,
                   java.lang.String id)
    • Method Detail

      • getElement

        SvgElement getElement​(java.lang.String id)
      • getId

        public final java.lang.String getId()
        Return the id of this SvgElement, if it exists.
        Returns:
        the id of the element if it exists, null otherwise.
      • getViewport

        float[] getViewport()
      • setContainer

        void setContainer​(SvgContainer container)