org.jfree.chart.JFreeChart.clone()方法的使用及代码示例

x33g5p2x  于2022-01-21 转载在 其他  
字(1.4k)|赞(0)|评价(0)|浏览(97)

本文整理了Java中org.jfree.chart.JFreeChart.clone()方法的一些代码示例,展示了JFreeChart.clone()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JFreeChart.clone()方法的具体详情如下:
包路径:org.jfree.chart.JFreeChart
类名称:JFreeChart
方法名:clone

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;
}

相关文章