Home » openjdk-7 » java » awt » [javadoc | source]
java.awt
final class: RadialGradientPaintContext [javadoc | source]
java.lang.Object
   java.awt.MultipleGradientPaintContext
      java.awt.RadialGradientPaintContext

All Implemented Interfaces:
    PaintContext

Provides the actual implementation for the RadialGradientPaint. This is where the pixel processing is done. A RadialGradienPaint only supports circular gradients, but it should be possible to scale the circle to look approximately elliptical, by means of a gradient transform passed into the RadialGradientPaint constructor.
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
Constructor:
 RadialGradientPaintContext(RadialGradientPaint paint,
    ColorModel cm,
    Rectangle deviceBounds,
    Rectangle2D userBounds,
    AffineTransform t,
    RenderingHints hints,
    float cx,
    float cy,
    float r,
    float fx,
    float fy,
    float[] fractions,
    Color[] colors,
    CycleMethod cycleMethod,
    ColorSpaceType colorSpace) 
    Constructor for RadialGradientPaintContext.
    Parameters:
    paint - the {@code RadialGradientPaint} from which this context is created
    cm - the {@code ColorModel} that receives the {@code 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
    cx - the center X coordinate in user space of the circle defining the gradient. The last color of the gradient is mapped to the perimeter of this circle.
    cy - the center Y coordinate in user space of the circle defining the gradient. The last color of the gradient is mapped to the perimeter of this circle.
    r - the radius of the circle defining the extents of the color gradient
    fx - the X coordinate in user space to which the first color is mapped
    fy - the Y coordinate in user space to which the first color is mapped
    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.RadialGradientPaintContext Summary:
fillRaster
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.RadialGradientPaintContext 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.