package JFreeChart;
import java.awt.*;
import org.jfree.chart.*;
import org.jfree.chart.title.TextTitle;
import org.jfree.data.xy.XYDataset;
import org.jfree.data.xy.XYSeries;
import org.jfree.data.xy.XYSeriesCollection;
public class ScatterPlot {
private XYSeries series = null;
private XYDataset dataset = null;
private JFreeChart chart = null;
private TextTitle subTitle = null;
public ScatterPlot(){
series = new XYSeries("Users");
series.add(2000, 100.0);
series.add(2001, 111.0);
series.add(2002, 120.0);
series.add(2002, 130.0);
series.add(2001, 110.0);
series.add(2002, 150.0);
series.add(2001, 120.0);
series.add(2003, 170.0);
series.add(2001, 160.0);
series.add(2002, 120.0);
}
public ChartPanel getchartPanel_scatterPlot(){
ChartPanel chartPanel_scatterPlot = null;
dataset = new XYSeriesCollection(series);
chart = ChartFactory.createScatterPlot("JDBC & SQL Monitoring", "Var", "Frequence", dataset, org.jfree.chart.plot.PlotOrientation.VERTICAL, true, true, false);
subTitle = new TextTitle("ClientRequirement Test");
chart.setBackgroundPaint(Color.WHITE);
chart.addSubtitle(subTitle);
chartPanel_scatterPlot = new ChartPanel(chart);
return chartPanel_scatterPlot;
}
}
'JAVA 6.0 > GUI (AWT, SWING)' 카테고리의 다른 글
JFreeChart Package File (0) | 2009.11.15 |
---|---|
PositionLayout (퍼센트(%)로 레이아웃 잡기) (0) | 2009.11.15 |
JFreeChart 사용하기 (HistogramChart) (0) | 2009.11.15 |
JFreeChart 사용하기 (LineChart) (0) | 2009.11.15 |
JFreeChart 사용하기 (AreaChart) (0) | 2009.11.15 |
package JFreeChart;
import java.awt.*;
import org.jfree.chart.*;
import org.jfree.chart.title.TextTitle;
import org.jfree.data.category.CategoryDataset;
import org.jfree.data.general.DatasetUtilities;
import org.jfree.data.xy.XYDataset;
import org.jfree.data.xy.XYSeries;
import org.jfree.data.xy.XYSeriesCollection;
public class LineChart {
private XYSeries series = null;
private XYDataset dataset = null;
private JFreeChart chart = null;
private TextTitle subTitle = null;
public LineChart(){
series = new XYSeries("Users");
series.add(2000, 100.0);
series.add(2001, 111.0);
series.add(2002, 120.0);
series.add(2003, 140.0);
}
public ChartPanel getchartPanel_lineChart(){
ChartPanel chartPanel_lineChart = null;
dataset = new XYSeriesCollection(series);
chart = ChartFactory.createXYLineChart("WebServer Performance Monitoring", "Var", "Frequence", dataset, org.jfree.chart.plot.PlotOrientation.VERTICAL, true, true, false);
subTitle = new TextTitle("Heap Memory Usage Test");
chart.setBackgroundPaint(Color.WHITE);
chart.addSubtitle(subTitle);
chartPanel_lineChart = new ChartPanel(chart);
return chartPanel_lineChart;
}
}
'JAVA 6.0 > GUI (AWT, SWING)' 카테고리의 다른 글
JFreeChart Package File (0) | 2009.11.15 |
---|---|
PositionLayout (퍼센트(%)로 레이아웃 잡기) (0) | 2009.11.15 |
JFreeChart 사용하기 (HistogramChart) (0) | 2009.11.15 |
JFreeChart 사용하기 (ScatterPlot) (0) | 2009.11.15 |
JFreeChart 사용하기 (AreaChart) (0) | 2009.11.15 |
package JFreeChart;
import java.awt.*;
import org.jfree.chart.*;
import org.jfree.chart.title.TextTitle;
import org.jfree.data.xy.XYDataset;
import org.jfree.data.xy.XYSeries;
import org.jfree.data.xy.XYSeriesCollection;
public class AreaChart {
private XYSeries series = null;
private XYDataset dataset = null;
private JFreeChart chart = null;
private TextTitle subTitle = null;
public AreaChart(){
series = new XYSeries("Users");
series.add(2000, 100.0);
series.add(2001, 111.0);
series.add(2002, 120.0);
series.add(2003, 140.0);
}
public ChartPanel getchartPanel_areaChart(){
ChartPanel chartPanel_areaChart = null;
XYDataset dataset = new XYSeriesCollection(series);
chart = ChartFactory.createXYAreaChart("Concurrent User Monitoring", "Var", "Frequence", dataset, org.jfree.chart.plot.PlotOrientation.VERTICAL, true, true, false);
subTitle = new TextTitle("Classes Test");
chart.setBackgroundPaint(Color.WHITE);
chart.addSubtitle(subTitle);
chartPanel_areaChart = new ChartPanel(chart);
return chartPanel_areaChart;
}
}
'JAVA 6.0 > GUI (AWT, SWING)' 카테고리의 다른 글
JFreeChart Package File (0) | 2009.11.15 |
---|---|
PositionLayout (퍼센트(%)로 레이아웃 잡기) (0) | 2009.11.15 |
JFreeChart 사용하기 (HistogramChart) (0) | 2009.11.15 |
JFreeChart 사용하기 (ScatterPlot) (0) | 2009.11.15 |
JFreeChart 사용하기 (LineChart) (0) | 2009.11.15 |