Java Swing Tutorial - GradientPaint Example








Constructor

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




Method

  1. Java GradientPaint .createContext (ColorModel cm, Rectangle deviceBounds, Rectangle2D userBounds, AffineTransform xform, RenderingHints hints)
  2. Java GradientPaint.getColor1()
  3. Java GradientPaint.getColor2()
  4. Java GradientPaint.getPoint1()
  5. Java GradientPaint.getPoint2()
  6. Java GradientPaint .getTransparency ()
  7. Java GradientPaint.isCyclic()