public class RadialGradientContext
extends java.lang.Object
implements java.awt.PaintContext
Constructor and Description |
---|
RadialGradientContext(java.awt.geom.Point2D center,
java.awt.geom.Point2D radius1,
java.awt.geom.Point2D radius2,
double focus,
java.awt.Color color1,
java.awt.Color color2)
Create a radial gradient context.
|
Modifier and Type | Method and Description |
---|---|
void |
dispose() |
java.awt.image.ColorModel |
getColorModel() |
java.awt.image.Raster |
getRaster(int x,
int y,
int width,
int height) |
public RadialGradientContext(java.awt.geom.Point2D center, java.awt.geom.Point2D radius1, java.awt.geom.Point2D radius2, double focus, java.awt.Color color1, java.awt.Color color2)
center
- The center point.radius1
- The radius along the first axis of the ellipse.radius2
- The radius along the second axis of the ellipse.focus
- Focus shift away from the center along second radius
normalized to interval between zero and one.color1
- First color.color2
- Second color.public void dispose()
dispose
in interface java.awt.PaintContext
public java.awt.image.ColorModel getColorModel()
getColorModel
in interface java.awt.PaintContext
public java.awt.image.Raster getRaster(int x, int y, int width, int height)
getRaster
in interface java.awt.PaintContext