SWT « Development « JFreeChart Q&A





1. JFreeChart with SWT    stackoverflow.com

I'm developping a plugin for eclipse and extending the org.eclipse.ui.views extension point. I want to use JFreeChart for drawing some graphics in eclipse view. Is it possible to use JFreeChart with ...

2. JFreeChart with SWT Eclipse 3.6.2 Windows 7 MouseWheelListener Problem    stackoverflow.com

I'm trying to add MouseWheelZoom functionality to my Eclipse RCP (3.6.2) JFreeChart View and use this peace of code: chart4Me.googlecode.com It works fine in Ubuntu 11.04 (32/64bit). However it doesn't work on ...

3. Overlay for SWT Chart Composite    jfree.org

First, Jfreechart is an excellent product, thanks to all who have contributed to its development. My question is, does anyone know if the Overlay feature has been implemented for version 1.14, and if not is there any work being done for this for future releases? I would like to experiment with the alternate crosshair implementation using overlays, but I am developing ...

4. using JFreeChart with SWT and/or JFace    jfree.org

protected void createContents() { shell = new Shell(); shell.setSize(500, 375); shell.setText("SWT Application"); final Composite drawarea = new Composite(shell, SWT.NONE); drawarea.setBounds(65, 65, 317, 192); Frame canvasFrame ...

5. Home for SWT JFreeChart?    jfree.org

Thanks for that, "silent". At first your recommendation didn't seem an option - since the target application is an open-source app for which no licensing costs are required. On reflection though, the "unlimited distribution" cost is less than I'd expect SWT-JFreeChart to cost, and it may be an option. I'll save RChart as a "fallback" option. Cheers, Ian.

6. Licensing question and SWT    jfree.org

I would like to make use of JFreeChart from within an Eclipse Rich Client Platform (RCP) application I am developing. 3 questions: (1) Am I ok to repackage JFreeChart as an Eclipse plugin (or indeed have you already done this)? (2) If I am do you have any preferences for a plugin name. The Eclipse conventions would suggest org.jfree.chart but I ...

8. JFreeChart port to SWT    jfree.org

Hi JfreeChart users, I've just completed a good step toward porting JFreeChart to the Standard Widget Toolkit. Following my last week stuggle to run my program on a free stack, I figured out the best way would be to have jfreechart running natively on top of SWT. I finally decided to give it a shot and I just came through after ...

9. JFreeChart for SWT as eclipse plugin    jfree.org

Hey! I have some charting requirement in a pretty large product that is an Eclipse RCP application (embedded networking monitor/management tool). After some dabbling with other packages, I'm back to JFreeChart and working on a bridge between SWT and JFreeChart. Just spent a day and I'm pretty much at a point where the charts seem to be working fine and dandy ...





10. Pure SWT?    jfree.org

11. JFreeChart SWT version    jfree.org

Hi all, I am raghavan , I have used Jfreechart Swing version It was fabulous to work with Tool ... Presently My Project requirement has changed They want to Implement Jfreecharts in SWT i have used Swt version also It was good .. I wanted to just know By when will they Release the complete JfreeChart -SWT version .. Thanks In ...

12. SWT crossHair    jfree.org

14. JFreeCharts for SWT    jfree.org

JFreeCharts in SWT Does 1.0.3 have SWT support? I didnt see this package (org.jfree.experimental.chart.swt.ChartComposite) in the jfreechart-1.0.3-experimental.jar. Whats the best way to use JFreeChart in SWT applications? I am working on a dynamic (live data) bar chart. Feel free to suggest any. I have seen jfreechart-swt-support.jar on sourceforge. Is this the best thing available for now? Comments? I read a few ...

15. [Sample] Dynamic jfreechart for SWT demo    jfree.org

[Sample] Dynamic jfreechart for SWT demo by silent Fri Mar 30, 2007 4:14 am Hi. I saw some questions for dynamic swt jfreechart recently. Here is demo code. Try this. But, it have some problems. Just now, I don't know why. If I don't use ChartComposite.forceRedraw(), chart can't redraw itself. And error occur after a short period of time. Need ...

16. Update in chart Composite class(swt)    jfree.org

Hi all , I tried to add mouse events to my chart but it is unable to recognize the mouse events . Then i tried to use the chart composite class Canvas it was working fine . I feel it is better if we have setter and getters for Canvas variable too to get the mouse events if we want to ...





17. Print option in Jfreechart swt    jfree.org

Print option in Jfreechart swt by raghavan_26 Mon Apr 23, 2007 11:40 am I was able to get Print option work in chart composite class using the following code in createChartPrintJob method Code: Select all PrintDialog dialog = new PrintDialog(this.getShell()); // Opens a dialog and let use user select the ...

18. IntervalMarker on SWT    jfree.org

19. JFreeChart and SWT    jfree.org

Hello, yesterday I brought the developer guide in the hope that this guide would contain information about using JFreeChart with swt. As far as I can see no information are included in this guide for using jfreechart-1.0.6-swt.jar. Do you have plan to document the usage of swt in your guide? Best regards, Lars

20. Problems with SWT    jfree.org

I'm trying to open a new window with a JFreeChart plot, from a swt rcp application, but when I just instantiate an object, it says: "An error has occured. See error log for more details." I look in Eclipse's error log and there's nothing (I'm opening the app from inside Eclipse). I tried to debug and it doesn't even instantiate it: ...

