setXXXCornerText(str) methods?

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
akini

setXXXCornerText(str) methods?

Post by akini » Wed Apr 24, 2002 12:05 pm

Cross-posted here and in Sourceforge's featurerequest forum. Don't know which forum you track. Sorry for cross-posting.
>>>>>>>>>>>>
Hi,
Please, see the following url:
http://koti.mbnet.fi/~akini/java/jCharts/

It has a modified version of jCharts component, where I added cornertext setters:
setUpperLeftCorner(str)
setUpperRightCorner(str)
setLowerLeftCorner(str)
setLowerRightCorner(str)

Methods provide a way to set an additional strings to a chart picture. Very handy to indicate chartid, print-date, "classified" text, ..., information on a chart picture. We have used jCharts to generate .jpeg chart-pictures on a webpage.

Texts had a hard-coded font setting, but additional font-setter methods are easy to implement.

JFreechart has more options to parameterize chart layout. I would like to use it if/when should update the current application next time.

Any chance to get a similar corner-text features to JFreechart component?

David Gilbert

Re: setXXXCornerText(str) methods?

Post by David Gilbert » Fri Apr 26, 2002 11:02 am

There is a limited ability to place titles in the corner of a chart - for instance, see the small copyright notice in the bottom corner of the TimeSeries1 chart in the JFreeChartDemo application.

This needs to be enhanced with a CombinedTitle class that allows multiple titles to be arranged together in one region (that copyright notice uses up some vertical space, so you can't presently put another title in the opposite corner).

Your setXXXCornerText(...) methods, while less flexible, have the advantage of being very easy to use (and optional) so I may add them.

Regards,

DG.

Locked