processing.candy
Class LinearGradientPaint

java.lang.Object
  extended by processing.candy.LinearGradientPaint
All Implemented Interfaces:
java.awt.Paint, java.awt.Transparency

public class LinearGradientPaint
extends java.lang.Object
implements java.awt.Paint


Nested Class Summary
 class LinearGradientPaint.LinearGradientContext
           
 
Field Summary
 
Fields inherited from interface java.awt.Transparency
BITMASK, OPAQUE, TRANSLUCENT
 
Constructor Summary
LinearGradientPaint(float x1, float y1, float x2, float y2, float[] offset, int[] color, int count, float opacity)
           
 
Method Summary
 java.awt.PaintContext createContext(java.awt.image.ColorModel cm, java.awt.Rectangle deviceBounds, java.awt.geom.Rectangle2D userBounds, java.awt.geom.AffineTransform xform, java.awt.RenderingHints hints)
           
 int getTransparency()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LinearGradientPaint

public LinearGradientPaint(float x1,
                           float y1,
                           float x2,
                           float y2,
                           float[] offset,
                           int[] color,
                           int count,
                           float opacity)
Method Detail

createContext

public java.awt.PaintContext createContext(java.awt.image.ColorModel cm,
                                           java.awt.Rectangle deviceBounds,
                                           java.awt.geom.Rectangle2D userBounds,
                                           java.awt.geom.AffineTransform xform,
                                           java.awt.RenderingHints hints)
Specified by:
createContext in interface java.awt.Paint

getTransparency

public int getTransparency()
Specified by:
getTransparency in interface java.awt.Transparency