Groovy Documentation

eu.hansolo.gradients
[Java] Class BiLinearGradientPaint

java.lang.Object
  eu.hansolo.gradients.BiLinearGradientPaint
All Implemented Interfaces:
Paint

public final class BiLinearGradientPaint
extends Object

Authors:
Gerrit Grunwald


Nested Class Summary
private class BiLinearGradientPaint.BiLinearGradientPaintContext

 
Field Summary
private Rectangle BOUNDS

private Color COLOR_00

private Color COLOR_01

private Color COLOR_10

private Color COLOR_11

private float FRACTION_X_STEPSIZE

private float FRACTION_Y_STEPSIZE

private static float INT_TO_FLOAT_CONST

private int titleBarHeight

 
Constructor Summary
BiLinearGradientPaint(Shape SHAPE, Color COLOR_00, Color COLOR_10, Color COLOR_01, Color COLOR_11)

Enhanced constructor which takes bounds of the objects SHAPE to fill and the four colors we need to create the bilinear interpolated gradient

 
Method Summary
PaintContext createContext(ColorModel COLOR_MODEL, Rectangle DEVICE_BOUNDS, Rectangle2D USER_BOUNDS, AffineTransform TRANSFORM, RenderingHints HINTS)

int getTransparency()

String toString()

 
Methods inherited from class Object
wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll
 

Field Detail

BOUNDS

private final Rectangle BOUNDS


COLOR_00

private final Color COLOR_00


COLOR_01

private final Color COLOR_01


COLOR_10

private final Color COLOR_10


COLOR_11

private final Color COLOR_11


FRACTION_X_STEPSIZE

private final float FRACTION_X_STEPSIZE


FRACTION_Y_STEPSIZE

private final float FRACTION_Y_STEPSIZE


INT_TO_FLOAT_CONST

private static final float INT_TO_FLOAT_CONST


titleBarHeight

private int titleBarHeight


 
Constructor Detail

BiLinearGradientPaint

public BiLinearGradientPaint(Shape SHAPE, Color COLOR_00, Color COLOR_10, Color COLOR_01, Color COLOR_11)
Enhanced constructor which takes bounds of the objects SHAPE to fill and the four colors we need to create the bilinear interpolated gradient
throws:
IllegalArgumentException
Parameters:
SHAPE
COLOR_00
COLOR_10
COLOR_01
COLOR_11


 
Method Detail

createContext

@Override
public PaintContext createContext(ColorModel COLOR_MODEL, Rectangle DEVICE_BOUNDS, Rectangle2D USER_BOUNDS, AffineTransform TRANSFORM, RenderingHints HINTS)


getTransparency

@Override
public int getTransparency()


toString

@Override
public String toString()


 

Groovy Documentation