Search found 168 matches

by uvoigt
Wed May 07, 2014 1:57 pm
Forum: JFreeChart
Topic: How to limit zoom out range and pan range?
Replies: 1
Views: 3468

Re: How to limit zoom out range and pan range?

In the meantime I wrote a specialized axis. Maybe a similar feature can be added to JFreeChart? package test; import org.jfree.chart.axis.NumberAxis; import org.jfree.chart.event.AxisChangeEvent; import org.jfree.chart.plot.Plot; import org.jfree.chart.plot.ValueAxisPlot; import org.jfree.data.Range...
by uvoigt
Wed May 07, 2014 11:13 am
Forum: JFreeChart
Topic: How to limit zoom out range and pan range?
Replies: 1
Views: 3468

How to limit zoom out range and pan range?

Hi, I want to limit within which ranges the chart can be zoomed out and panned. Is this possible? Example: I have a dataset with x values in range 0-100 and y values 10-35. Now I want to ensure that the chart never displays data that are not in the x and y ranges of my dataset. So I never want to se...
by uvoigt
Wed Dec 21, 2011 8:58 am
Forum: JFreeChart
Topic: Panning in CombinedDomain/RangeXYPlot
Replies: 9
Views: 7500

Re: Panning in CombinedDomain/RangeXYPlot

Hi Martin, the patch looks good although I was not able to test it (I've got a new computer and my test environment is not fully setup yet...). Using the axis.pan() method is much better. I broadly remember that there have been problems with panning logarithmic axes. They will still exist because Lo...
by uvoigt
Sun Dec 18, 2011 12:49 pm
Forum: JFreeChart
Topic: Panning in CombinedDomain/RangeXYPlot
Replies: 9
Views: 7500

Re: Panning in CombinedDomain/RangeXYPlot

Hi Ulrich! Just had a look at your patch. The patch looks recenable, but I can't get the combined plots to pan. Your patch handles CombinedDomainXYPlot and CombinedRangeXYPlot. Thus, the CombinedXYPlotDemo2 resp. CombinedXYPlotDemo4 should IMHO be pannable with the patch applied. However, I can't s...
by uvoigt
Thu Dec 01, 2011 4:24 pm
Forum: JFreeChart
Topic: Panning in CombinedDomain/RangeXYPlot
Replies: 9
Views: 7500

Re: Panning in CombinedDomain/RangeXYPlot

JFreeChart is back. Great!!!

I have added my request as a patch to the current SVN release: https://sourceforge.net/tracker/?func=d ... tid=315494

Ulrich
by uvoigt
Wed May 13, 2009 10:59 am
Forum: JFreeChart
Topic: Panning in CombinedDomain/RangeXYPlot
Replies: 9
Views: 7500

Re: Panning in CombinedDomain/RangeXYPlot

Hello David,
I just want to give you a small trigger to have a look on this patch. Do you want to use it in JFreeChart?
Ulrich
by uvoigt
Wed Apr 22, 2009 11:08 am
Forum: JFreeChart
Topic: Panning in CombinedDomain/RangeXYPlot
Replies: 9
Views: 7500

Panning in CombinedDomain/RangeXYPlot

Hello David, the new panning feature works well! Please add the following method to the CombinedDomainXYPlot class to enable panning of the range axis: public void panRangeAxes(double percent, PlotRenderingInfo info, Point2D source) { if (!isRangePannable()) { return; } XYPlot subplot = findSubplot(...
by uvoigt
Wed Apr 22, 2009 10:33 am
Forum: JFreeChart
Topic: Problems with new SamplingXYRenderer
Replies: 6
Views: 6195

Problems with new SamplingXYRenderer

Hi David, I have tested the new SamplingXYRenderer for my purposes and found some issues. I have written a small test program to visualize the difference between the standard XYLineAndShapeRenderer and the new SamplingXYRenderer. As far as I have understood there should be no difference? The test pr...
by uvoigt
Fri Mar 20, 2009 8:35 am
Forum: JFreeChart
Topic: panning code example
Replies: 23
Views: 22434

Re: panning code example

Yes, that will do it - thanks. I'm wondering if I can't make the code a little cleaner by just delegating to a pan(double percent) method in the axis class, then have the axis handle it appropriately. Seems to be a good idea. The plot itself can check if the axis supports panning and delegates the ...
by uvoigt
Thu Mar 19, 2009 4:59 pm
Forum: JFreeChart
Topic: panning code example
Replies: 23
Views: 22434

Re: panning code example

I even wonder, why (for the panning) my Date Axis changed into a Value Axis. :o
So formatting this way doesn't work anymore?
Have you tried it? I think it should work. DateAxis is just a subclass of the ValueAxis class.
by uvoigt
Thu Mar 19, 2009 4:28 pm
Forum: JFreeChart
Topic: panning code example
Replies: 23
Views: 22434

Re: panning code example

David, I've seen that you have committed some stuff. Well done! I have the following comments: Look at my patch above to fix the logarithmic axis problems. The CombinedDomain/RangeXYPlot plots need some specific panning code. I have implemented them as follows: + In the CombinedDomainXYPlot the panD...
by uvoigt
Thu Mar 19, 2009 2:16 pm
Forum: JFreeChart
Topic: panning code example
Replies: 23
Views: 22434

Re: panning code example

Post a patch if you are successful!
by uvoigt
Thu Mar 19, 2009 1:10 pm
Forum: JFreeChart
Topic: panning code example
Replies: 23
Views: 22434

Re: panning code example

The following code works also with logarithmic axis. public void panRangeAxis(double panRange, PlotRenderingInfo info, Point2D source) { for (int i = 0; i < getRangeAxisCount(); i++) { ValueAxis rangeAxis = getRangeAxis(i); double oldLowerPixel = rangeAxis.valueToJava2D(rangeAxis.getLowerBound(), in...
by uvoigt
Thu Mar 19, 2009 12:09 pm
Forum: JFreeChart
Topic: panning code example
Replies: 23
Views: 22434

Re: panning code example

The problem does already exist in my patch. public void panRangeAxis(double panRange, PlotRenderingInfo info, Point2D source) { double fullRange = (getOrientation() == PlotOrientation.HORIZONTAL ? info.getDataArea() .getWidth() : info.getDataArea().getHeight()); for (int i = 0; i < getRangeAxisCount...
by uvoigt
Tue Mar 17, 2009 7:09 pm
Forum: JFreeChart
Topic: panning code example
Replies: 23
Views: 22434

Re: panning code example

That sounds great. Let me know if you need any help.