public class BarValueGroup
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
protected class |
BarValueGroup.BarValue
Helper class to handle a barValue - wraps TextTag
Meant to be called only by BarValueGroup class.
|
Modifier and Type | Field and Description |
---|---|
private AxisChart |
axisChart |
private AxisProperties |
axisProperties |
private BarChartProperties |
barChartProperties |
private java.awt.Font |
barValueFont |
private java.awt.Paint |
barValueFontColor |
private int |
barValueItem |
private int |
barValuePosition |
private float |
centerChart |
private java.awt.font.FontRenderContext |
fontRenderContext |
private float |
horizontalPadding |
private boolean |
isVertical |
private java.text.NumberFormat |
numberFormat |
private boolean |
showBarValues |
private java.util.ArrayList |
textTagList |
private double |
totalDataValue |
private float |
verticalPadding |
Constructor and Description |
---|
BarValueGroup(AxisChart axisChart,
IAxisChartDataSet iAxisChartDataSet) |
Modifier and Type | Method and Description |
---|---|
void |
addBarValue(int i,
double dataValue,
java.awt.geom.Rectangle2D.Float barRect)
Adds a bar value for the given data item, if barValues are on
|
private java.lang.String |
getBarValueAt(int i,
double dataValue)
Gets the text associated (by the user) for the given bar value.
|
private java.awt.geom.Rectangle2D.Float |
getBarValueRectangleCoordinates(int position,
BarValueGroup.BarValue barValue)
Gets the rectangle coords associated (by the user) for the given bar value.
|
private float |
getBottom(java.awt.geom.Rectangle2D.Float r)
Not sure why this was left out of Rectangle2D...
|
private float |
getRight(java.awt.geom.Rectangle2D.Float r)
Not sure why this was left out of Rectangle2D...
|
void |
render(java.awt.Graphics2D g2d)
renders any barValues
|
private void |
setBarValuePosition(BarValueGroup.BarValue barValue,
java.awt.geom.Rectangle2D.Float bounds)
Gets the rectangle associated (by the user) for the given bar value.
|
private AxisChart axisChart
private java.awt.font.FontRenderContext fontRenderContext
private boolean isVertical
private BarChartProperties barChartProperties
private AxisProperties axisProperties
private java.text.NumberFormat numberFormat
private boolean showBarValues
private int barValuePosition
private int barValueItem
private java.awt.Font barValueFont
private java.awt.Paint barValueFontColor
private float horizontalPadding
private float verticalPadding
private double totalDataValue
private float centerChart
private java.util.ArrayList textTagList
public BarValueGroup(AxisChart axisChart, IAxisChartDataSet iAxisChartDataSet)
private java.lang.String getBarValueAt(int i, double dataValue)
private java.awt.geom.Rectangle2D.Float getBarValueRectangleCoordinates(int position, BarValueGroup.BarValue barValue)
private float getRight(java.awt.geom.Rectangle2D.Float r)
private float getBottom(java.awt.geom.Rectangle2D.Float r)
private void setBarValuePosition(BarValueGroup.BarValue barValue, java.awt.geom.Rectangle2D.Float bounds)
public void addBarValue(int i, double dataValue, java.awt.geom.Rectangle2D.Float barRect)
public void render(java.awt.Graphics2D g2d)