Interface ISvgGradient
interface ISvgGradient
Extends ISvgNode
Represents an SVG gradient container.
Gradients are used to define gradual transitions between colors.
See also - ISvgNode.
Methods
setGradientUnits()
Sets the gradientUnits of the gradient. Attribute defines the coordinate system used for attributes specified on the gradient elements. This attribute defines the coordinate system for attributes x1, x2, y1, y2 Default value isvoidsetGradientUnits(SvgBoundingBoxUnitsgradientUnits)
SvgBoundingBoxUnits::OBJECT_BOUNDING_BOX
Parameters
gradientUnits
SvgBoundingBoxUnits — Required
SvgBoundingBoxUnits to set.
setGradientTransform()
Sets the gradient’s transformation matrix. This attribute provides additional transformation to the gradient coordinate system.voidsetGradientTransform(com.amazon.kepler.uitoolkit.graphics.AffineMatrixgradientTransform)
Parameters
gradientTransform
com.amazon.kepler.uitoolkit.graphics.AffineMatrix — Required
AffineMatrix to set.
setSpreadMethod()
Sets the spreadMethod of the gradient. This attribute indicates how the gradient behaves if it starts or ends inside the bounds of the shape containing the gradient. Default value isvoidsetSpreadMethod(SvgSpreadMethodspreadMethod)
SvgSpreadMethod::PAD
Parameters
spreadMethod
SvgSpreadMethod — Required
SvgSpreadMethod to set.

