org.freedesktop.cairo

Class LinearGradient


public class LinearGradient
extends Gradient

Constructor Summary

LinearGradient(double x1, double y1, double x2, double y2)
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.

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)

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.

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: