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 boolean
acceptChild
(@Nullable String id, @NotNull SVGNode node) Determine whether the container accepts thisSVGNode
as a child.final void
protected abstract void
doIntersect
(Category[] requested, Category[] provided) protected boolean
isAcceptableType
(@NotNull SVGNode node) Methods inherited from class com.github.weisj.jsvg.nodes.AbstractSVGNode
addContent, build, id, toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.github.weisj.jsvg.nodes.prototype.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 thisSVGNode
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 nodenode
- the node itself- Returns:
- whether the node can be inserted as a child.
-
isAcceptableType
-
doIntersect
private BaseContainerNode.CategoryCheckResult doIntersect(Category[] requested, Category[] provided)
-