Class BaseContainerNode<E>
java.lang.Object
com.github.weisj.jsvg.nodes.AbstractSVGNode
com.github.weisj.jsvg.nodes.container.BaseContainerNode<E>
- Direct Known Subclasses:
CommonRenderableContainerNode,ContainerNode,Text,TextPath,TextSpan
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanacceptChild(@Nullable String id, @NotNull SVGNode node) Determine whether the container accepts thisSVGNodeas a child.final voidprotected abstract voidprotected booleanisAcceptableType(@NotNull SVGNode node) Methods inherited from class com.github.weisj.jsvg.nodes.AbstractSVGNode
addContent, build, id, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.github.weisj.jsvg.nodes.prototype.Container
children, childrenOfType
-
Constructor Details
-
BaseContainerNode
public BaseContainerNode()
-
-
Method Details
-
addChild
-
doAdd
-
acceptChild
Determine whether the container accepts thisSVGNodeas 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 nodenode- the node itself- Returns:
- whether the node can be inserted as a child.
-
isAcceptableType
-