GradientStop
Overview
GradientStop is a class in Aspose.Slides FOSS for Java.
Inherits from: PVIObject, IGradientStop.
Represents a single gradient stop.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
position | double | Read | Gets or sets the stop’s position as a double |
color | IColorFormat | Read | Gets or sets the stop’s color via an IColorFormat instance |
Methods
| Signature | Description |
|---|---|
GradientStop() | Creates an empty {@code GradientStop} with no backing element. |
GradientStop(gsElement: Element, saveCallback: Runnable) | Creates a new GradientStop backed by the given {@code <a:gs>} element. |
initInternal(gsElement: Element, saveCallback: Runnable, parentSlide: IBaseSlide) → GradientStop | Initializes this gradient stop from the given {@code <a:gs>} element, |
| save callback, and parent slide. | |
save() | Persists changes by invoking the save callback, if one was provided. |
getPosition() → double | Returns the gradient stop’s position as a double |
setPosition(value: double) | Sets the gradient stop’s position to the specified double value |
getColor() → IColorFormat | Returns the IColorFormat representing the stop’s color |