本文整理了Java中org.jfree.chart.JFreeChart.clone()
方法的一些代码示例,展示了JFreeChart.clone()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JFreeChart.clone()
方法的具体详情如下:
包路径:org.jfree.chart.JFreeChart
类名称:JFreeChart
方法名:clone
[英]Clones the object, and takes care of listeners. Note: caller shall register its own listeners on cloned graph.
[中]克隆对象,并负责侦听器。注:调用方应在克隆图上注册自己的侦听器。
代码示例来源:origin: jfree/jfreechart
this.chart = (JFreeChart) chart.clone();
代码示例来源:origin: org.codehaus.jtstand/jtstand-chart
this.chart = (JFreeChart) chart.clone();
代码示例来源:origin: jfree/jfreechart
/**
* Returns a clone of the plot.
*
* @return A clone.
*
* @throws CloneNotSupportedException if some component of the plot does
* not support cloning.
*/
@Override
public Object clone() throws CloneNotSupportedException {
MultiplePiePlot clone = (MultiplePiePlot) super.clone();
clone.pieChart = (JFreeChart) this.pieChart.clone();
clone.sectionPaints = new HashMap(this.sectionPaints);
clone.legendItemShape = ShapeUtils.clone(this.legendItemShape);
return clone;
}
代码示例来源:origin: org.codehaus.jtstand/jtstand-chart
/**
* Returns a clone of the plot.
*
* @return A clone.
*
* @throws CloneNotSupportedException if some component of the plot does
* not support cloning.
*/
public Object clone() throws CloneNotSupportedException {
MultiplePiePlot clone = (MultiplePiePlot) super.clone();
clone.pieChart = (JFreeChart) this.pieChart.clone();
clone.sectionPaints = new HashMap(this.sectionPaints);
clone.legendItemShape = ShapeUtilities.clone(this.legendItemShape);
return clone;
}
内容来源于网络,如有侵权,请联系作者删除!