Search found 32 matches
- Mon Jan 07, 2008 6:04 pm
- Forum: JFreeChart
- Topic: Yet another 'mouseover-highlighting' question :)
- Replies: 4
- Views: 4407
- Wed Oct 31, 2007 8:48 pm
- Forum: JFreeChart
- Topic: panning charts while zoomed in
- Replies: 8
- Views: 14333
Hello, I didn't quite get the "while zoomed" part. A pan is a pan, the zoom level should not come into play. If you'd like you can establish some min/max limits to the axis (I do that). Anyway, I think this class will do what you're asking for: http://www.jfree.org/phpBB2/viewtopic.php?p=59287#59287...
- Tue Nov 21, 2006 5:13 pm
- Forum: JFreeChart
- Topic: Yet another Pan/Shift class (source included)
- Replies: 22
- Views: 44734
- Tue Aug 22, 2006 6:21 pm
- Forum: JFreeChart
- Topic: Yet another Pan/Shift class (source included)
- Replies: 22
- Views: 44734
Hello,
100 is the default maximum value, just change it.
100 is the default maximum value, just change it.
Code: Select all
public ShiftTest() {
final ChartPanel panel = new ChartPanel(createChart(createDataset(1000)));
bar.setMaximum(1000);
controller = new ChartPanelShiftController(panel);
...
}
- Thu Jul 13, 2006 2:04 pm
- Forum: JFreeChart
- Topic: getting coordinates with XYSeries
- Replies: 2
- Views: 3881
Hello, try this: public void chartMouseClicked(ChartMouseEvent event) { if (null == event) return; // screen coordinates int screenX = event.getTrigger().getX(); int screenY = event.getTrigger().getY(); // data coordinates ChartEntity entity = event.getEntity(); if (entity instanceof XYItemEntity) {...
- Wed Jul 12, 2006 3:10 pm
- Forum: JFreeChart
- Topic: XYAnnotation and XYAnnotationEntity
- Replies: 2
- Views: 4399
Yeah, you could... ...Keep track of your annotations and then iterate through them until you find a match. ...Change XYAnnotationEntity and add a new constructor to receive a XYAbstractAnnotation along with methods to retrieve that annotation object. ...Change XYPlot and create a method to retrieve ...
- Tue Jul 11, 2006 6:01 pm
- Forum: JFreeChart
- Topic: Mouse Events
- Replies: 5
- Views: 10199
If you want just the mouse events, call addMouseListener() , after all, ChartPanel is a Panel. If you want Chart events (like what chart entity is below a mousePressed coordinate) you'll have to subclass or modify ChartPanel itself. You could also create your own method to find chart entities given ...
- Tue Jul 11, 2006 1:49 pm
- Forum: JFreeChart
- Topic: ChartMouseEvent and corresponding data
- Replies: 5
- Views: 6123
Hi, David. Should i purchase the Developer Guide to see the source code of MouseListenerDemo4 ? Any "free" :D guidance or clue ? I've found some "translateScreen" methods, but i don't know how to proceed. :?: You should. Take a look at http://www.jfree.org/phpBB2/viewtopic.php?t=18031#51778 and see...
- Tue Jul 11, 2006 12:30 pm
- Forum: JFreeChart
- Topic: Crosshairs, tracelines, markers
- Replies: 5
- Views: 10412
Unfortunately, all trace line code is private, so I have to copy much of it into my derived classes. Yeah, that's awkward. You could recompile ChartPanel changing all private methods to protected or you could also copy the whole class and create a new one whithout any relationship with ChartPanel. ...
- Mon Jul 10, 2006 7:40 pm
- Forum: JFreeChart
- Topic: Crosshairs, tracelines, markers
- Replies: 5
- Views: 10412
Hi, I seem to be in some confusion about crosshairs, trace lines, and markers. Well, from my point of view trace lines only follow the mouse movement, they are used so the user can have a better notion of the current x/y values under the mouse pointer. Markers are just static references. Crosshairs ...
- Thu Mar 30, 2006 9:06 pm
- Forum: JFreeChart
- Topic: why can I change german-info to english ?
- Replies: 3
- Views: 5313
- Thu Mar 30, 2006 9:03 pm
- Forum: JFreeChart
- Topic: Set X&Y axis values dynamically
- Replies: 1
- Views: 3699
- Thu Mar 30, 2006 8:54 pm
- Forum: JFreeChart
- Topic: HOW can I FIXED my Scale
- Replies: 1
- Views: 4358
If its a number axis (which I think it is) you can call the setTickUnit method.
Code: Select all
NumberAxis domainAxis = (NumberAxis) chart.getXYPlot().getDomainAxis();
domainAxis.setTickUnit(new NumberTickUnit(20,new DecimalFormat("0"));
- Thu Mar 30, 2006 8:49 pm
- Forum: JFreeChart
- Topic: how toget the Y value for a particular x value in JFreeChart
- Replies: 1
- Views: 3708
First you'll have to get the correct XYDataset. Retrieve it from your plot: XYDataset dataset = chartPanel.getChart().getXYPlot().getDataset(); Iterate over the dataset till you find the X value you're looking for, then save its position and retrieve the desired Y value based on X's position. Be awa...
- Wed Mar 22, 2006 2:46 pm
- Forum: JFreeChart
- Topic: TickUnits problem
- Replies: 1
- Views: 4232
This is the expected behaviour. Take a look at the following thread:
http://www.jfree.org/phpBB2/viewtopic.php?t=16242
http://www.jfree.org/phpBB2/viewtopic.php?t=16242