ca.sqlpower.wabit.report.chart
Class ChartGradientPainter

java.lang.Object
  extended by ca.sqlpower.wabit.report.chart.ChartGradientPainter

public class ChartGradientPainter
extends java.lang.Object

Helper class for making charts look nicer.


Constructor Summary
ChartGradientPainter()
           
 
Method Summary
static void paintChartGradient(java.awt.Graphics2D g, java.awt.geom.Rectangle2D bounds, int baseline)
          Paints two gradients which, together, entirely fill the given rectangle.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ChartGradientPainter

public ChartGradientPainter()
Method Detail

paintChartGradient

public static void paintChartGradient(java.awt.Graphics2D g,
                                      java.awt.geom.Rectangle2D bounds,
                                      int baseline)
Paints two gradients which, together, entirely fill the given rectangle.

Parameters:
g - The graphics to paint into
bounds - The rectangle to fill with gradients
baseline - The cutoff point from the top gradient to the bottom gradient. This is normally set to line up with the X-axis of the chart.


Copyright © 2009. All Rights Reserved.