org.formaria.swing.painter
Class BandPainter

java.lang.Object
  extended by org.formaria.swing.painter.GradientBackground
      extended by 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 $


Field Summary
protected  int numBands
           
 
Fields inherited from class org.formaria.swing.painter.GradientBackground
blend, currentProject, title, titleColor, titleFont, titleHeight, titlePos, titleTextColor
 
Fields inherited from interface org.formaria.swing.painter.TitlePainter
BOTTOM, LEFT, RIGHT, TOP
 
Constructor Summary
BandPainter()
           
 
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 org.formaria.swing.painter.GradientBackground
getBackgroundPaint, paint, paint, paintExtras, setBlend, setTitle, setTitleColor, setTitleFont, setTitlePosition, setTitleTextColor
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

numBands

protected int numBands
Constructor Detail

BandPainter

public BandPainter()
Method Detail

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 context
w - the width coordinate
h - the height coordinate
wScreen - the width of the gradient
h - the height of the gradient
start - the start color
end - the end color