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.mesh.MeshGradient
@ElementCategories(Gradient)
@PermittedContent(categories=Descriptive,
anyOf={MeshRow.class,Animate.class,AnimateTransform.class,Set.class})
public final class MeshGradient
extends ContainerNode
implements SVGPaint
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate UnitType
static final String
private Length
private Length
Fields inherited from interface com.github.weisj.jsvg.attributes.paint.SVGPaint
CONTEXT_FILL, CONTEXT_STROKE, CURRENT_COLOR, DEFAULT_PAINT, NONE
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
build
(@NotNull AttributeNode attributeNode) void
drawShape
(@NotNull Output output, @NotNull RenderContext context, @NotNull Shape shape, @Nullable Rectangle2D bounds) void
fillShape
(@NotNull Output output, @NotNull RenderContext context, @NotNull Shape shape, @Nullable Rectangle2D bounds) void
renderMesh
(@NotNull MeasureContext measure, @NotNull Output output) @NotNull 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
childrenOfType
-
Field Details
-
TAG
- See Also:
-
x
-
y
-
gradientUnits
-
-
Constructor Details
-
MeshGradient
public MeshGradient()
-
-
Method Details
-
tagName
-
build
- Specified by:
build
in interfaceSVGNode
- Overrides:
build
in classAbstractSVGNode
-
renderMesh
-
fillShape
public void fillShape(@NotNull @NotNull Output output, @NotNull @NotNull RenderContext context, @NotNull @NotNull Shape shape, @Nullable @Nullable Rectangle2D bounds) -
drawShape
public void drawShape(@NotNull @NotNull Output output, @NotNull @NotNull RenderContext context, @NotNull @NotNull Shape shape, @Nullable @Nullable Rectangle2D bounds)
-