Class LinearGradient
@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 Stringprivate Lengthprivate Lengthprivate Lengthprivate LengthFields inherited from class AbstractGradient
gradientTransform, gradientUnits, spreadMethod -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidbuildGradient(@NotNull AttributeNode attributeNode, @Nullable LinearGradient template) protected @NotNull PaintgradientForBounds(@NotNull MeasureContext measure, @NotNull Rectangle2D bounds, Percentage[] gradOffsets, @NotNull Color[] gradColors) @NotNull StringtagName()toString()Methods inherited from class AbstractGradient
build, colors, computeViewTransform, drawShape, fillShape, offsets, offsetsToFractionsMethods inherited from class ContainerNode
children, doAddMethods inherited from class BaseContainerNode
acceptChild, addChild, isAcceptableTypeMethods inherited from class AbstractSVGNode
addContent, idMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface 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:
buildGradientin classAbstractGradient<LinearGradient>
-
gradientForBounds
@NotNull protected @NotNull Paint gradientForBounds(@NotNull @NotNull MeasureContext measure, @NotNull @NotNull Rectangle2D bounds, Percentage[] gradOffsets, @NotNull @NotNull Color[] gradColors) - Specified by:
gradientForBoundsin classAbstractGradient<LinearGradient>
-
toString
- Overrides:
toStringin classAbstractSVGNode
-