java.lang.Object
org.jfree.chart.renderer.xy.GradientXYBarPainter
- All Implemented Interfaces:
- Serializable,- XYBarPainter
An implementation of the 
XYBarPainter interface that uses several
 gradient fills to enrich the appearance of the bars.- See Also:
- 
Constructor SummaryConstructorsConstructorDescriptionCreates a new instance.GradientXYBarPainter(double g1, double g2, double g3) Creates a new instance.
- 
Method SummaryModifier and TypeMethodDescriptionbooleanTests 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 Details- 
GradientXYBarPainterpublic GradientXYBarPainter()Creates a new instance.
- 
GradientXYBarPainterpublic 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 Details- 
paintBarpublic void paintBar(Graphics2D g2, XYBarRenderer renderer, int row, int column, RectangularShape bar, RectangleEdge base) Paints a single bar instance.- Specified by:
- paintBarin 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.
 
- 
paintBarShadowpublic void paintBarShadow(Graphics2D g2, XYBarRenderer renderer, int row, int column, RectangularShape bar, RectangleEdge base, boolean pegShadow) Paints a single bar instance.- Specified by:
- paintBarShadowin 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?
 
- 
equalsTests this instance for equality with an arbitrary object.
- 
hashCodepublic int hashCode()Returns a hash code for this instance.
 
-