本文整理了Java中org.jfree.chart.JFreeChart.addProgressListener()
方法的一些代码示例,展示了JFreeChart.addProgressListener()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JFreeChart.addProgressListener()
方法的具体详情如下:
包路径:org.jfree.chart.JFreeChart
类名称:JFreeChart
方法名:addProgressListener
[英]Registers an object for notification of progress events relating to the chart.
[中]注册对象以通知与图表相关的进度事件。
代码示例来源:origin: jewes/gchisto
/**
* 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));
}
代码示例来源:origin: jewes/gchisto
/**
* 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);
}
代码示例来源:origin: jewes/gchisto
/**
* 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);
}
代码示例来源:origin: jewes/gchisto
/**
* 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));
}
代码示例来源:origin: jewes/gchisto
/**
* 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));
}
代码示例来源:origin: jfree/jfreechart
if (chart != null) {
this.chart.addChangeListener(this);
this.chart.addProgressListener(this);
Plot plot = chart.getPlot();
this.domainZoomable = false;
代码示例来源:origin: GrammarViz2/grammarviz2_src
this.chart.addProgressListener(this);
this.chart.setNotify(true);
代码示例来源:origin: GoldenGnu/jeveassets
jNextChart.setAntiAlias(true);
jNextChart.setBackgroundPaint(jPanel.getBackground());
jNextChart.addProgressListener(null);
jNextChart.getLegend().setItemFont(jFrom.getFont());
代码示例来源:origin: org.codehaus.jtstand/jtstand-chart
if (chart != null) {
this.chart.addChangeListener(this);
this.chart.addProgressListener(this);
Plot plot = chart.getPlot();
this.domainZoomable = false;
内容来源于网络,如有侵权,请联系作者删除!