Some help on upgrading to 0.9.11

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
Jim D
Posts: 8
Joined: Wed Sep 10, 2003 6:31 am
Location: Silicon Valley CA
Contact:

Some help on upgrading to 0.9.11

Post by Jim D » Wed Sep 10, 2003 7:04 am

Hi All,

I'm currently upgrading from 0.9.8 to 0.9.11..

I've been reading the changes posted by David but I'm still having trouble finding alternate calls to the following methods


CategoryPlot.setValueLabelFont()

CategoryPlot.setValueLabelVisible()

CategoryPlot.setValueLabelFormatString()

BarRenderer.setDefaultOutlinePaint()


Any help would be greatly appreciated..

Jim

Jim D
Posts: 8
Joined: Wed Sep 10, 2003 6:31 am
Location: Silicon Valley CA
Contact:

Post by Jim D » Mon Sep 15, 2003 5:11 pm

Does anybody have any suggestions for alternates of the above calls?

Maybe a link or example code somewhere...

Thanks

Jim

david.gilbert
JFreeChart Project Leader
Posts: 11734
Joined: Fri Mar 14, 2003 10:29 am
antibot: No, of course not.
Contact:

Re: Some help on upgrading to 0.9.11

Post by david.gilbert » Mon Sep 15, 2003 5:32 pm

Jim D wrote:CategoryPlot.setValueLabelFont()
CategoryPlot.setValueLabelVisible()
CategoryPlot.setValueLabelFormatString()
These settings are now controlled by one of the renderers managed by the plot:

Code: Select all

CategoryItemRenderer renderer = myPlot.getRenderer();
renderer.setItemLabelFont(font);
renderer.setItemLabelsVisible(true);
The item label is no longer required to be a value, even though it often is a value, so there is no method to set the number format. Now it is generated in the same way as tooltips, via the org.jfree.chart.labels.CategoryItemLabelGenerator interface. So to change the format, you need to look at the class that implements the interface.
Jim D wrote:BarRenderer.setDefaultOutlinePaint()
There should be a setOutlinePaint(...) method in the renderer, that sets the outline paint for ALL series (set it to null if you want to use a different outline paint PER series). But it looks like it hasn't been added to the code...it will be there in 0.9.13. If you want to add it yourself right away, it needs to be in the AbstractRenderer class.
David Gilbert
JFreeChart Project Leader

:idea: Read my blog
:idea: Support JFree via the Github sponsorship program

Jim D
Posts: 8
Joined: Wed Sep 10, 2003 6:31 am
Location: Silicon Valley CA
Contact:

Post by Jim D » Mon Sep 15, 2003 6:19 pm

Dave,

Thank you very much..

Jim

Locked