A Painter implementation that simulates a gloss effect. The gloss can be positioned at the top or bottom of the drawing area. To fill the gloss, this painter uses a Paint instance which can be used to fill with a color (opaque or translucent), a texture, a gradient...
The following example creates a white gloss at the top of the drawing area:
GlossPainter p = new GlossPainter(); p.setPaint(new Color(1.0f, 1.0f, 1.0f, 0.2f); p.setPosition(GlossPainter.GlossPosition.TOP); panel.setBackgroundPainter(p);
The values shown in this examples are the values used by default if they are not specified.
@author Romain Guy
|
|
|
|