|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.7.2) E13403-10 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
oracle.javatools.ui.themes.LinearGradientPainter
public final class LinearGradientPainter
Paints a linear gradient. Immutable.
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 |
---|
public LinearGradientPainter(java.awt.Color startColor, java.awt.Color endColor, int direction)
startColor
- the start color.endColor
- the end color.direction
- the direction. Must be SwingConstants.HORIZONTAL
or SwingConstants.VERTICAL
.Method Detail |
---|
public void paint(java.awt.Graphics g, int x, int y, int w, int h)
Painter
paint
in interface Painter
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.
|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.7.2) E13403-10 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |