本文整理匯總了Java中org.jfree.chart.JFreeChart.addProgressListener方法的典型用法代碼示例。如果您正苦於以下問題:Java JFreeChart.addProgressListener方法的具體用法?Java JFreeChart.addProgressListener怎麽用?Java JFreeChart.addProgressListener使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類org.jfree.chart.JFreeChart
的用法示例。
在下文中一共展示了JFreeChart.addProgressListener方法的5個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: addChart
import org.jfree.chart.JFreeChart; //導入方法依賴的package包/類
/**
* It creates a chart for the given dataset and adds the chart to the panel.
*
* @param dataset The dataset that will provide the values for the chart.
*/
private void addChart() {
JFreeChart chart = ChartFactory.createXYBarChart(getTitle(),
"Buckets (sec)", false, "Count",
dataset, PlotOrientation.VERTICAL, true, true, false);
chart.addProgressListener(locker);
XYPlot plot = (XYPlot) chart.getPlot();
XYItemRenderer renderer = plot.getRenderer();
renderer.setToolTipGenerator(dataset);
groupActivatingPanel = new GroupActivatingPanel(dataset, locker);
org.jfree.chart.ChartPanel chartPanel =
new org.jfree.chart.ChartPanel(chart);
JSplitPane splitPane = new JSplitPane(JSplitPane.HORIZONTAL_SPLIT,
groupActivatingPanel,chartPanel);
splitPane.setDividerLocation(200);
mainPanel().add(BorderLayout.CENTER, splitPane);
}
示例2: addChart
import org.jfree.chart.JFreeChart; //導入方法依賴的package包/類
/**
* It creates a chart for the given dataset and adds the chart to the panel.
*
* @param dataset The dataset that will provide the values for the chart.
*/
private void addChart() {
JFreeChart chart = ChartFactory.createXYBarChart(getTitle(),
"Elapsed Time (sec)", false, "Time" + unitSuffix(),
dataset, PlotOrientation.VERTICAL, true, true, false);
chart.addProgressListener(locker);
XYPlot plot = (XYPlot) chart.getPlot();
XYItemRenderer renderer = plot.getRenderer();
renderer.setToolTipGenerator(dataset);
groupActivatingTable = new GroupActivatingPanel(dataset, locker);
org.jfree.chart.ChartPanel chartPanel =
new org.jfree.chart.ChartPanel(chart);
JSplitPane splitPane = new JSplitPane(JSplitPane.HORIZONTAL_SPLIT,
groupActivatingTable, chartPanel);
splitPane.setDividerLocation(200);
mainPanel().add(BorderLayout.CENTER, splitPane);
}
示例3: addChart
import org.jfree.chart.JFreeChart; //導入方法依賴的package包/類
/**
* It creates a chart for the given dataset and adds the chart to the panel.
*
* @param dataset The dataset that will provide the values for the chart.
*/
private void addChart() {
JFreeChart chart = ChartFactory.createBarChart3D(getTitle(),
null, "Time" + unitSuffix(),
dataset, PlotOrientation.VERTICAL,
true, true, false);
chart.addProgressListener(locker);
CategoryPlot plot = (CategoryPlot) chart.getPlot();
CategoryItemRenderer renderer = plot.getRenderer();
renderer.setToolTipGenerator(dataset);
mainPanel().add(BorderLayout.CENTER, new ChartPanel(chart));
}
示例4: addChart
import org.jfree.chart.JFreeChart; //導入方法依賴的package包/類
/**
* It creates a chart for the given dataset and adds the chart to the panel.
*
* @param dataset The dataset that will provide the values for the chart.
*/
private void addChart() {
JFreeChart chart = ChartFactory.createPieChart(
getTitle(), dataset, false, true, false);
chart.addProgressListener(locker);
PiePlot plot = (PiePlot) chart.getPlot();
plot.setToolTipGenerator(dataset);
mainPanel().add(BorderLayout.CENTER, new ChartPanel(chart));
}
示例5: addChart
import org.jfree.chart.JFreeChart; //導入方法依賴的package包/類
/**
* It creates a chart for the given dataset and adds the chart to the panel.
*
* @param dataset The dataset that will provide the values for the chart.
*/
private void addChart() {
JFreeChart chart = ChartFactory.createStackedBarChart3D(
getTitle(), null, "Breakdown" + unitSuffix(),
dataset, PlotOrientation.VERTICAL, true, true, false);
CategoryAxis domainAxis = chart.getCategoryPlot().getDomainAxis();
domainAxis.setCategoryLabelPositions(
CategoryLabelPositions.createUpRotationLabelPositions(Math.PI / 6.0));
chart.addProgressListener(locker);
CategoryPlot plot = (CategoryPlot) chart.getPlot();
CategoryItemRenderer renderer = plot.getRenderer();
renderer.setToolTipGenerator(dataset);
mainPanel().add(BorderLayout.CENTER, new ChartPanel(chart));
}