Module com.github.weisj.jsvg
Class CommonRenderableContainerNode
- java.lang.Object
-
- com.github.weisj.jsvg.nodes.AbstractSVGNode
-
- com.github.weisj.jsvg.nodes.container.BaseContainerNode<SVGNode>
-
- com.github.weisj.jsvg.nodes.container.CommonRenderableContainerNode
-
- All Implemented Interfaces:
Container<SVGNode>,HasClip,HasContext,HasContext.ByDelegate,HasFilter,HasFontContext,HasFontRenderContext,HasGeometryContext,HasGeometryContext.ByDelegate,HasPaintContext,Renderable,Transformable,SVGNode
- Direct Known Subclasses:
Anchor,BaseInnerViewContainer,Group,Mask
public abstract class CommonRenderableContainerNode extends BaseContainerNode<SVGNode> implements Renderable, HasGeometryContext.ByDelegate, HasContext.ByDelegate
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.github.weisj.jsvg.nodes.prototype.HasContext
HasContext.ByDelegate
-
Nested classes/interfaces inherited from interface com.github.weisj.jsvg.nodes.prototype.HasGeometryContext
HasGeometryContext.ByDelegate
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.List<@NotNull SVGNode>childrenprivate HasContextcontextprivate HasGeometryContextgeometryContextprivate booleanisVisible
-
Constructor Summary
Constructors Constructor Description CommonRenderableContainerNode()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidbuild(@NotNull AttributeNode attributeNode)java.util.List<? extends @NotNull SVGNode>children()Return all children of this container.@NotNull HasContextcontextDelegate()protected voiddoAdd(@NotNull SVGNode node)@NotNull HasGeometryContextgeometryContextDelegate()booleanisVisible(@NotNull RenderContext context)voidrender(@NotNull RenderContext context, @NotNull Output output)-
Methods inherited from class com.github.weisj.jsvg.nodes.container.BaseContainerNode
acceptChild, addChild, isAcceptableType
-
Methods inherited from class com.github.weisj.jsvg.nodes.AbstractSVGNode
addContent, 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
childrenOfType
-
Methods inherited from interface com.github.weisj.jsvg.nodes.prototype.HasContext.ByDelegate
fontRenderContext, fontSpec, paintContext
-
Methods inherited from interface com.github.weisj.jsvg.nodes.prototype.HasGeometryContext.ByDelegate
clipPath, filter, mask, transform, transformBox, transformOrigin
-
Methods inherited from interface com.github.weisj.jsvg.nodes.prototype.Renderable
parseIsVisible, requiresInstantiation, shouldEstablishChildContext
-
Methods inherited from interface com.github.weisj.jsvg.nodes.prototype.Transformable
applyTransform, effectiveTransform, shouldTransform, transformShape
-
-
-
-
Field Detail
-
children
private final java.util.List<@NotNull SVGNode> children
-
isVisible
private boolean isVisible
-
geometryContext
private HasGeometryContext geometryContext
-
context
private HasContext context
-
-
Method Detail
-
build
@MustBeInvokedByOverriders public void build(@NotNull @NotNull AttributeNode attributeNode)- Specified by:
buildin interfaceSVGNode- Overrides:
buildin classAbstractSVGNode
-
geometryContextDelegate
@NotNull public @NotNull HasGeometryContext geometryContextDelegate()
- Specified by:
geometryContextDelegatein interfaceHasGeometryContext.ByDelegate
-
contextDelegate
@NotNull public @NotNull HasContext contextDelegate()
- Specified by:
contextDelegatein interfaceHasContext.ByDelegate
-
doAdd
protected void doAdd(@NotNull @NotNull SVGNode node)- Specified by:
doAddin classBaseContainerNode<SVGNode>
-
children
public java.util.List<? extends @NotNull SVGNode> children()
Description copied from interface:ContainerReturn 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.
-
render
public void render(@NotNull @NotNull RenderContext context, @NotNull @NotNull Output output)- Specified by:
renderin interfaceRenderable
-
isVisible
public boolean isVisible(@NotNull @NotNull RenderContext context)- Specified by:
isVisiblein interfaceRenderable
-
-