There's:
setBaseItemLabelGenerator()
setItemLabelGenerator()
What's is each for?
thanks - dave
What is the difference on set**LabelGenerator
-
- Posts: 106
- Joined: Fri May 27, 2005 7:44 pm
- Location: Boulder, CO
- Contact:
Re: What is the difference on set**LabelGenerator
setItemLabelGenerater() is deprecated so you shouldn't use it.
setBaseItemLabelGenerator() is the label generator used if you don't specify any alternative for series/points.
setBaseItemLabelGenerator() is the label generator used if you don't specify any alternative for series/points.
-
- JFreeChart Project Leader
- Posts: 11734
- Joined: Fri Mar 14, 2003 10:29 am
- antibot: No, of course not.
- Contact:
Re: What is the difference on set**LabelGenerator
setBaseXXX() sets the default value for an attribute when it doesn't have a "per series" value. I should call these methods setDefaultXXX.
setSeriesXXX() sets the value for an attribute for a particular series. I often refer to this as the "per series" setting.
setXXX() generally overrides both the "per series" and the base or default attribute values...handy to make a temporary override and then restore the previous settings (just by setting the override to null again), but it adds clutter and confusion in an already large API so I've deprecated these methods and they'll be removed later. I should probably have called these methods setOverrideXXX().
setSeriesXXX() sets the value for an attribute for a particular series. I often refer to this as the "per series" setting.
setXXX() generally overrides both the "per series" and the base or default attribute values...handy to make a temporary override and then restore the previous settings (just by setting the override to null again), but it adds clutter and confusion in an already large API so I've deprecated these methods and they'll be removed later. I should probably have called these methods setOverrideXXX().
David Gilbert
JFreeChart Project Leader
Read my blog
Support JFree via the Github sponsorship program
JFreeChart Project Leader

