Class BaseContainerNode<E>

    • Field Detail

      • LOGGER

        private static final java.util.logging.Logger LOGGER
    • Constructor Detail

      • BaseContainerNode

        public BaseContainerNode()
    • Method Detail

      • addChild

        public final void addChild​(@Nullable
                                   @Nullable java.lang.String id,
                                   @NotNull
                                   @NotNull SVGNode node)
        Specified by:
        addChild in interface Container<E>
      • doAdd

        protected abstract void doAdd​(@NotNull
                                      @NotNull SVGNode node)
      • acceptChild

        protected boolean acceptChild​(@Nullable
                                      @Nullable java.lang.String id,
                                      @NotNull
                                      @NotNull SVGNode node)
        Determine whether the container accepts this SVGNode as a child. By default, this will always report true but subclasses may choose to reject certain types of nodes.
        Parameters:
        id - the id of the node
        node - the node itself
        Returns:
        whether the node can be inserted as a child.
      • isAcceptableType

        protected boolean isAcceptableType​(@NotNull
                                           @NotNull SVGNode node)