org.freedesktop.cairo
Class Gradient

java.lang.Object
  extended byorg.gnu.glib.Struct
      extended byorg.freedesktop.cairo.CairoObject
          extended byorg.freedesktop.cairo.Pattern
              extended byorg.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.freedesktop.cairo.Pattern
getMatrix, setMatrix
 
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
 

Method Detail

addColorStop

public void addColorStop(double offset,
                         double red,
                         double green,
                         double blue)
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)
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