Search found 21 matches

by SlowFoot
Wed Feb 16, 2011 7:35 pm
Forum: JFreeChart
Topic: How to limit the panning range.
Replies: 0
Views: 3550

How to limit the panning range.

I have a contour plot applet that I want to implement panning in. Currently, I can pan the graph any way that I want, but I would like to constrain the allowable panning area so that a user can't pan outside of the dataset range. My current dataset is a 320x240 grid of temperature values with no val...
by SlowFoot
Mon Nov 22, 2010 6:25 pm
Forum: JFreeChart
Topic: How to change the XYDotRenderer default colors?
Replies: 2
Views: 3428

Re: How to change the XYDotRenderer default colors?

Ahh, I now see how to get the dataset by using the getPlot().getDataset() call. Will try that out and post the results. Thanks for the quick reply!
by SlowFoot
Mon Nov 22, 2010 4:36 pm
Forum: JFreeChart
Topic: How to change the XYDotRenderer default colors?
Replies: 2
Views: 3428

How to change the XYDotRenderer default colors?

I'm currently attempting to create a ContourPlot plotting temperature data and using the XYBlockRenderer() but the performance leaves a lot to be desired and I am thinking that the XYDotRenderer() is actually the better choice. However, the default behavior of the XYDotRenderer() is to assign the sa...
by SlowFoot
Mon Nov 15, 2010 2:58 pm
Forum: JFreeChart
Topic: Improving Performance of XYBlockRenderer
Replies: 0
Views: 3030

Improving Performance of XYBlockRenderer

I have a 320x240 CSV file that holds temperature values for a grid of points. I've written an applet that graphs these points using an XYBlockRenderer in an XYPlot. I'm not using the deprecated ContourPlot class. Current rendering times are about 5 seconds on a modern machine and 20-30 on a five yea...
by SlowFoot
Thu Jan 14, 2010 3:31 pm
Forum: JFreeChart
Topic: Getting the position of the Title in the Chart
Replies: 5
Views: 5423

Re: Getting the position of the Title in the Chart

I got the applet working as intended now, with some even better perks. I didn't realize that there was already a menu to do all the saving and such that I would need. It ended up being a problem with where I initially created the chart but I have it fixed now. Thanks for the help! One last question ...
by SlowFoot
Wed Jan 13, 2010 3:41 pm
Forum: JFreeChart
Topic: Getting the position of the Title in the Chart
Replies: 5
Views: 5423

Re: Getting the position of the Title in the Chart

I implemented the ChartMouseListener as advised, but I'm running into a problem detecting mouse clicks now. The applet never detects that there was a click at all. I've registered the listener with the chartPanel and the applet displays just fine. However, the right click action and the double click...
by SlowFoot
Wed Jan 13, 2010 2:39 pm
Forum: JFreeChart
Topic: Getting the position of the Title in the Chart
Replies: 5
Views: 5423

Re: Getting the position of the Title in the Chart

Thanks paradox, I'll give that a shot today and see if I can get it working.
by SlowFoot
Tue Jan 12, 2010 9:28 pm
Forum: JFreeChart
Topic: Getting the position of the Title in the Chart
Replies: 5
Views: 5423

Getting the position of the Title in the Chart

I'm trying to implement a mouse listener that will detect a left mouse button click and decide whether or not it was over the area of the Chart Title or not. Currently I'm using these to get the values of the position of the Title: xOffset = chart.getTitle().getContentXOffset(); width = chart.getTit...
by SlowFoot
Mon Jan 04, 2010 6:12 pm
Forum: JFreeChart
Topic: Using setTitle() to update a graph title.
Replies: 3
Views: 4046

Re: Using setTitle() to update a graph title.

Paradox,
Thanks for suggesting that two separate charts were being updated. I made a change in my code to call repaint instead of the setTitle() method and this has fixed the bug.
by SlowFoot
Mon Jan 04, 2010 6:08 pm
Forum: JFreeChart
Topic: Using setTitle() to update a graph title.
Replies: 3
Views: 4046

Re: Using setTitle() to update a graph title.

It seems to me that after the setTitle method is called that the chart should automatically be updated, however, would I have to call some repaint method or the like to update the displayed chart?
by SlowFoot
Mon Jan 04, 2010 3:23 pm
Forum: JFreeChart
Topic: Using setTitle() to update a graph title.
Replies: 3
Views: 4046

Using setTitle() to update a graph title.

I'm trying to build a right click menu item that will allow me to change the title of my graph by right clicking, choosing "Change Title" and then opening up a text box to allow the user to change the title of the graph to their chosen title. Currently, I have it hard coded in to change to "title ch...
by SlowFoot
Fri Dec 04, 2009 4:26 pm
Forum: JFreeChart
Topic: Saving a screenshot of an applet.
Replies: 3
Views: 3629

Re: Saving a screenshot of an applet.

Tomecki, Have you actually been able to save a screenshot of an applet? I have signed my applet and can load a JFileChooser dialog that sees all the files on my system. However, when I go to actually save the file I receive an Access Control Exception relating to java.io.file. It seems that even tho...
by SlowFoot
Wed Dec 02, 2009 3:39 pm
Forum: JFreeChart
Topic: Chart Title
Replies: 4
Views: 4185

Re: Chart Title

I'm thinking that it's in the .php to java conversion with the get parameter method as well. Will be looking into it once I can save screenshots of the graphs.
by SlowFoot
Wed Dec 02, 2009 3:38 pm
Forum: JFreeChart
Topic: Saving a screenshot of an applet.
Replies: 3
Views: 3629

Re: Saving a screenshot of an applet.

I've so far got it to where I can sign the applet, right click to open a save dialog box and I'm currently working on how to get the graph into either .png or .jpeg format.
by SlowFoot
Mon Nov 23, 2009 9:22 pm
Forum: JFreeChart
Topic: Saving a screenshot of an applet.
Replies: 3
Views: 3629

Saving a screenshot of an applet.

The situation is that I have an applet that generates a graph for a webpage and I want to allow the user to download an image of that graph as it exists but I'm fairly novice when it comes to doing such things. I realize that an applet is self contained and wouldn't allow for saving on the server or...