- java.lang.Object
-
- org.jfree.chart.renderer.category.StandardBarPainter
-
- All Implemented Interfaces:
Serializable,BarPainter
public class StandardBarPainter extends Object implements BarPainter, Serializable
An implementation of theBarPainterinterface that preserves the behaviour of bar painting that existed prior to the introduction of theBarPainterinterface.- See Also:
GradientBarPainter, Serialized Form
-
-
Constructor Summary
Constructors Constructor Description StandardBarPainter()Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)Tests this instance for equality with an arbitrary object.inthashCode()Returns a hash code for this instance.voidpaintBar(Graphics2D g2, BarRenderer renderer, int row, int column, RectangularShape bar, RectangleEdge base)Paints a single bar instance.voidpaintBarShadow(Graphics2D g2, BarRenderer renderer, int row, int column, RectangularShape bar, RectangleEdge base, boolean pegShadow)Paints a single bar instance.
-
-
-
Constructor Detail
-
StandardBarPainter
public StandardBarPainter()
Creates a new instance.
-
-
Method Detail
-
paintBar
public void paintBar(Graphics2D g2, BarRenderer renderer, int row, int column, RectangularShape bar, RectangleEdge base)
Paints a single bar instance.- Specified by:
paintBarin interfaceBarPainter- Parameters:
g2- the graphics target.renderer- the renderer.row- the row index.column- the column index.bar- the barbase- indicates which side of the rectangle is the base of the bar.
-
paintBarShadow
public void paintBarShadow(Graphics2D g2, BarRenderer renderer, int row, int column, RectangularShape bar, RectangleEdge base, boolean pegShadow)
Paints a single bar instance.- Specified by:
paintBarShadowin interfaceBarPainter- Parameters:
g2- the graphics target.renderer- the renderer.row- the row index.column- the column index.bar- the barbase- 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.
-
-