GradientStop
Overview
GradientStop is a class in Aspose.Words FOSS for Java.
Represents one gradient stop.
Edition status of its 13 listed members (a property and its accessor methods are listed separately, overloads once): 13 not yet exercised by a verified example.
This class declares 10 methods for GradientStop objects in Java programs.
Available methods include: GradientStop, getBaseColor, getColor, getPosition, getTransparency, remove, setColor, setPosition, setTransparency.
Public members are accessible to any Java application after installing the Aspose.Words FOSS for Java package.
Properties: baseColor, color, position, transparency.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
color | Color | Read/Write | Gets or sets a value representing the color of the gradient stop. |
baseColor | Color | Read | Gets a value representing the color of the gradient stop without any modifiers. |
position | double | Read/Write | Gets or sets a value representing the position of a stop within the gradient expressed as a percent in range 0.0 to 1.0. |
transparency | double | Read/Write | Gets or sets a value representing the transparency of the gradient fill expressed as a percent in range 0.0 to 1.0. |
Methods
| Signature | Description |
|---|---|
GradientStop(color: Color, position: double) | Initializes a new instance of the GradientStop class. |
GradientStop(color: Color, position: double, transparency: double) | Initializes a new instance of the GradientStop class. |
remove() | Removes the gradient stop from the parent GradientStopCollection. |
getColor() → Color | Gets or sets a value representing the color of the gradient stop. |
setColor(value: Color) | Sets the color value. |
getBaseColor() → Color | Gets a value representing the color of the gradient stop without any modifiers. |
getPosition() → double | Gets or sets a value representing the position of a stop within the gradient expressed as a percent in range 0.0 to 1.0. |
setPosition(value: double) | Sets the position value. |
getTransparency() → double | Gets or sets a value representing the transparency of the gradient fill expressed as a percent in range 0.0 to 1.0. |
setTransparency(value: double) | Sets the transparency value. |