GradientPaint « java.awt « Java by API






1.new GradientPaint(float x1, float y1, Color color1, float x2, float y2, Color color2, boolean cyclic)
2.new GradientPaint(Point2D pt1, Color color1, Point2D pt2, Color color2, boolean cyclic)