Search found 5 matches
- Mon Oct 05, 2015 10:14 pm
- Forum: JFreeChart
- Topic: paint series lines above annotations
- Replies: 1
- Views: 4474
paint series lines above annotations
I wanted some custom behavior with ValueMarkers . I was told that it was not possible and i sould use these Annotation classes http://sourceforge.net/p/jfreechart/patches/316/ XYDomainValueAnnotation dva = new XYDomainValueAnnotation(); dva.setLabel("Test Value Annotation"); dva.setStroke(new BasicS...
- Thu Oct 01, 2015 8:23 pm
- Forum: JFreeChart
- Topic: show the ValueMarker Label on Mouseover
- Replies: 4
- Views: 7502
Re: show the ValueMarker Label on Mouseover
Only issues is how do i get it to paint the annotation lines behind the series lines?
- Thu Oct 01, 2015 8:02 pm
- Forum: JFreeChart
- Topic: show the ValueMarker Label on Mouseover
- Replies: 4
- Views: 7502
- Thu Oct 01, 2015 7:57 pm
- Forum: JFreeChart
- Topic: show the ValueMarker Label on Mouseover
- Replies: 4
- Views: 7502
Re: show the ValueMarker Label on Mouseover
ok i implemented the annotation classes you pointed to. I now have the annotations showing. How do i capture the mouseOver event now? private void formEventAnnotations(XYPlot plot, Hour hour, int priority) { try { final XYDomainValueAnnotation tempMarker = new XYDomainValueAnnotation(); switch (prio...
- Wed Sep 30, 2015 9:32 pm
- Forum: JFreeChart
- Topic: show the ValueMarker Label on Mouseover
- Replies: 4
- Views: 7502
show the ValueMarker Label on Mouseover
I have a XYPlot. In the ChartPanel i have added a ChartMouseListener. // mouse listener chartPanel.addChartMouseListener(new ChartMouseListener() {<implemented methods>}); I have added a a couple of markers to the chart. final Marker tempMarker = new ValueMarker(hour.getFirstMillisecond()); tempMark...