public class

GradientBarPainter

extends Object
implements Serializable BarPainter
java.lang.Object
   ↳ org.jfree.chart.renderer.category.GradientBarPainter

Class Overview

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

Summary

Public Constructors
GradientBarPainter()
Creates a new instance.
GradientBarPainter(double g1, double g2, double g3)
Creates a new instance.
Public Methods
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, BarRenderer renderer, int row, int column, RectangularShape bar, RectangleEdge base)
Paints a single bar instance.
void paintBarShadow(Graphics2D g2, BarRenderer renderer, int row, int column, RectangularShape bar, RectangleEdge base, boolean pegShadow)
Paints a single bar instance.
[Expand]
Inherited Methods
From class java.lang.Object
From interface org.jfree.chart.renderer.category.BarPainter

Public Constructors

public GradientBarPainter ()

Creates a new instance.

public GradientBarPainter (double g1, double g2, double g3)

Creates a new instance.

Public Methods

public boolean equals (Object obj)

Tests this instance for equality with an arbitrary object.

Parameters
obj the obj (null permitted).
Returns
  • A boolean.

public int hashCode ()

Returns a hash code for this instance.

Returns
  • A hash code.

public void paintBar (Graphics2D g2, BarRenderer 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.

public void paintBarShadow (Graphics2D g2, BarRenderer 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?