public class GradientStop
extends java.lang.Object
| Constructor and Description |
|---|
GradientStop(java.awt.Color color,
double position)
Initializes a new instance of the
GradientStop class. |
GradientStop(java.awt.Color color,
double position,
double transparency)
Initializes a new instance of the
GradientStop class. |
| Modifier and Type | Method and Description |
|---|---|
java.awt.Color |
getColor()
Gets a value representing the color of the gradient stop.
|
double |
getPosition()
Gets a value representing the position of a stop within the gradient expressed as a percent in range 0.0 to 1.0.
|
double |
getTransparency()
Gets a value representing the transparency of the gradient fill expressed as a percent in range 0.0 to 1.0.
|
void |
remove()
Removes the gradient stop from the parent
GradientStopCollection. |
void |
setColor(java.awt.Color value)
Sets a value representing the color of the gradient stop.
|
void |
setPosition(double value)
Sets a value representing the position of a stop within the gradient expressed as a percent in range 0.0 to 1.0.
|
void |
setTransparency(double value)
Sets a value representing the transparency of the gradient fill expressed as a percent in range 0.0 to 1.0.
|
public GradientStop(java.awt.Color color,
double position)
GradientStop class.color - Represents the color of the gradient stop.position - Represents the position of a stop within the gradient expressed as a percent in range 0.0 to 1.0.public GradientStop(java.awt.Color color,
double position,
double transparency)
GradientStop class.color - Represents the color of the gradient stop.position - Represents the position of a stop within the gradient expressed as a percent in range 0.0 to 1.0.transparency - Represents the transparency of a stop within the gradient expressed as a percent in range 0.0 to 1.0.public void remove()
GradientStopCollection.public java.awt.Color getColor()
public void setColor(java.awt.Color value)
value - A value representing the color of the gradient stop.public double getPosition()
public void setPosition(double value)
value - A value representing the position of a stop within the gradient expressed as a percent in range 0.0 to 1.0.public double getTransparency()
public void setTransparency(double value)
value - A value representing the transparency of the gradient fill expressed as a percent in range 0.0 to 1.0.