Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK
11g Release 2 (11.1.2.2.0)

E17493-03


oracle.javatools.ui.themes
Class LinearGradientPainter

java.lang.Object
  extended by oracle.javatools.ui.themes.LinearGradientPainter

All Implemented Interfaces:
Painter

public final class LinearGradientPainter
extends java.lang.Object
implements Painter

Paints a linear gradient. Immutable.

Since:
11.1.1

Constructor Summary
LinearGradientPainter(java.awt.Color startColor, java.awt.Color endColor, int direction)
          Constructs a LinearGradientPainter.

 

Method Summary
 void paint(java.awt.Graphics g, int x, int y, int w, int h)
          Paint.

 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Constructor Detail

LinearGradientPainter

public LinearGradientPainter(java.awt.Color startColor,
                             java.awt.Color endColor,
                             int direction)
Constructs a LinearGradientPainter.
Parameters:
startColor - the start color.
endColor - the end color.
direction - the direction. Must be SwingConstants.HORIZONTAL or SwingConstants.VERTICAL.

Method Detail

paint

public void paint(java.awt.Graphics g,
                  int x,
                  int y,
                  int w,
                  int h)
Description copied from interface: Painter
Paint.
Specified by:
paint in interface Painter
Parameters:
g - the graphics context in which to paint.
x - the x-coordinate within the graphics context at which to paint.
y - the y-coordinate within the graphics context at which to paint.
w - the width of the area to paint.
h - the height of the area to paint.

Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK
11g Release 2 (11.1.2.2.0)

E17493-03


Copyright © 1997, 2012, Oracle. All rights reserved.