- java.lang.Object
-
@ElementCategories(Gradient) @PermittedContent(categories=Descriptive, anyOf={Stop.class,Animate.class,AnimateTransform.class,Set.class}) public final class LinearGradient extends AbstractGradient<LinearGradient>
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringTAGprivate Lengthx1private Lengthx2private Lengthy1private Lengthy2-
Fields inherited from class com.github.weisj.jsvg.nodes.AbstractGradient
gradientTransform, gradientUnits, spreadMethod
-
-
Constructor Summary
Constructors Constructor Description LinearGradient()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidbuildGradient(@NotNull AttributeNode attributeNode, @Nullable LinearGradient template)protected @NotNull java.awt.PaintgradientForBounds(@NotNull MeasureContext measure, @NotNull java.awt.geom.Rectangle2D bounds, Percentage[] gradOffsets, @NotNull java.awt.Color[] gradColors)@NotNull java.lang.StringtagName()java.lang.StringtoString()-
Methods inherited from class com.github.weisj.jsvg.nodes.AbstractGradient
build, colors, computeViewTransform, drawShape, fillShape, offsets, offsetsToFractions
-
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 Detail
-
TAG
public static final java.lang.String TAG
- See Also:
- Constant Field Values
-
x1
private Length x1
-
x2
private Length x2
-
y1
private Length y1
-
y2
private Length y2
-
-
Method Detail
-
tagName
@NotNull public @NotNull java.lang.String tagName()
-
buildGradient
protected void buildGradient(@NotNull @NotNull AttributeNode attributeNode, @Nullable @Nullable LinearGradient template)- Specified by:
buildGradientin classAbstractGradient<LinearGradient>
-
gradientForBounds
@NotNull protected @NotNull java.awt.Paint gradientForBounds(@NotNull @NotNull MeasureContext measure, @NotNull @NotNull java.awt.geom.Rectangle2D bounds, Percentage[] gradOffsets, @NotNull @NotNull java.awt.Color[] gradColors)- Specified by:
gradientForBoundsin classAbstractGradient<LinearGradient>
-
toString
public java.lang.String toString()
- Overrides:
toStringin classAbstractSVGNode
-
-