org.freedesktop.cairo

Class Gradient

Known Direct Subclasses:
LinearGradient, RadialGradient

public class Gradient
extends Pattern

Method Summary

void
addColorStop(double offset, double red, double green, double blue)
Deprecated. Superceeded by java-gnome 4.0; this method or constant will no doubt exist conceptually, but it may have a different name or signature in order that the presented API is an algorithmic mapping of the underlying native libraries.
void
addColorStop(double offset, double red, double green, double blue, double alpha)
Deprecated. Superceeded by java-gnome 4.0; this method or constant will no doubt exist conceptually, but it may have a different name or signature in order that the presented API is an algorithmic mapping of the underlying native libraries.

Methods inherited from class org.freedesktop.cairo.Pattern

getMatrix, setMatrix

Method Details

addColorStop

public void addColorStop(double offset,
                         double red,
                         double green,
                         double blue)

Deprecated. Superceeded by java-gnome 4.0; this method or constant will no doubt exist conceptually, but it may have a different name or signature in order that the presented API is an algorithmic mapping of the underlying native libraries.

Adds a new color stop to the pattern.
Parameters:
offset - The offset length
red - The value to use for red
green - The value to use for green
blue - The value to use for blue

addColorStop

public void addColorStop(double offset,
                         double red,
                         double green,
                         double blue,
                         double alpha)

Deprecated. Superceeded by java-gnome 4.0; this method or constant will no doubt exist conceptually, but it may have a different name or signature in order that the presented API is an algorithmic mapping of the underlying native libraries.

Adds a new color stop to the pattern.
Parameters:
offset - The offset length
red - The value to use for red
green - The value to use for green
blue - The value to use for blue
alpha - alpha for the color