Amazon Developer

as

Settings
Sign out
Notifications
Alexa
Amazon Appstore
Ring
AWS
Documentation
Support
Contact Us
My Cases
Get Started
Design and Develop
Publish
Reference
Support
Native
Skip to main content

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()

void setGradientUnits(SvgBoundingBoxUnits gradientUnits)
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 is SvgBoundingBoxUnits::OBJECT_BOUNDING_BOX

Parameters

gradientUnits
SvgBoundingBoxUnits — Required SvgBoundingBoxUnits to set.

setGradientTransform()

void setGradientTransform(com.amazon.kepler.uitoolkit.graphics.AffineMatrix gradientTransform)
Sets the gradient’s transformation matrix. This attribute provides additional transformation to the gradient coordinate system.

Parameters

gradientTransform
com.amazon.kepler.uitoolkit.graphics.AffineMatrix — Required AffineMatrix to set.

setSpreadMethod()

void setSpreadMethod(SvgSpreadMethod spreadMethod)
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 is SvgSpreadMethod::PAD

Parameters

spreadMethod
SvgSpreadMethod — Required SvgSpreadMethod to set.
Last modified on October 29, 2026