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, TextContainer
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
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 voiddoIntersect(Category[] requested, Category[] provided) protected booleanisAcceptableType(@NotNull SVGNode node) Methods inherited from class AbstractSVGNode
addContent, build, id, toStringMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface Container
children, childrenOfType
-
Field Details
-
EXHAUSTIVE_CHECK
private static final boolean EXHAUSTIVE_CHECK- See Also:
-
LOGGER
-
-
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
-
doIntersect
private BaseContainerNode.CategoryCheckResult doIntersect(Category[] requested, Category[] provided)
-