Class Mask
- All Implemented Interfaces:
Container<SVGNode>, HasClip, HasContext, HasContext.ByDelegate, 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 HasContext
HasContext.ByDelegateNested classes/interfaces inherited from interface HasGeometryContext
HasGeometryContext.ByDelegate -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidbuild(@NotNull AttributeNode attributeNode) booleancanInstantiate(@NotNull SVGNode node) @NotNull PaintcreateMaskPaint(@NotNull Output output, @NotNull RenderContext context, @NotNull ElementBounds elementBounds) booleanIndicated whether the element can only be rendered through means of instantiation e.g.@NotNull StringtagName()Methods inherited from class CommonRenderableContainerNode
children, contextDelegate, doAdd, geometryContextDelegate, isVisible, renderMethods inherited from class BaseContainerNode
acceptChild, addChild, isAcceptableTypeMethods inherited from class AbstractSVGNode
addContent, id, toStringMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface Container
childrenOfTypeMethods inherited from interface HasContext.ByDelegate
fontRenderContext, fontSpec, paintContextMethods inherited from interface HasGeometryContext.ByDelegate
clipPath, filter, mask, transform, transformBox, transformOriginMethods inherited from interface Instantiator
createContextAttributesMethods inherited from interface Renderable
parseIsVisible, shouldEstablishChildContextMethods inherited from interface Transformable
applyTransform, effectiveTransform, 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:
buildin interfaceSVGNode- Overrides:
buildin 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:RenderableIndicated 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:
requiresInstantiationin interfaceRenderable- Returns:
- true if only rendered is instantiated.
-
canInstantiate
- Specified by:
canInstantiatein interfaceInstantiator
-