Class MetaSVGNode

  • All Implemented Interfaces:
    SVGNode
    Direct Known Subclasses:
    Animate, AnimateTransform, Desc, Metadata, Set, Style, Title, View

    public abstract class MetaSVGNode
    extends java.lang.Object
    implements SVGNode
    Even though elements of this type can have an id, it doesn't provide any benefit as you can't do anything with it (per contract of subclassing this type).

    Note: Subclasses of this type may accept child nodes. Nonetheless, this isn't a container type as there is no reason to keep meta information for rendering. Any child elements with an "id" will be kept by the loader for resolving during build time and discarded if unused.

    • Constructor Summary

      Constructors 
      Constructor Description
      MetaSVGNode()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addContent​(char[] content)  
      void build​(@NotNull AttributeNode attributeNode)  
      @Nullable java.lang.String id()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface com.github.weisj.jsvg.nodes.SVGNode

        tagName
    • Constructor Detail

      • MetaSVGNode

        public MetaSVGNode()
    • Method Detail

      • id

        @Nullable
        public @Nullable java.lang.String id()
        Specified by:
        id in interface SVGNode
      • addContent

        public void addContent​(char[] content)
        Specified by:
        addContent in interface SVGNode