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

NameTypeAccessDescription
colorColorRead/WriteGets or sets a value representing the color of the gradient stop.
baseColorColorReadGets a value representing the color of the gradient stop without any modifiers.
positiondoubleRead/WriteGets or sets a value representing the position of a stop within the gradient expressed as a percent in range 0.0 to 1.0.
transparencydoubleRead/WriteGets or sets a value representing the transparency of the gradient fill expressed as a percent in range 0.0 to 1.0.

Methods

SignatureDescription
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() → ColorGets or sets a value representing the color of the gradient stop.
setColor(value: Color)Sets the color value.
getBaseColor() → ColorGets a value representing the color of the gradient stop without any modifiers.
getPosition() → doubleGets 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() → doubleGets 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.

See Also