Home » openjdk-7 » java » awt » [javadoc | source]
final class: LinearGradientPaintContext [javadoc | source]

All Implemented Interfaces:

Provides the actual implementation for the LinearGradientPaint. This is where the pixel processing is done.
Fields inherited from java.awt.MultipleGradientPaintContext:
model,  cachedModel,  cached,  saved,  cycleMethod,  colorSpace,  a00,  a01,  a10,  a11,  a02,  a12,  isSimpleLookup,  fastGradientArraySize,  gradient,  GRADIENT_SIZE,  GRADIENT_SIZE_INDEX
 LinearGradientPaintContext(LinearGradientPaint paint,
    ColorModel cm,
    Rectangle deviceBounds,
    Rectangle2D userBounds,
    AffineTransform t,
    RenderingHints hints,
    Point2D start,
    Point2D end,
    float[] fractions,
    Color[] colors,
    CycleMethod cycleMethod,
    ColorSpaceType colorSpace) 
    Constructor for LinearGradientPaintContext.
    paint - the {@code LinearGradientPaint} from which this context is created
    cm - {@code ColorModel} that receives the Paint data. This is used only as a hint.
    deviceBounds - the device space bounding box of the graphics primitive being rendered
    userBounds - the user space bounding box of the graphics primitive being rendered
    t - the {@code AffineTransform} from user space into device space (gradientTransform should be concatenated with this)
    hints - the hints that the context object uses to choose between rendering alternatives
    dStart - gradient start point, in user space
    dEnd - gradient end point, in user space
    fractions - the fractions specifying the gradient distribution
    colors - the gradient colors
    cycleMethod - either NO_CYCLE, REFLECT, or REPEAT
    colorSpace - which colorspace to use for interpolation, either SRGB or LINEAR_RGB
Method from java.awt.LinearGradientPaintContext Summary:
Methods from java.awt.MultipleGradientPaintContext:
dispose,   fillRaster,   getColorModel,   getRaster,   indexIntoGradientsArrays
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from java.awt.LinearGradientPaintContext Detail:
 protected  void fillRaster(int[] pixels,
    int off,
    int adjust,
    int x,
    int y,
    int w,
    int h) 
    Return a Raster containing the colors generated for the graphics operation. This is where the area is filled with colors distributed linearly.