org.jfree.chart.plot.Plot.setParent()方法的使用及代码示例

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

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

Plot.setParent介绍

[英]Sets the parent plot. This method is intended for internal use, you shouldn't need to call it directly.
[中]设置父打印。此方法仅供内部使用,不需要直接调用。

代码示例

代码示例来源:origin: jfree/jfreechart

/**
 * Returns a clone of the plot.
 *
 * @return A clone.
 *
 * @throws CloneNotSupportedException  this class will not throw this
 *         exception, but subclasses (if any) might.
 */
@Override
public Object clone() throws CloneNotSupportedException {
  CombinedDomainCategoryPlot result
    = (CombinedDomainCategoryPlot) super.clone();
  result.subplots = (List) ObjectUtils.deepClone(this.subplots);
  for (Iterator it = result.subplots.iterator(); it.hasNext();) {
    Plot child = (Plot) it.next();
    child.setParent(result);
  }
  return result;
}

代码示例来源:origin: org.codehaus.jtstand/jtstand-chart

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

代码示例来源:origin: org.codehaus.jtstand/jtstand-chart

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

代码示例来源:origin: jfree/jfreechart

/**
 * Returns a clone of the annotation.
 *
 * @return A clone.
 *
 * @throws CloneNotSupportedException  this class will not throw this
 *         exception, but subclasses (if any) might.
 */
@Override
public Object clone() throws CloneNotSupportedException {
  CombinedDomainXYPlot result = (CombinedDomainXYPlot) super.clone();
  result.subplots = (List) ObjectUtils.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;
}

代码示例来源:origin: org.codehaus.jtstand/jtstand-chart

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

代码示例来源:origin: jfree/jfreechart

/**
 * Returns a clone of the plot.
 *
 * @return A clone.
 *
 * @throws CloneNotSupportedException  this class will not throw this
 *         exception, but subclasses (if any) might.
 */
@Override
public Object clone() throws CloneNotSupportedException {
  CombinedRangeXYPlot result = (CombinedRangeXYPlot) super.clone();
  result.subplots = (List) ObjectUtils.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;
}

代码示例来源:origin: org.codehaus.jtstand/jtstand-chart

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

代码示例来源:origin: jfree/jfreechart

/**
 * Returns a clone of the plot.
 *
 * @return A clone.
 *
 * @throws CloneNotSupportedException  this class will not throw this
 *         exception, but subclasses (if any) might.
 */
@Override
public Object clone() throws CloneNotSupportedException {
  CombinedRangeCategoryPlot result
    = (CombinedRangeCategoryPlot) super.clone();
  result.subplots = (List) ObjectUtils.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;
}

相关文章