@ElementCategories(Gradient)
@PermittedContent(categories=Descriptive,
anyOf={Stop.class,Animate.class,AnimateTransform.class,Set.class})
public final class LinearGradient
extends AbstractGradient<LinearGradient>
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
private Length
private Length
private Length
private Length
Fields inherited from class com.github.weisj.jsvg.nodes.AbstractGradient
gradientTransform, gradientUnits, spreadMethod
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 TypeMethodDescriptionprotected void
buildGradient
(@NotNull AttributeNode attributeNode, @Nullable LinearGradient template) protected @NotNull Paint
gradientForBounds
(@NotNull MeasureContext measure, @NotNull Rectangle2D bounds, float[] gradOffsets, @NotNull Color[] gradColors) @NotNull String
tagName()
toString()
Methods inherited from class com.github.weisj.jsvg.nodes.AbstractGradient
build, colors, computeViewTransform, drawShape, fillShape, offsets
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
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:
-
x1
-
x2
-
y1
-
y2
-
-
Constructor Details
-
LinearGradient
public LinearGradient()
-
-
Method Details
-
tagName
-
buildGradient
protected void buildGradient(@NotNull @NotNull AttributeNode attributeNode, @Nullable @Nullable LinearGradient template) - Specified by:
buildGradient
in classAbstractGradient<LinearGradient>
-
gradientForBounds
@NotNull protected @NotNull Paint gradientForBounds(@NotNull @NotNull MeasureContext measure, @NotNull @NotNull Rectangle2D bounds, float[] gradOffsets, @NotNull @NotNull Color[] gradColors) - Specified by:
gradientForBounds
in classAbstractGradient<LinearGradient>
-
toString
- Overrides:
toString
in classAbstractSVGNode
-