Interface Container<E>

Type Parameters:
E - the type of the exposed children. This doesn't need to be a subtype of SVGNode.
All Known Subinterfaces:
ShapedContainer<E>
All Known Implementing Classes:
AbstractGradient, Anchor, BaseContainerNode, BaseInnerViewContainer, ClipPath, CommonInnerViewContainer, CommonRenderableContainerNode, ContainerNode, Defs, FeComponentTransfer, FeMerge, Filter, Group, LinearGradient, LinearTextContainer, Marker, Mask, MeshGradient, MeshPatch, MeshRow, Pattern, RadialGradient, SVG, Symbol, Text, TextContainer, TextPath, TextSpan

public interface Container<E>
Represents a container svg element.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    addChild(@Nullable String id, @NotNull SVGNode node)
     
    List<? extends @NotNull E>
    Return all children of this container.
    default <T extends E>
    List<@NotNull T>
     
  • Method Details

    • addChild

      @Internal void addChild(@Nullable @Nullable String id, @NotNull @NotNull SVGNode node)
    • children

      List<? extends @NotNull E> children()
      Return all children of this container. Note that the return type of this function internationally contains a wild card to make it a compilation error trying to modify it.
      Returns:
      the list of children.
    • childrenOfType

      default <T extends E> List<@NotNull T> childrenOfType(Class<T> type)