Package com.github.weisj.jsvg.nodes
Class Mask
- All Implemented Interfaces:
Container<SVGNode>
,HasClip
,HasContext
,HasContext.ByDelegate
,HasFillRule
,HasFilter
,HasFontContext
,HasFontRenderContext
,HasGeometryContext
,HasGeometryContext.ByDelegate
,HasPaintContext
,Instantiator
,Renderable
,Transformable
,SVGNode
@ElementCategories(Container)
@PermittedContent(categories={Animation,Descriptive,Shape,Structural,Gradient},
anyOf={Anchor.class,ClipPath.class,Filter.class,Image.class,Marker.class,Mask.class,Pattern.class,Style.class,Text.class,View.class})
public final class Mask
extends CommonRenderableContainerNode
implements Instantiator
-
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 -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
build
(@NotNull AttributeNode attributeNode) boolean
canInstantiate
(@NotNull SVGNode node) @NotNull Paint
createMaskPaint
(@NotNull Output output, @NotNull RenderContext context, @NotNull ElementBounds elementBounds) boolean
Indicated whether the element can only be rendered through means of instantiation e.g.@NotNull String
tagName()
Methods inherited from class com.github.weisj.jsvg.nodes.container.CommonRenderableContainerNode
children, contextDelegate, doAdd, geometryContextDelegate, isVisible, render
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
fillRule, fontRenderContext, fontSpec, paintContext
Methods inherited from interface com.github.weisj.jsvg.nodes.prototype.HasGeometryContext.ByDelegate
clipPath, filter, mask, transform, transformOrigin
Methods inherited from interface com.github.weisj.jsvg.nodes.prototype.Instantiator
createContextAttributes
Methods inherited from interface com.github.weisj.jsvg.nodes.prototype.Renderable
parseIsVisible, shouldEstablishChildContext
Methods inherited from interface com.github.weisj.jsvg.nodes.prototype.Transformable
applyTransform, shouldTransform, transformShape
-
Field Details
-
DEBUG
private static final boolean DEBUG- See Also:
-
TAG
- See Also:
-
surfaceSupplier
-
x
-
y
-
width
-
height
-
maskContentUnits
-
maskUnits
-
-
Constructor Details
-
Mask
public Mask()
-
-
Method Details
-
tagName
-
build
- Specified by:
build
in interfaceSVGNode
- Overrides:
build
in classCommonRenderableContainerNode
-
createMaskPaint
@NotNull public @NotNull Paint createMaskPaint(@NotNull @NotNull Output output, @NotNull @NotNull RenderContext context, @NotNull @NotNull ElementBounds elementBounds) -
requiresInstantiation
public boolean requiresInstantiation()Description copied from interface:Renderable
Indicated whether the element can only be rendered through means of instantiation e.g. being referenced in a use tag. Instantiation doesn't create a new element it only controls, when an element can be rendered.- Specified by:
requiresInstantiation
in interfaceRenderable
- Returns:
- true if only rendered is instantiated.
-
canInstantiate
- Specified by:
canInstantiate
in interfaceInstantiator
-