org.jfree.chart.renderer.xy

Class GradientXYBarPainter

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

Constructor Summary
GradientXYBarPainter()
Creates a new instance.
GradientXYBarPainter(double g1, double g2, double g3)
Creates a new instance.
Method Summary
booleanequals(Object obj)
Tests this instance for equality with an arbitrary object.
inthashCode()
Returns a hash code for this instance.
voidpaintBar(Graphics2D g2, XYBarRenderer renderer, int row, int column, RectangularShape bar, RectangleEdge base)
Paints a single bar instance.
voidpaintBarShadow(Graphics2D g2, XYBarRenderer renderer, int row, int column, RectangularShape bar, RectangleEdge base, boolean pegShadow)
Paints a single bar instance.

Constructor Detail

GradientXYBarPainter

public GradientXYBarPainter()
Creates a new instance.

GradientXYBarPainter

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

Parameters: g1 g2 g3

Method Detail

equals

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

Parameters: obj the obj (null permitted).

Returns: A boolean.

hashCode

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

Returns: A hash code.

paintBar

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

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, RectangleEdge base, boolean pegShadow)
Paints a single bar instance.

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?

Copyright © 2000-2009 by Object Refinery Limited. All Rights Reserved.