org.formaria.swing.painter
Class BandPainter
java.lang.Object
org.formaria.swing.painter.GradientBackground
org.formaria.swing.painter.BandPainter
- All Implemented Interfaces:
- TitlePainter
public class BandPainter
- extends GradientBackground
Paints a set of coloured gradients in horizontal bands
Copyright (c) Formaria Ltd., 2008, This software is licensed under
the GNU Public License (GPL), please see license.txt for more details. If
you make commercial use of this software you must purchase a commercial
license from Formaria.
$Revision: 1.3 $
|
Method Summary |
protected void |
paintBackground(java.awt.Graphics2D g2,
float w,
float h,
float wScreen,
float hScreen,
java.awt.Color start,
java.awt.Color end)
Paint an area of the background |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
numBands
protected int numBands
BandPainter
public BandPainter()
paintBackground
protected void paintBackground(java.awt.Graphics2D g2,
float w,
float h,
float wScreen,
float hScreen,
java.awt.Color start,
java.awt.Color end)
- Paint an area of the background
- Overrides:
paintBackground in class GradientBackground
- Parameters:
g2 - the graphics contextw - the width coordinateh - the height coordinatewScreen - the width of the gradienth - the height of the gradientstart - the start colorend - the end color