org.jCharts.chartText
public class BarValueGroup extends 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 Font |
barValueFont |
private Paint |
barValueFontColor |
private int |
barValueItem |
private int |
barValuePosition |
private float |
centerChart |
private FontRenderContext |
fontRenderContext |
private float |
horizontalPadding |
private boolean |
isVertical |
private NumberFormat |
numberFormat |
private boolean |
showBarValues |
private 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,
Rectangle2D.Float barRect)
Adds a bar value for the given data item, if barValues are on
|
private String |
getBarValueAt(int i,
double dataValue)
Gets the text associated (by the user) for the given bar value.
|
private Rectangle2D.Float |
getBarValueRectangleCoordinates(int position,
BarValueGroup.BarValue barValue)
Gets the rectangle coords associated (by the user) for the given bar value.
|
private float |
getBottom(Rectangle2D.Float r)
Not sure why this was left out of Rectangle2D...
|
private float |
getRight(Rectangle2D.Float r)
Not sure why this was left out of Rectangle2D...
|
void |
render(Graphics2D g2d)
renders any barValues
|
private void |
setBarValuePosition(BarValueGroup.BarValue barValue,
Rectangle2D.Float bounds)
Gets the rectangle associated (by the user) for the given bar value.
|
private AxisChart axisChart
private FontRenderContext fontRenderContext
private boolean isVertical
private BarChartProperties barChartProperties
private AxisProperties axisProperties
private NumberFormat numberFormat
private boolean showBarValues
private int barValuePosition
private int barValueItem
private Font barValueFont
private Paint barValueFontColor
private float horizontalPadding
private float verticalPadding
private double totalDataValue
private float centerChart
private ArrayList textTagList
public BarValueGroup(AxisChart axisChart, IAxisChartDataSet iAxisChartDataSet)
private String getBarValueAt(int i, double dataValue)
private Rectangle2D.Float getBarValueRectangleCoordinates(int position, BarValueGroup.BarValue barValue)
private float getRight(Rectangle2D.Float r)
private float getBottom(Rectangle2D.Float r)
private void setBarValuePosition(BarValueGroup.BarValue barValue, Rectangle2D.Float bounds)
public void addBarValue(int i, double dataValue, Rectangle2D.Float barRect)
public void render(Graphics2D g2d)