org.freedesktop.cairo

Class LinearGradient


public class LinearGradient
extends Gradient

Constructor Summary

LinearGradient(double x1, double y1, double x2, double y2)
Create a new cairo_pattern_t corresponding to a translucent color.

Method Summary

Methods inherited from class org.freedesktop.cairo.Gradient

addColorStop, addColorStop

Methods inherited from class org.freedesktop.cairo.Pattern

getMatrix, setMatrix

Constructor Details

LinearGradient

public LinearGradient(double x1,
                      double y1,
                      double x2,
                      double y2)
Create a new cairo_pattern_t corresponding to a translucent color. The color components are floating point numbers in the range 0 to 1. If the values passed in are outside that range, they will be clamped.

Parameters: