JFreeChart 1.0.14-redhat-2

org.jfree.chart.renderer.xy
Class GradientXYBarPainter

java.lang.Object
  extended by org.jfree.chart.renderer.xy.GradientXYBarPainter
All Implemented Interfaces:
Serializable, XYBarPainter

public class GradientXYBarPainter
extends Object
implements XYBarPainter, Serializable

An implementation of the XYBarPainter interface that uses several gradient fills to enrich the appearance of the bars.

Since:
1.0.11
See Also:
Serialized Form

Constructor Summary
GradientXYBarPainter()
          Creates a new instance.
GradientXYBarPainter(double g1, double g2, double g3)
          Creates a new instance.
 
Method Summary
 boolean equals(Object obj)
          Tests this instance for equality with an arbitrary object.
 int hashCode()
          Returns a hash code for this instance.
 void paintBar(Graphics2D g2, XYBarRenderer renderer, int row, int column, RectangularShape bar, org.jfree.ui.RectangleEdge base)
          Paints a single bar instance.
 void paintBarShadow(Graphics2D g2, XYBarRenderer renderer, int row, int column, RectangularShape bar, org.jfree.ui.RectangleEdge base, boolean pegShadow)
          Paints a single bar instance.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GradientXYBarPainter

public GradientXYBarPainter()
Creates a new instance.


GradientXYBarPainter

public GradientXYBarPainter(double g1,
                            double g2,
                            double g3)
Creates a new instance.

Parameters:
g1 - the division between regions 1 and 2.
g2 - the division between regions 2 and 3.
g3 - the division between regions 3 and 4.
Method Detail

paintBar

public void paintBar(Graphics2D g2,
                     XYBarRenderer renderer,
                     int row,
                     int column,
                     RectangularShape bar,
                     org.jfree.ui.RectangleEdge base)
Paints a single bar instance.

Specified by:
paintBar in interface XYBarPainter
Parameters:
g2 - the graphics target.
renderer - the renderer.
row - the row index.
column - the column index.
bar - the bar
base - indicates which side of the rectangle is the base of the bar.

paintBarShadow

public void paintBarShadow(Graphics2D g2,
                           XYBarRenderer renderer,
                           int row,
                           int column,
                           RectangularShape bar,
                           org.jfree.ui.RectangleEdge base,
                           boolean pegShadow)
Paints a single bar instance.

Specified by:
paintBarShadow in interface XYBarPainter
Parameters:
g2 - the graphics target.
renderer - the renderer.
row - the row index.
column - the column index.
bar - the bar
base - indicates which side of the rectangle is the base of the bar.
pegShadow - peg the shadow to the base of the bar?

equals

public boolean equals(Object obj)
Tests this instance for equality with an arbitrary object.

Overrides:
equals in class Object
Parameters:
obj - the obj (null permitted).
Returns:
A boolean.

hashCode

public int hashCode()
Returns a hash code for this instance.

Overrides:
hashCode in class Object
Returns:
A hash code.

JFreeChart 1.0.14-redhat-2

Copyright © 2001-2012 JFree.org. All Rights Reserved.