1: import org.jfree.chart.ChartPanel; 2: import org.jfree.chart.JFreeChart; 3: import org.jfree.chart.plot.ValueMarker; 4: ... 5: TimeSeriesCollection dataset = new TimeSeriesCollection(series); 6: JFreeChart chart = ChartFactory.createTimeSeriesChart( 7: "Time Series Demo 2", 8: ... 9: ); 10: chart.getXYPlot().addRangeMarker(new ValueMarker(550.0)); 11: Quarter q = new Quarter(2, 2002); 12: ... 13: chart.getXYPlot().addDomainMarker(new ValueMarker(q.getMiddleMillisecond()));
1: import org.jfree.chart.ChartPanel; 2: import org.jfree.chart.JFreeChart; 3: 4: ... 5: { 6: private JFreeChart chart ; 7: private ChartPanel pan ; 8: ... 9: 10: public PlotListen( JFreeChart chart , ChartPanel pan, BIGPlotable plot ) 11: { 12: ... 13: { 14: x = chart.getXYPlot().getHorizontalValueAxis().
1: import org.jfree.chart.ChartPanel; 2: import org.jfree.chart.JFreeChart; 3: import org.jfree.chart.annotations.XYAnnotation; 4: ... 5: private XYPlot getPlot() { 6: return chartPanel.getChart().getXYPlot(); 7: } 8: ... 9: private void initChart() { 10: JFreeChart chart = 11: ChartFactory.createScatterPlot( 12: ... 13: renderer.setPlotShapes(true); 14: chart.getXYPlot().setRenderer(renderer);
1: import org.jfree.chart.ChartPanel; 2: import org.jfree.chart.JFreeChart; 3: import org.jfree.chart.Marker; 4: ... 5: 6: final JFreeChart chart = ChartFactory.createScatterPlot( 7: plotable.getExtTitle() , plotable.xAxisText , yAxisText , data , true , true , false ) ; 8: ... 9: if ( data2 != null ) 10: chart.getXYPlot().setSecondaryDataset( data2 ) ; 11: ... 12: this.plotable.xyplot = chart.getXYPlot() ;