Package com.github.weisj.jsvg.nodes.mesh
Class MeshGradient
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)
public final class MeshGradient
extends ContainerNode
implements SVGPaint
-
Field Summary
FieldsFields 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 TypeMethodDescriptionvoidbuild(@NotNull AttributeNode attributeNode)voiddrawShape(@NotNull Graphics2D g, @NotNull MeasureContext measure, @NotNull Shape shape, @Nullable Rectangle2D bounds)voidfillShape(@NotNull Graphics2D g, @NotNull MeasureContext measure, @NotNull Shape shape, @Nullable Rectangle2D bounds)voidrenderMesh(@NotNull MeasureContext measure, @NotNull Graphics2D g)@NotNull StringtagName()Methods inherited from class com.github.weisj.jsvg.nodes.container.ContainerNode
children, doAddMethods inherited from class com.github.weisj.jsvg.nodes.container.BaseContainerNode
acceptChild, addChild, isAcceptableTypeMethods inherited from class com.github.weisj.jsvg.nodes.AbstractSVGNode
addContent, id, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.github.weisj.jsvg.nodes.prototype.Container
childrenOfType
-
Field Details
-
TAG
- See Also:
- Constant Field Values
-
-
Constructor Details
-
MeshGradient
public MeshGradient()
-
-
Method Details
-
tagName
-
build
- Specified by:
buildin interfaceSVGNode- Overrides:
buildin classAbstractSVGNode
-
renderMesh
-
fillShape
public void fillShape(@NotNull @NotNull Graphics2D g, @NotNull @NotNull MeasureContext measure, @NotNull @NotNull Shape shape, @Nullable @Nullable Rectangle2D bounds) -
drawShape
public void drawShape(@NotNull @NotNull Graphics2D g, @NotNull @NotNull MeasureContext measure, @NotNull @NotNull Shape shape, @Nullable @Nullable Rectangle2D bounds)
-