Search found 24 matches

by tomkieffer
Thu May 28, 2009 11:09 am
Forum: JFreeChart
Topic: Using DateAxis and XYBarRenderer with double values
Replies: 0
Views: 1948

Using DateAxis and XYBarRenderer with double values

Hi, I'm often using a DateAxis with a DefaultXYDataset. I store the long values representing the timestamps in the double array that is passed to DefaultXYDataset.addSeries(). With XYLineAndShapeRenderer this works really fine and I appreciate that DateAxis "understands" the doubles as dates. The pr...
by tomkieffer
Fri Jan 09, 2009 5:52 pm
Forum: JFreeChart
Topic: Dragging mouse is extremely slow
Replies: 29
Views: 52807

For completeness, the property

System.setProperty("sun.java2d.d3d", "false")

is not a runtime JVM setting, but if you set this as first line in the static void main method, it works.
by tomkieffer
Fri Jan 09, 2009 9:12 am
Forum: JFreeChart
Topic: Saving chart information to xml
Replies: 0
Views: 2216

Saving chart information to xml

Hi, I am looking for a way to save chart information, eg. title, chart type, formats, axis mapping, in short all properties necessary to rebuild a chart but the data. I'm thinking about an xml file, because serialization will probably be to fragile. I did not find anything similar in the JFreeChart ...
by tomkieffer
Tue Dec 30, 2008 12:10 am
Forum: JFreeChart
Topic: Dragging mouse is extremely slow
Replies: 29
Views: 52807

Setting

System.setProperty("sun.java2d.d3d", "false");

does the deal. This problem is happening with a lot of code under windows. It is also in the Sun bug database (XOR rendering).
by tomkieffer
Thu Apr 10, 2008 2:55 pm
Forum: JFreeChart
Topic: XYPlot not releasing resources when setting dataset to null
Replies: 16
Views: 18858

I tried to point out that the dataset is only set to null, because by subclassing alone I have no access to the collections and have no possibility of actually removing items. That's why I would have liked the fields in XYPlot to be protected instead of private in the first place.
by tomkieffer
Thu Apr 10, 2008 11:01 am
Forum: JFreeChart
Topic: XYPlot not releasing resources when setting dataset to null
Replies: 16
Views: 18858

My fault

Think I've found the error. I was forgetting changing seconds to minutes and actually created the huge data load. But check the running demo prvided in my previous post anyway, just to see that there really is no problem with the remove code. I've thought for a long time that there should be some ki...
by tomkieffer
Thu Apr 10, 2008 10:49 am
Forum: JFreeChart
Topic: XYPlot not releasing resources when setting dataset to null
Replies: 16
Views: 18858

running code

Here is a running code sketch of what I'm doing. Just check it out for the remove thing. In the original libraries add and remove are class methods of the plot and have some more sophisticated code, but this is the essence. And this is why I think there can't be a problem with the removing. For the ...
by tomkieffer
Wed Apr 09, 2008 11:05 pm
Forum: JFreeChart
Topic: XYPlot not releasing resources when setting dataset to null
Replies: 16
Views: 18858

this should not be the problem

I thank all of you for your prompt relies, because I already passed quite some time on this problem. But there is no problem with the loop. - The plot is created with an empty dataset (it needs one in the constructor) at first that I will never touch again. This makes for the 1 in the loop. - No ind...
by tomkieffer
Wed Apr 09, 2008 3:58 pm
Forum: JFreeChart
Topic: XYPlot not releasing resources when setting dataset to null
Replies: 16
Views: 18858

XYPlot not releasing resources when setting dataset to null

I have a memory problem in my JFreeChart Application (a data viewer with variable data sources). I wrote a custom XYPlot that has an addDataset() and removeDataset() method, among others. removeDataset() sets the dataset in question to null. Now the app does two things: You can add and remove datase...
by tomkieffer
Wed Jan 16, 2008 2:05 pm
Forum: JFreeChart
Topic: Code for multiline Axis label / text
Replies: 0
Views: 2588

Code for multiline Axis label / text

Hi, to generate multiline axis labels I changed the following two methods (getTextBounds, drawRotatedString) in org.jfree.text.TextUtilities as it seemed more comfortable to me than trying to change the axis class to use textblocks (although this was a lot of work, too, despite the small result). "\...
by tomkieffer
Wed Jan 09, 2008 11:13 am
Forum: JFreeChart
Topic: Bug in XYDifferenceRenderer with inversed domain values
Replies: 3
Views: 3764

Bug in XYDifferenceRenderer with inversed domain values

Hi, I created the following demo to demonstrate what I think is a bug in XYDifferenceRenderer. Every thing is ok, if at line 35 the code "inverse(time)" is inactive . If however, as in the demo, I inverse the x-axis values (before creating the dataset), the Renderer draws only lines. P.S. I added th...
by tomkieffer
Tue Dec 18, 2007 2:03 pm
Forum: JFreeChart
Topic: Equal legend items in CombinedRangeXYPlot (with running demo
Replies: 1
Views: 3377

different renderers for different plots

Every subplot needs its own renderer. The error was to set the renderer only once for CombinedDomainXYPlot and not for every subplot. At this time, I don't really see why CombindexDomainXYPlot should extend the plot class hierarchy at all, as every subplot is a complete and functionally independant ...
by tomkieffer
Thu Dec 13, 2007 9:29 am
Forum: JFreeChart
Topic: Equal legend items in CombinedRangeXYPlot (with running demo
Replies: 1
Views: 3377

Equal legend items in CombinedRangeXYPlot (with running demo

In my CombinedRangeXYPlot all legend items are equal (to the series name of the last series added). I created the very simple demo below to reproduce what I mean. Either I have a really stupid error in my code that I can't see or it's a bug. Just try the demo. package bugfinder; import java.awt.Bord...
by tomkieffer
Tue Oct 02, 2007 8:31 am
Forum: JFreeChart
Topic: A little help for multiline axis labels
Replies: 0
Views: 2219

A little help for multiline axis labels

Hello, I'm changeing the TextUtilities Class to allow multiline Axis Labels with the \n line break character. I get the String to be drawn in multiple lines, the remaining problem is that the dataArea and plotArea size do not change, so the axis label is being drawn out of sight due to the shifting ...
by tomkieffer
Mon Oct 01, 2007 10:45 am
Forum: JFreeChart
Topic: Setting the X-Axis and Y-axis Line
Replies: 5
Views: 8119

use the upper an lower bounds of the axis to x and -x. 0 will be in the middle.