simple PATCH for OverlaidXYPlot used with secondaryAxis

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

simple PATCH for OverlaidXYPlot used with secondaryAxis

Post by Xavier Poinsard » Tue Mar 04, 2003 6:57 pm

The render2 method is missing in OverlaidXYPlot.

Here is one basic implementation which solved missing secondaryDataset plot :

/**
* Renders the subplots (secondary).
* <P>
* The draw(...) method inherited from XYPlot takes care of all the setup
* (background and axes) then calls the render(...) method.
*
* @param g2 the graphics device.
* @param dataArea the area inside the axes.
* @param info optional information collection.
* @param crosshairInfo collects information about crosshairs.
*/
public void render2(Graphics2D g2, Rectangle2D dataArea,
ChartRenderingInfo info, CrosshairInfo crosshairInfo) {

Iterator iterator = subplots.iterator();
while (iterator.hasNext()) {
XYPlot subplot = (XYPlot) iterator.next();
subplot.render2(g2, dataArea, info, crosshairInfo);
}
}

Xavier Poinsard

Re: simple PATCH for OverlaidXYPlot used with secondaryAxis

Post by Xavier Poinsard » Wed Mar 05, 2003 12:18 pm

Well my previous patch isn't sufficient.
I produced another one.

David let me know the best place to send you the patch.

David Gilbert

Re: simple PATCH for OverlaidXYPlot used with secondaryAxis

Post by David Gilbert » Wed Mar 05, 2003 3:34 pm

Hi Xavier,

A good idea is to attach the patch to a bug report or feature request on the project page at SourceForge:

http://sourceforge.net/projects/jfreechart

Alternatively, you can just e-mail it to me (but then no-one else has access to it until I get around to dealing with it).

Regards,

Dave Gilbert


David Gilbert

Re: simple PATCH for OverlaidXYPlot used with secondaryAxis

Post by David Gilbert » Thu Mar 06, 2003 5:42 pm

Hi Xavier,

Thankyou very much...

Regards,

Dave Gilbert

Locked