21. Change default zoom behaviour in SWT    jfree.org

Hi, Is there a recommended way to change how ChartComposite handles zooming? At the moment, it handles rectangles drawn left-to-right (zooms) differently from rectangles drawn right-to-left (restores auto bounds). Is it possible to have both of these delegate down to the plot so that it can decide how to handle both circumstances? -Dan

22. SWT Backgroundimage    jfree.org

by david.gilbert Mon Nov 26, 2007 12:06 pm Here's a patch that I knocked together. Bear in mind that I know next-to-nothing about SWT, so this might be rubbish...but it seems to work (a little slowly perhaps): Code: Select all Index: /home/dgilbert/workspace/jfreechart-1.0.x-bugs/swt/org/jfree/experimental/swt/SWTGraphics2D.java =================================================================== --- /home/dgilbert/workspace/jfreechart-1.0.x-bugs/swt/org/jfree/experimental/swt/SWTGraphics2D.java (revision 429) +++ /home/dgilbert/workspace/jfreechart-1.0.x-bugs/swt/org/jfree/experimental/swt/SWTGraphics2D.java (working copy) @@ -49,6 +49,7 @@ ...

23. XYImageAnnotation with SWT    jfree.org

Hello, I wanted to use an XYImageAnnotation in a Chart. I'm using JFreeChart with SWT, so ChartComposite is my Container, where I put the Chart. The problem was, that XYImageAnnotations didn't apear in the chart, while other Annotations like TextAnnotations appeared. So after a few hours of debugging I found out, that using SWT, the object g2 in XYImageAnnotation.draw(Graphics2D g2, XYPlot ...

24. Embedding a JFreeChart object in an SWT group    jfree.org

Embedding a JFreeChart object in an SWT group by dlucas Sun Dec 30, 2007 7:29 pm I have successfully built the JFreeChart 1.0.8a source along with its experimental SWT support. I have also read all of this forum's posts with "SWT" in the post, but it is still not clear to me if there is or is not a way ...

25. ****News on JFreeChart in Swt!!!****    jfree.org

Hi Kenzo, It's not decided yet but I think the experimental SWT branch will be in the moved in the main tree in jfreechart 1.2.0. Regarding your second question, it's not very clear to me what you're asking. The experimental code already do that (you do not need the method SWT_AWT.new_Frame). It's quite stable now, but there are a few things ...

26. SWT support    jfree.org

I'm just starting out with JFreeChart and I'm trying to build the swt ver. but I'm get compilation errors. I think the problem is that I'm using an old ver. of SWT lib, so I was wonder what version of SWT libs are supported. Also I just found a jfreechart-1.0.9-swt.jar in the lib dir, what ver and os ver of swt ...

27. SWT and zooming functions    jfree.org

I tried again, and I got new elements, especially with this example : gashalot.com/software/JFreeChartSWTDemo.java In an isolated app, I can use zooming function using ChartComposite instead of ChartPanel, only if I'm using this kind of code after displaying the chart : // standard SWT dispose loop while (!parent.isDisposed()) { if (!display.readAndDispatch()) display.sleep(); } but it's not satisfying at all, because in ...

28. SWT fails to refresh after I add data to chart    jfree.org

I have this RCP program that uses jfreechart. The way that I create the chart is that I first create the dataset TimeSeriesCollection dataset = new TimeSeriesCollection(); dataset.addSeries(series); And then I create the chart ChartFactory.createTimeSeriesChart(....) But the dataset are filled by the series that are running in their own thread! This way at lest in AWT I had the following effect. ...

29. popupmenu SWT    jfree.org

Hey, I use Jfreechart in a RCP application and I have a problem : I can't change the popupmenu using a chartComposite is it under development or do I use it badly ? Here is my code (trying to remove the popupmenu) : ChartPanel chartPanel = new ChartPanel(chart, true); chartPanel.setPopupMenu(null); final ChartComposite frame = new ChartComposite(parent, SWT.NONE,chartPanel.getChart(), true);

30. SWT chart grid looks blurry (Antialiasing)    jfree.org

Hi there, it seems like the antialiasing feature affects the appearance of a SWT chart grid so the lines are a bit blurry, which is not the case when using an ApplicationFrame. Is there any possibility to use antialiasing only for the data line itself (in the case of a line chart)? Regards, Sebastian

31. JFreeChart V 1.0.12 SWT in Eclipse 3.5M5 Mac cocoa-swt    jfree.org

Hello This is more informational then anything. I'm posting here in the chance that this will be helpful to someone. I'm running Mac OS X 10.5.6 on a Macbook Pro 15" using java 1.5. There seems to be a bug, not sure if its in jfreechart or swt-cocoa M5. When I run my app with the ohlc chart in eclipse 3.4, ...

32. SWT Charts/Graphs/Graphics and dispose    jfree.org

SWT Charts/Graphs/Graphics and dispose by berlinbrown Tue Feb 24, 2009 6:18 pm I have a SWT based chart that I am opening within a new Graphic/Composite. When I don't dispose of any resources and just bring up the window again,it doesn't refresh when I change the chart/graph content. So, I disposed of the 'ChartComposite' and now when I bring up ...

33. JFreeChart & SWT - How to redraw?    jfree.org

Hi everyone, I've been working on a project with SWT and JFreeChart. In the program there is a SWT Listbox, when the user click on an item of the listbox, correspondant data is pulled and displayed with org.jfree.experimental.ChartComposite. The problem I've occurred to is how to update the ChartComposite properly. It seems neither redraw() or update() would do the job. Though ...

34. changing charts displayed with SWT    jfree.org

First of all, I apologize if this is more of an SWT question. I am trying to use the experimental SWT stuff and everything has been working wonderfully so far. The issue I'm running into now is that I have a composite that is displaying two different charts. I need the ability to dynamically change what type of chart one of ...

35. SWT JFreeChart click / drill down    jfree.org

Hello! First of all, thank you for providing the community with such a wonderful charting library. I'm working on my third project in which I will use JFreeChart. This time I'm working on an Eclipse plug-in. I managed to have the charts display correctly in my Eclipse form. However I wish to add drill down capabilities. In short, I need to ...

37. how is the status of JFreechart SWT implementation now?    jfree.org

our company need to use a chart library in eclipse. and i am glad to see that the latest jfreechart has an experimental swt implementation. and i have tried some simple example using ChartComposite implementation. But i am not sure about how swt is supported: 1. can all the chart started by java web start easily port to swt after i ...

38. Gradient IntervalMarker in SWT?    jfree.org

I tried to do an interval marker with a gradient paint, and I only get one color, not the gradient. I'm using SWT. I tried the DifferenceChartDemo2 in an SWT ChartComposite, and I got the same (non-working behavior). I just get red for the marker. Is this an known SWT issue? Is there a workaround?

39. LinkageError on swt 3.6    jfree.org

Hello. I have used JFreeChart with swt 3.3.2 and everything works fine. I moved to swt 3.6 and i have such exception when adding ChartMouseListener to ChartCompositre. Do you know what is wrong? java.lang.LinkageError: loader constraint violation: loader (instance of org/eclipse/osgi/internal/baseadaptor/DefaultClassLoader) previously initiated loading for a different type with name "org/jfree/chart/ChartMouseListener" at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(Unknown Source) at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.defineClass(DefaultClassLoader.java:188) at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.defineClass(ClasspathManager.java:580) ...

41. How to use JFreeChart with SWT (includes sample code)    jfree.org

I have seen a number of posts asking how to use JFreeChart within SWT applications. Most solutions appear to rely on converting AWT Image's into SWT Image's. That process works fine, but seems overly tiedious. Newer SWT implementations are beginning to provide very rough wrappers around a java.awt.Panel that allow older AWT/Swing components to be reused inside of SWT applications. Currently ...