当前位置: 首页>>代码示例>>Java>>正文


Java ObjectUtilities.deepClone方法代码示例

本文整理汇总了Java中org.jfree.util.ObjectUtilities.deepClone方法的典型用法代码示例。如果您正苦于以下问题:Java ObjectUtilities.deepClone方法的具体用法?Java ObjectUtilities.deepClone怎么用?Java ObjectUtilities.deepClone使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在org.jfree.util.ObjectUtilities的用法示例。


在下文中一共展示了ObjectUtilities.deepClone方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: clone

import org.jfree.util.ObjectUtilities; //导入方法依赖的package包/类
/**
 * Returns a clone of the annotation.
 * 
 * @return A clone.
 * 
 * @throws CloneNotSupportedException  this class will not throw this 
 *         exception, but subclasses (if any) might.
 */
public Object clone() throws CloneNotSupportedException {
    
    CombinedDomainXYPlot result = (CombinedDomainXYPlot) super.clone(); 
    result.subplots = (List) ObjectUtilities.deepClone(this.subplots);
    for (Iterator it = result.subplots.iterator(); it.hasNext();) {
        Plot child = (Plot) it.next();
        child.setParent(result);
    }
    
    // after setting up all the subplots, the shared domain axis may need 
    // reconfiguring
    ValueAxis domainAxis = result.getDomainAxis();
    if (domainAxis != null) {
        domainAxis.configure();
    }
    
    return result;
    
}
 
开发者ID:parabuild-ci,项目名称:parabuild-ci,代码行数:28,代码来源:CombinedDomainXYPlot.java

示例2: clone

import org.jfree.util.ObjectUtilities; //导入方法依赖的package包/类
/**
 * Returns a clone of the plot.
 * 
 * @return A clone.
 * 
 * @throws CloneNotSupportedException  this class will not throw this 
 *         exception, but subclasses (if any) might.
 */
public Object clone() throws CloneNotSupportedException {
    CombinedRangeCategoryPlot result 
        = (CombinedRangeCategoryPlot) super.clone(); 
    result.subplots = (List) ObjectUtilities.deepClone(this.subplots);
    for (Iterator it = result.subplots.iterator(); it.hasNext();) {
        Plot child = (Plot) it.next();
        child.setParent(result);
    }
    
    // after setting up all the subplots, the shared range axis may need 
    // reconfiguring
    ValueAxis rangeAxis = result.getRangeAxis();
    if (rangeAxis != null) {
        rangeAxis.configure();
    }
    
    return result;
}
 
开发者ID:parabuild-ci,项目名称:parabuild-ci,代码行数:27,代码来源:CombinedRangeCategoryPlot.java

示例3: clone

import org.jfree.util.ObjectUtilities; //导入方法依赖的package包/类
/**
 * Returns a clone of the plot.
 * 
 * @return A clone.
 * 
 * @throws CloneNotSupportedException  this class will not throw this 
 *         exception, but subclasses (if any) might.
 */
public Object clone() throws CloneNotSupportedException {
    
    CombinedRangeXYPlot result = (CombinedRangeXYPlot) super.clone(); 
    result.subplots = (List) ObjectUtilities.deepClone(this.subplots);
    for (Iterator it = result.subplots.iterator(); it.hasNext();) {
        Plot child = (Plot) it.next();
        child.setParent(result);
    }
    
    // after setting up all the subplots, the shared range axis may need 
    // reconfiguring
    ValueAxis rangeAxis = result.getRangeAxis();
    if (rangeAxis != null) {
        rangeAxis.configure();
    }
    
    return result;
}
 
开发者ID:parabuild-ci,项目名称:parabuild-ci,代码行数:27,代码来源:CombinedRangeXYPlot.java

示例4: clone

import org.jfree.util.ObjectUtilities; //导入方法依赖的package包/类
/**
 * Returns a clone of the plot.
 * 
 * @return A clone.
 * 
 * @throws CloneNotSupportedException  this class will not throw this 
 *         exception, but subclasses (if any) might.
 */
public Object clone() throws CloneNotSupportedException {
    
    CombinedDomainCategoryPlot result 
        = (CombinedDomainCategoryPlot) super.clone(); 
    result.subplots = (List) ObjectUtilities.deepClone(this.subplots);
    for (Iterator it = result.subplots.iterator(); it.hasNext();) {
        Plot child = (Plot) it.next();
        child.setParent(result);
    }
    return result;
    
}
 
开发者ID:parabuild-ci,项目名称:parabuild-ci,代码行数:21,代码来源:CombinedDomainCategoryPlot.java


注:本文中的org.jfree.util.ObjectUtilities.deepClone方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。