Re: CustomRenderers
"Nathaniel G. Auvil" <[email protected]> Thu, 26 Feb 2004 19:26:21 -0800 (PST)
| Newsgroups | gmane.comp.krysalis.jcharts.devel |
|---|---|
| Message-ID | <[email protected]> |
to override the default Paint used by the bar or point, simply set a different Paint to the Graphics2D Object in the preRender method in your PreAxisValueRenderListener. Take a look at the source of org.jCharts.axisChart.customRenderers.axisValue.renderers.BackgroundRenderer Yeah, the code you submitted is posted under the patches section of the sourceforge site. Times are tough right now for me as I am trying to start my own business while I have a full time gig so I have had no time to do anything for quite some time... --- Chris McKay <[email protected]> wrote: > Hi all, > > I'm writing a custom renderer that will take a parameter signifying that > all points/bars after a certain number will be drawn in a different > color. (this is to get a graph that distinguishes between past values > and future values.) > > The current AxisValueRenderEvent.java code (v1.1 2003/05/17 16:56:35) > only gives me the following methods > > getTotalItemAxisArea > getValueX, getValueY > > These are not enough to enable me to redraw a bar in a different color > or line point in a different shape etc. > > So the question is to add extra functionality will I have to modify the > AxisValueRenderEvent class as well as the various axisChart classes?? Or > have I missed something? > > Thanks, > Chris > > Incidentally you may recall we developed a 3D StackedBar chart and > enabled 45 degree rotated axis labels for jCharts a little while back, > now the smoke has cleared a bit, I'll be doing some CVS diffs and create > a report of suggested changes for the major developers to determine > where and when these mods should be placed. > > > > > ------------------------------------------------------- > SF.Net is sponsored by: Speed Start Your Linux Apps Now. > Build and deploy apps & Web services for Linux with > a free DVD software kit from IBM. Click Now! > http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click > _______________________________________________ > jCharts-developers mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/jcharts-developers __________________________________ Do you Yahoo!? Get better spam protection with Yahoo! Mail. http://antispam.yahoo.com/tools ------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click