Interface Container<E>
-
- Type Parameters:
E
- the type of the exposed children. This doesn't need to be a subtype ofSVGNode
.
- 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
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description void
addChild(@Nullable java.lang.String id, @NotNull SVGNode node)
java.util.List<? extends @NotNull E>
children()
Return all children of this container.default <T extends E>
java.util.List<@NotNull T>childrenOfType(java.lang.Class<T> type)
-
-
-
Method Detail
-
addChild
@Internal void addChild(@Nullable @Nullable java.lang.String id, @NotNull @NotNull SVGNode node)
-
children
java.util.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> java.util.List<@NotNull T> childrenOfType(java.lang.Class<T> type)
-
-