Package com.github.weisj.jsvg.nodes
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 com.github.weisj.jsvg.nodes.prototype.HasShape
HasShape.Box
-
-
Field Summary
Fields Modifier and Type Field Description private UnitType
clipPathUnits
private static boolean
DEBUG
private boolean
isValid
private CachedSurfaceSupplier
surfaceSupplier
static java.lang.String
TAG
-
Constructor Summary
Constructors Constructor Description ClipPath()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
applyClip(@NotNull Output output, @NotNull RenderContext context, @NotNull ElementBounds elementBounds)
void
build(@NotNull AttributeNode attributeNode)
private boolean
checkIsValid()
@NotNull java.awt.Shape
clipShape(@NotNull RenderContext context, @NotNull ElementBounds elementBounds, boolean useSoftClip)
@NotNull java.awt.Paint
createPaintForSoftClipping(@NotNull Output output, @NotNull RenderContext context, @NotNull ElementBounds elementBounds, @NotNull java.awt.Shape clipShape)
boolean
isValid()
@NotNull java.lang.String
tagName()
-
Methods inherited from class com.github.weisj.jsvg.nodes.container.ContainerNode
children, doAdd
-
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
addChild, children, childrenOfType
-
Methods inherited from interface com.github.weisj.jsvg.nodes.prototype.HasShape
elementBounds, elementShape
-
Methods inherited from interface com.github.weisj.jsvg.nodes.prototype.ShapedContainer
untransformedElementBounds, untransformedElementShape
-
-
-
-
Field Detail
-
DEBUG
private static final boolean DEBUG
- See Also:
- Constant Field Values
-
TAG
public static final java.lang.String TAG
- See Also:
- Constant Field Values
-
surfaceSupplier
private final CachedSurfaceSupplier surfaceSupplier
-
isValid
private boolean isValid
-
clipPathUnits
private UnitType clipPathUnits
-
-
Method Detail
-
tagName
@NotNull public @NotNull java.lang.String tagName()
-
isValid
public boolean isValid()
-
build
public void build(@NotNull @NotNull AttributeNode attributeNode)
- Specified by:
build
in interfaceSVGNode
- Overrides:
build
in classAbstractSVGNode
-
checkIsValid
private boolean checkIsValid()
-
clipShape
@NotNull public @NotNull java.awt.Shape clipShape(@NotNull @NotNull RenderContext context, @NotNull @NotNull ElementBounds elementBounds, boolean useSoftClip)
-
createPaintForSoftClipping
@NotNull public @NotNull java.awt.Paint createPaintForSoftClipping(@NotNull @NotNull Output output, @NotNull @NotNull RenderContext context, @NotNull @NotNull ElementBounds elementBounds, @NotNull @NotNull java.awt.Shape clipShape)
-
applyClip
public void applyClip(@NotNull @NotNull Output output, @NotNull @NotNull RenderContext context, @NotNull @NotNull ElementBounds elementBounds)
-
-