Package org.jCharts.chartText
Class BarValueGroup
java.lang.Object
org.jCharts.chartText.BarValueGroup
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected classHelper class to handle a barValue - wraps TextTag Meant to be called only by BarValueGroup class. -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate AxisChartprivate AxisPropertiesprivate BarChartPropertiesprivate Fontprivate Paintprivate intprivate intprivate floatprivate FontRenderContextprivate floatprivate booleanprivate NumberFormatprivate booleanprivate ArrayListprivate doubleprivate float -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddBarValue(int i, double dataValue, Rectangle2D.Float barRect) Adds a bar value for the given data item, if barValues are onprivate StringgetBarValueAt(int i, double dataValue) Gets the text associated (by the user) for the given bar value.private Rectangle2D.FloatgetBarValueRectangleCoordinates(int position, BarValueGroup.BarValue barValue) Gets the rectangle coords associated (by the user) for the given bar value.private floatNot sure why this was left out of Rectangle2D...private floatNot sure why this was left out of Rectangle2D...voidrender(Graphics2D g2d) renders any barValuesprivate voidsetBarValuePosition(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
-