Closed GoogleCodeExporter closed 9 years ago
Well, this is another 5 minutes mod, isn't it?
Original comment by luca.cri...@gmail.com
on 8 Sep 2013 at 5:17
My own fix:
Assign an independent color to curve values (so that you can have text values
drawn in another color)
In
XYChart.java/drawChartValues()
BarChart.java/drawChartValues()
RangeBarChart.java/drawChartValues()
I added this block aty the beginning:
final Paint pntValues = paint;
if (XYSeriesRenderer.getChartValuesTextColor() != DefaultRenderer.NO_COLOR)
{
pntValues.setColor(XYSeriesRenderer.getChartValuesTextColor());
}
And replaced all occurences of paint with pntValues
Then, in
XYSeriesRenderer.java
I added this field at the beginning, in declarations:
/** The chart values text color. */
/** Special color to use as NULL **/
private static int mChartValuesTextColor = DefaultRenderer.NO_COLOR;
And I added its getter e setter:
/**
* Returns the value text color.
*
* @return the value text color
*/
public static int getChartValuesTextColor()
{
return mChartValuesTextColor;
}
/**
* Sets the value text color
*
* @param color the value text color
*/
public void setChartValuesTextColor(int color)
{
mChartValuesTextColor = color;
}
That's it
Original comment by luca.cri...@gmail.com
on 1 Oct 2013 at 12:51
Original comment by dandrome...@gmail.com
on 31 Oct 2013 at 8:46
Original issue reported on code.google.com by
luca.cri...@gmail.com
on 8 Sep 2013 at 5:15