Class MetaSVGNode

java.lang.Object
com.github.weisj.jsvg.nodes.MetaSVGNode
All Implemented Interfaces:
SVGNode
Direct Known Subclasses:
Animate, AnimateTransform, Desc, Metadata, Set, Style, Title, View

public abstract class MetaSVGNode extends 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 Details

    • MetaSVGNode

      public MetaSVGNode()
  • Method Details

    • id

      @Nullable public @Nullable String id()
      Specified by:
      id in interface SVGNode
    • build

      public void build(@NotNull @NotNull AttributeNode attributeNode)
      Specified by:
      build in interface SVGNode
    • addContent

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