Package org.jCharts.chartText
Class BarValueGroup
java.lang.Object
org.jCharts.chartText.BarValueGroup
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected class
Helper class to handle a barValue - wraps TextTag Meant to be called only by BarValueGroup class. -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate AxisChart
private AxisProperties
private BarChartProperties
private Font
private Paint
private int
private int
private float
private FontRenderContext
private float
private boolean
private NumberFormat
private boolean
private ArrayList
private double
private float
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addBarValue
(int i, double dataValue, Rectangle2D.Float barRect) Adds a bar value for the given data item, if barValues are onprivate 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
Not sure why this was left out of Rectangle2D...private float
Not sure why this was left out of Rectangle2D...void
render
(Graphics2D g2d) renders any barValuesprivate void
setBarValuePosition
(BarValueGroup.BarValue barValue, Rectangle2D.Float bounds) Gets the rectangle associated (by the user) for the given bar value.
-
Field Details
-
axisChart
-
fontRenderContext
-
isVertical
private boolean isVertical -
barChartProperties
-
axisProperties
-
numberFormat
-
showBarValues
private boolean showBarValues -
barValuePosition
private int barValuePosition -
barValueItem
private int barValueItem -
barValueFont
-
barValueFontColor
-
horizontalPadding
private float horizontalPadding -
verticalPadding
private float verticalPadding -
totalDataValue
private double totalDataValue -
centerChart
private float centerChart -
textTagList
-
-
Constructor Details
-
BarValueGroup
-
-
Method Details
-
getBarValueAt
Gets the text associated (by the user) for the given bar value. Meant only to be called by BarChart.render() -
getBarValueRectangleCoordinates
private Rectangle2D.Float getBarValueRectangleCoordinates(int position, BarValueGroup.BarValue barValue) Gets the rectangle coords associated (by the user) for the given bar value. Meant only to be called by BarChart.render() -
getRight
Not sure why this was left out of Rectangle2D... -
getBottom
Not sure why this was left out of Rectangle2D... -
setBarValuePosition
Gets the rectangle associated (by the user) for the given bar value. Meant only to be called by BarChart.render() -
addBarValue
Adds a bar value for the given data item, if barValues are on -
render
renders any barValues
-