Class ClipPath
java.lang.Object
com.github.weisj.jsvg.nodes.AbstractSVGNode
com.github.weisj.jsvg.nodes.container.BaseContainerNode<SVGNode>
com.github.weisj.jsvg.nodes.container.ContainerNode
com.github.weisj.jsvg.nodes.ClipPath
@ElementCategories({})
@PermittedContent(categories={Animation,Descriptive,Shape},
anyOf={Use.class,Text.class})
public final class ClipPath
extends ContainerNode
implements ShapedContainer<SVGNode>
-
Nested Class Summary
Nested classes/interfaces inherited from interface HasShape
HasShape.Box -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate UnitTypeprivate static final booleanprivate booleanprivate final CachedSurfaceSupplierstatic final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidapplyClip(@NotNull Output output, @NotNull RenderContext context, @NotNull ElementBounds elementBounds) voidbuild(@NotNull AttributeNode attributeNode) private boolean@NotNull ShapeclipShape(@NotNull RenderContext context, @NotNull ElementBounds elementBounds, boolean useSoftClip) @NotNull PaintcreatePaintForSoftClipping(@NotNull Output output, @NotNull RenderContext context, @NotNull ElementBounds elementBounds, @NotNull Shape clipShape) booleanisValid()@NotNull StringtagName()Methods inherited from class ContainerNode
children, doAddMethods 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
addChild, children, childrenOfTypeMethods inherited from interface HasShape
elementBounds, elementShapeMethods inherited from interface ShapedContainer
untransformedElementBounds, untransformedElementShapeMethods inherited from interface SVGNode
addContent, id
-
Field Details
-
DEBUG
private static final boolean DEBUG- See Also:
-
TAG
- See Also:
-
surfaceSupplier
-
isValid
private boolean isValid -
clipPathUnits
-
-
Constructor Details
-
ClipPath
public ClipPath()
-
-
Method Details
-
tagName
-
isValid
public boolean isValid() -
build
- Specified by:
buildin interfaceSVGNode- Overrides:
buildin classAbstractSVGNode
-
checkIsValid
private boolean checkIsValid() -
clipShape
@NotNull public @NotNull Shape clipShape(@NotNull @NotNull RenderContext context, @NotNull @NotNull ElementBounds elementBounds, boolean useSoftClip) -
createPaintForSoftClipping
@NotNull public @NotNull Paint createPaintForSoftClipping(@NotNull @NotNull Output output, @NotNull @NotNull RenderContext context, @NotNull @NotNull ElementBounds elementBounds, @NotNull @NotNull Shape clipShape) -
applyClip
public void applyClip(@NotNull @NotNull Output output, @NotNull @NotNull RenderContext context, @NotNull @NotNull ElementBounds elementBounds)
-