Search found 23 matches
- Tue Aug 20, 2013 11:45 am
- Forum: JFreeChart
- Topic: Mouse event for Clicking on axes.
- Replies: 3
- Views: 5821
Re: Mouse event for Clicking on axes.
I would be interested in that too. Specifically, I want to replace the right-click action with something of my own. But only on the axis, anywhere else in the ChartPanel, the normal rightclick should be used. How would I do something like that?
- Thu Jul 26, 2012 2:15 pm
- Forum: JFreeChart
- Topic: Bug in XYSeriesCollection
- Replies: 3
- Views: 5890
Re: Bug in XYSeriesCollection
I would not recommend catching Exception. Always specify which Exception. In this case XYSeries k = null; try { k = this.getSeries(key); } catch (Exception e1) { // ignore } would become XYSeries k = null; try { k = this.getSeries(key); } catch (IllegalArgumentException e1) { // handle illegal argum...
- Wed Jul 25, 2012 11:37 am
- Forum: JFreeChart
- Topic: [solved] custom foregroundAlpha for an XYStepAreaRenderer
- Replies: 5
- Views: 9477
Re: custom foregroundAlpha for an XYStepAreaRenderer
By overriding it, you could apply some alpha value to the paint before forwarding it. Whenever the paint is needed from the painting methods, they will use that modified paint.
That's at least what I think he meant by his suggestion.
Sounds like a good idea, that might work.
That's at least what I think he meant by his suggestion.

- Wed Jul 25, 2012 11:35 am
- Forum: JFreeChart
- Topic: take over user zoom state to other axis
- Replies: 0
- Views: 3561
take over user zoom state to other axis
Hi there, I have a XYPlot displaying some data. I also have an interface (some JSliders) with which the user can adjust the ranges of the axes (and also a JCheckBox to enable autoRange). This all works perfectly fine. Even when I update some displaying series or add new ones. I also really like the ...
- Thu Mar 29, 2012 9:40 am
- Forum: JFreeChart
- Topic: LogAxis with very low Values
- Replies: 0
- Views: 2898
LogAxis with very low Values
Hi there, I am currently trying to plot very small values for an allen variance plot. These values can range down to 1E-25. I am using a LogAxis for that, which does not work. Am I doing something wrong or is LogAxis not meant for those kind of values? If not, do you know of any alternatives? Here i...
- Thu Feb 16, 2012 3:14 pm
- Forum: JFreeChart
- Topic: Printing my own ChartPanel
- Replies: 3
- Views: 6635
Re: Printing my own ChartPanel
Ok, finally I figured a way of doing it. Yay! Although I am setting the size of the plot (right before I call paintComponent() and reset it to the original size right after). I don't know if this is a good way to do it, but it seems to work. If someone know a better way, I would be interested, but f...
- Thu Feb 16, 2012 2:55 pm
- Forum: JFreeChart
- Topic: Printing my own ChartPanel
- Replies: 3
- Views: 6635
Re: Printing my own ChartPanel
Ok, I got a little further now. It is not so elegant anymore, but it nearly works. :D So what I did, is overwriting the print() and createPrintJob() method of the ChartPanel like so: public int print(Graphics g, PageFormat pf, int pageIndex) { if (pageIndex != 0) return NO_SUCH_PAGE; Graphics2D g2 =...
- Thu Feb 16, 2012 10:54 am
- Forum: JFreeChart
- Topic: Printing my own ChartPanel
- Replies: 3
- Views: 6635
Re: Printing my own ChartPanel
Ok, so I created a little example for you to understand better, what my problem is. I found, that there is a createPrintJob() method in ChartPanel. But this method does (of course) not work with my paintComponents, but with the parent one from ChartPanel itself. Therefore the additional data is not ...
- Wed Feb 15, 2012 4:30 pm
- Forum: JFreeChart
- Topic: Printing my own ChartPanel
- Replies: 3
- Views: 6635
Printing my own ChartPanel
Hi, I am using JFreeChart 1.0.13 to display some plots. As I needed some additional stuff on the plots, I extended the ChartPanel to a new class APChartPanel which overwrites the paintComponent(Graphics g) method to also draw some stuff: public class APChartPanel extends ChartPanel { public void pai...
- Wed Nov 30, 2011 1:11 pm
- Forum: JFreeChart
- Topic: Exception printout on fast changing series
- Replies: 8
- Views: 12379
Re: Exception printout on fast changing series
Ok, finally I got the time to look into this problem again. For future references, I will post the solution here. Thanks a lot for helping me out! I managed to get rid of the exception printouts (and therefore the collisions in the EDT), by running all changes of the plotSeries like this: SwingUtili...
- Mon Oct 24, 2011 6:40 pm
- Forum: JFreeChart
- Topic: Exception printout on fast changing series
- Replies: 8
- Views: 12379
Re: Exception printout on fast changing series
Well, it seems I have a gap in eduction on that topic... I'll have to change that as soon as there is some time. Anyway, thanks a lot for your patient replies. I will report the results as soon as possible (my application has kind of grown since I startet this topic, so it will take some time to imp...
- Mon Oct 24, 2011 9:30 am
- Forum: JFreeChart
- Topic: Exception printout on fast changing series
- Replies: 8
- Views: 12379
Re: Exception printout on fast changing series
Ok, so I have to do something like this: import javax.swing.Timer; public class plotThingamajig implements ActionListener { // constructor, init and other stuff // start at init public void startTimer(){ Timer fTimer = new Timer(updateFrequency, this); fTimer.start(); } public void actionPerformed(A...
- Thu Oct 20, 2011 10:46 pm
- Forum: JFreeChart
- Topic: Exception printout on fast changing series
- Replies: 8
- Views: 12379
Re: Exception printout on fast changing series
Thanks for the answer. :) Ok, so your proposed solution would be to extend the EventDispatchThread and overwrite the run() method, where I should then clear and fill in the XYSeries? Can you give me some advice how this Thread has to be embedded into the programm? (Somehow it has to be started...) T...
- Thu Oct 20, 2011 9:25 am
- Forum: JFreeChart
- Topic: Exception printout on fast changing series
- Replies: 8
- Views: 12379
Re: Exception printout on fast changing series
Hi there, I am still getting the same exceptions and am still wondering what their all about. Everything seems to work just fine, but the exceptions are very annoying. Can somebody help me out here? The most often occuring exceptions that are printed are: Exception in thread "AWT-EventQueue-0" java....
- Tue Jan 25, 2011 11:08 am
- Forum: JFreeChart
- Topic: Tooltip on multiseries chart
- Replies: 3
- Views: 14898
Re: Tooltip on multiseries chart
Hi paradoxoff, Thank you very much for your answer. You were completely right, the size of the shape was exactly the problem here. I did think that the tooltips are generated based on the distance to the points, not based on actually beeing inside of a shape. I inherited the XYLineAndShapeRenderer a...