public abstract static class ShapePaint.ShapeGradientPaint extends ShapePaint.ShapeAreaPaint
ShapePaint.ShapeAreaPaint, ShapePaint.ShapeColorPaint, ShapePaint.ShapeDiagonal1GradientPaint, ShapePaint.ShapeDiagonal2GradientPaint, ShapePaint.ShapeDynPlainColorPaint, ShapePaint.ShapeGradientPaint, ShapePaint.ShapeHorizontalGradientPaint, ShapePaint.ShapeImageScaledPaint, ShapePaint.ShapeImageScaledRatioMaxPaint, ShapePaint.ShapeImageScaledRatioMinPaint, ShapePaint.ShapeImageTiledPaint, ShapePaint.ShapePlainColorPaint, ShapePaint.ShapeRadialGradientPaint, ShapePaint.ShapeVerticalGradientPaint| Modifier and Type | Field and Description |
|---|---|
protected java.awt.Color[] |
colors |
protected float[] |
fractions |
protected boolean |
version16 |
fit, theCenter, theSizepredefFractions, predefFractions10, predefFractions2, predefFractions3, predefFractions4, predefFractions5, predefFractions6, predefFractions7, predefFractions8, predefFractions9| Constructor and Description |
|---|
ShapeGradientPaint(java.awt.Color[] colors,
float[] fractions) |
| Modifier and Type | Method and Description |
|---|---|
java.awt.Paint |
paint(double xFrom,
double yFrom,
double xTo,
double yTo,
double px2gu) |
abstract java.awt.Paint |
realPaint(double x0,
double y0,
double x1,
double y1) |
paintconfigureAreaForElement, configureAreaForGroupclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitapply, apply, createColors, createColors, createFractions, createFractions, interpolateColor, interpolateColorprotected java.awt.Color[] colors
protected float[] fractions
protected boolean version16
public ShapeGradientPaint(java.awt.Color[] colors,
float[] fractions)
public java.awt.Paint paint(double xFrom,
double yFrom,
double xTo,
double yTo,
double px2gu)
paint in class ShapePaint.ShapeAreaPaintpublic abstract java.awt.Paint realPaint(double x0,
double y0,
double x1,
double y1)