public class StandardXYBarPainter extends java.lang.Object implements XYBarPainter, java.io.Serializable
XYBarPainter interface that preserves the
behaviour of bar painting that existed prior to the introduction of the
XYBarPainter interface.GradientXYBarPainter,
Serialized Form| Constructor and Description |
|---|
StandardXYBarPainter()
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
private java.awt.geom.Rectangle2D |
createShadow(java.awt.geom.RectangularShape bar,
double xOffset,
double yOffset,
org.jfree.ui.RectangleEdge base,
boolean pegShadow)
Creates a shadow for the bar.
|
boolean |
equals(java.lang.Object obj)
Tests this instance for equality with an arbitrary object.
|
int |
hashCode()
Returns a hash code for this instance.
|
void |
paintBar(java.awt.Graphics2D g2,
XYBarRenderer renderer,
int row,
int column,
java.awt.geom.RectangularShape bar,
org.jfree.ui.RectangleEdge base)
Paints a single bar instance.
|
void |
paintBarShadow(java.awt.Graphics2D g2,
XYBarRenderer renderer,
int row,
int column,
java.awt.geom.RectangularShape bar,
org.jfree.ui.RectangleEdge base,
boolean pegShadow)
Paints a single bar instance.
|
public void paintBar(java.awt.Graphics2D g2,
XYBarRenderer renderer,
int row,
int column,
java.awt.geom.RectangularShape bar,
org.jfree.ui.RectangleEdge base)
paintBar in interface XYBarPainterg2 - 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.public void paintBarShadow(java.awt.Graphics2D g2,
XYBarRenderer renderer,
int row,
int column,
java.awt.geom.RectangularShape bar,
org.jfree.ui.RectangleEdge base,
boolean pegShadow)
paintBarShadow in interface XYBarPainterg2 - 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?private java.awt.geom.Rectangle2D createShadow(java.awt.geom.RectangularShape bar,
double xOffset,
double yOffset,
org.jfree.ui.RectangleEdge base,
boolean pegShadow)
bar - the bar shape.xOffset - the x-offset for the shadow.yOffset - the y-offset for the shadow.base - the edge that is the base of the bar.pegShadow - peg the shadow to the base?public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectobj - the obj (null permitted).public int hashCode()
hashCode in class java.lang.Object