Package com.github.weisj.jsvg.nodes
Class LinearGradient
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.LinearGradient
@ElementCategories(Gradient)
@PermittedContent(categories=Descriptive,
anyOf={Stop.class,Animate.class,AnimateTransform.class,Set.class})
public final class LinearGradient
extends ContainerNode
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected TransformValueprotected UnitTypeprotected SpreadMethodstatic final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal voidbuild(@NotNull AttributeNode attributeNode) protected voidbuildGradient(@NotNull AttributeNode attributeNode, @Nullable LinearGradient template) final @NotNull Color[]colors()protected final @NotNull AffineTransformcomputeViewTransform(@NotNull MeasureContext measure, @NotNull Rectangle2D bounds) voiddrawShape(@NotNull Output output, @NotNull RenderContext context, @NotNull Shape shape, @Nullable Rectangle2D bounds) voidfillShape(@NotNull Output output, @NotNull RenderContext context, @NotNull Shape shape, @Nullable Rectangle2D bounds) protected @NotNull PaintgradientForBounds(@NotNull MeasureContext measure, @NotNull Rectangle2D bounds, Percentage[] gradOffsets, @NotNull Color[] gradColors) final Percentage[]offsets()protected float[]offsetsToFractions(Percentage[] gradOffsets) @NotNull StringtagName()toString()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
idMethods 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
childrenOfTypeMethods inherited from interface com.github.weisj.jsvg.nodes.SVGNode
addContent
-
Field Details
-
TAG
- See Also:
-
gradientTransform
-
gradientUnits
-
spreadMethod
-
-
Constructor Details
-
LinearGradient
public LinearGradient()
-
-
Method Details
-
tagName
-
buildGradient
protected void buildGradient(@NotNull @NotNull AttributeNode attributeNode, @Nullable @Nullable LinearGradient template) -
gradientForBounds
@NotNull protected @NotNull Paint gradientForBounds(@NotNull @NotNull MeasureContext measure, @NotNull @NotNull Rectangle2D bounds, Percentage[] gradOffsets, @NotNull @NotNull Color[] gradColors) -
toString
- Overrides:
toStringin classAbstractSVGNode
-
offsets
-
colors
-
build
- Specified by:
buildin interfaceSVGNode- Overrides:
buildin classAbstractSVGNode
-
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) -
offsetsToFractions
-
computeViewTransform
@NotNull protected final @NotNull AffineTransform computeViewTransform(@NotNull @NotNull MeasureContext measure, @NotNull @NotNull Rectangle2D bounds)
-