RoundGradientPaintpublic class RoundGradientPaint extends Object implements Paint
Fields Summary |
---|
protected Point2D | mPoint | protected Point2D | mRadius | protected Color | mPointColor | protected Color | mBackgroundColor |
Constructors Summary |
---|
public RoundGradientPaint(double x, double y, Color pointColor, Point2D radius, Color backgroundColor)
if (radius.distance(0, 0) <= 0)
throw new IllegalArgumentException("Radius must be greater than 0.");
mPoint = new Point2D.Double(x, y);
mPointColor = pointColor;
mRadius = radius;
mBackgroundColor = backgroundColor;
|
|