Search found 21 matches
- Fri Apr 02, 2010 1:48 am
- Forum: JFreeChart
- Topic: Thread-safe way to draw JFreeChart as pdf off of the EDT?
- Replies: 0
- Views: 2156
Thread-safe way to draw JFreeChart as pdf off of the EDT?
I'm using the iText library and the JFreeChart draw(Graphics2D g2, Rectangle2D area) method to draw a plot to a pdf file so that they can be edited in Adobe Illustrator. The chart being drawn is being displayed in a ChartPanel at the same time. If I draw the pdf on the EDT my GUI freezes up, but I'm...
- Mon Aug 31, 2009 1:33 am
- Forum: JFreeChart
- Topic: Bug Report: RendererUtilities.findLiveItems() w/ bar chart
- Replies: 3
- Views: 3269
Bug Report: RendererUtilities.findLiveItems() w/ bar chart
Hi, Just wanted to let you know that I'm fairly sure there is a bug in RendererUtilities.findLiveItems(). When searching for live items, dataset.getXValue() is called. If the dataset is an XYIntervalSeriesCollection, this means that an item is only considered live if the x midpoint is in the plot (a...
- Wed Jan 21, 2009 7:16 pm
- Forum: JFreeChart
- Topic: XYPolygonAnnotation drawing bug
- Replies: 4
- Views: 3854
Cool. If you want to, post a diff of the changes you made and I'll update the class for the next release. I'd be happy to help, but my code is actually specialized to deal with only the type of polygon that my project utilizes... I'm not sure it would work for all cases. Plus, I'm a rather amateur ...
- Wed Jan 21, 2009 3:01 am
- Forum: JFreeChart
- Topic: XYPolygonAnnotation drawing bug
- Replies: 4
- Views: 3854
Thanks David. I overrode the XYPolygonAnnotation draw() method and did as you suggested, and the problem is fixed. As an aside, I also added in a method that checks whether the annotation falls within the viewing area and returns immediately if it does not (saving several rather expensive JavaTo2D m...
- Tue Jan 20, 2009 1:35 am
- Forum: JFreeChart
- Topic: XYPolygonAnnotation drawing bug
- Replies: 4
- Views: 3854
XYPolygonAnnotation drawing bug
I have a DomainAxis that is extremely long (1-250,000,000). When I zoom to small windows of this domain (e.g. < 200), my XYPolygonAnnotation that spans the entire axis is not drawn for some - but not all! - of the window sizes (e.g. 45 no, 31 yes)... I strongly suspect that there is some sort of rou...
- Mon Jan 19, 2009 9:00 pm
- Forum: JFreeChart
- Topic: setToolTipGenerator() for XYAnnotations in an XYPlot?
- Replies: 2
- Views: 2946
- Mon Jan 19, 2009 7:46 pm
- Forum: JFreeChart
- Topic: setToolTipGenerator() for XYAnnotations in an XYPlot?
- Replies: 2
- Views: 2946
setToolTipGenerator() for XYAnnotations in an XYPlot?
I have a heavily customized XYPlot that contains a large number of XYPolygonAnnotations. I'd like to handle tooltip generation in a manner similar to that allowed for the XY data in an XYPlot... but I can't find any mention of such a capability in the developer's guide. Am I missing something? Or do...
- Tue Dec 16, 2008 10:28 pm
- Forum: JFreeChart
- Topic: Only draw lines between currently visible XYSeries points?
- Replies: 0
- Views: 1652
Only draw lines between currently visible XYSeries points?
I'm curious if anyone could recommend an efficient way to accomplish this. I have a graph with a very large range on the x-axis that can be viewed by zooming in and scanning along the axis. I'd like to prevent the connection of lines between points in my XYSeries if they are separated by a large dis...
- Fri Nov 21, 2008 5:43 pm
- Forum: JFreeChart
- Topic: setBasePaint not giving same result as deprecated setPaint..
- Replies: 5
- Views: 4641
Thank you David, that works perfectly. I thought I had tried that before, but I realize now I probably set the autofillpaint. Any thoughts on my request from my initial post? I often find that I want to add something to a dataset and then immediately require the index. It would be great if the stand...
- Wed Nov 19, 2008 5:53 pm
- Forum: JFreeChart
- Topic: setBasePaint not giving same result as deprecated setPaint..
- Replies: 5
- Views: 4641
- Wed Nov 19, 2008 2:18 am
- Forum: JFreeChart
- Topic: setBasePaint not giving same result as deprecated setPaint..
- Replies: 5
- Views: 4641
setBasePaint not giving same result as deprecated setPaint..
I have a XYLineAndShapeRenderer that needs to paint all series black. This works fine with the deprecated setPaint method, but when I use setBasePaint it does not work (each XYSeries is a different color). The note for the deprecated method says: Deprecated. This method should no longer be used (as ...
- Tue Nov 04, 2008 5:25 pm
- Forum: JFreeChart
- Topic: Strange behavior of XYLineAnnotation with dashed strokes....
- Replies: 1
- Views: 2167
Hmmmm.. still no comments. I acknowledge that this isn't a hugely important issue, but I'm fairly sure it points to some sort of underlying bug. I went ahead and submitted the issue to SourceForge. Here is the link if anyone wants to check the status: https://sourceforge.net/tracker2/?func=detail&ai...
- Tue Oct 28, 2008 9:41 pm
- Forum: JFreeChart
- Topic: Strange behavior of XYLineAnnotation with dashed strokes....
- Replies: 1
- Views: 2167
Strange behavior of XYLineAnnotation with dashed strokes....
I have encountered what might qualify as a bug in JFreechart 1.0.11. I have an XYPlot with a very large domain number axis (integers from 1 - 1,000,000). I place an XYLineAnnotation spanning the full length of this axis. If I use a standard basic stroke (e.g. new BasicStroke(1)), I have no troubles....
- Fri Oct 24, 2008 5:36 pm
- Forum: JFreeChart
- Topic: Need advice on customizing XYBarRenderer
- Replies: 2
- Views: 2979
Thanks for the reply David. I will give the ClusteredXYBarRenderer a try. but what is the rule you are using to determine the bar width? Because the bars tend to be spaced at roughly increments of 100 along my giant X-axis, I'm scaling them based on the span of the visible x-axis. Anyway, it isn't t...
- Wed Oct 22, 2008 6:49 pm
- Forum: JFreeChart
- Topic: Need advice on customizing XYBarRenderer
- Replies: 2
- Views: 2979
Need advice on customizing XYBarRenderer
Hello, I have the developer's guide, and with its assistance I was able to extend XYBarRenderer and override the drawItem() method to suit some of my needs. However, I'm still a bit unsure of the best way to achieve the type of display I require, and I could use some advice. I have a dynamic plot in...