org.freedesktop.cairo
Class Gradient
java.lang.Object
org.gnu.glib.Struct
org.freedesktop.cairo.CairoObject
org.freedesktop.cairo.Pattern
org.freedesktop.cairo.Gradient
- Direct Known Subclasses:
- LinearGradient, RadialGradient
- public class Gradient
- extends Pattern
Method Summary |
void |
addColorStop(double offset,
double red,
double green,
double blue)
Adds a new color stop to the pattern. |
void |
addColorStop(double offset,
double red,
double green,
double blue,
double alpha)
Adds a new color stop to the pattern. |
Methods inherited from class org.gnu.glib.Struct |
equals, getHandle, getNullHandle, hashCode |
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, toString, wait, wait, wait |
addColorStop
public void addColorStop(double offset,
double red,
double green,
double blue)
- Adds a new color stop to the pattern.
- Parameters:
offset
- The offset lengthred
- The value to use for redgreen
- The value to use for greenblue
- The value to use for blue
addColorStop
public void addColorStop(double offset,
double red,
double green,
double blue,
double alpha)
- Adds a new color stop to the pattern.
- Parameters:
offset
- The offset lengthred
- The value to use for redgreen
- The value to use for greenblue
- The value to use for bluealpha
- alpha for the color