CloneSet40


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
125220.984class_body_declarations[6]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
1123482
E:/TSE/Projects-CloneDR/jfreechart-1.0.10/src/org/jfree/chart/plot/CombinedDomainXYPlot.java
2125428
E:/TSE/Projects-CloneDR/jfreechart-1.0.10/src/org/jfree/chart/plot/CombinedRangeXYPlot.java
Next
Last
Clone Instance
1
Line Count
123
Source Line
482
Source File
E:/TSE/Projects-CloneDR/jfreechart-1.0.10/src/org/jfree/chart/plot/CombinedDomainXYPlot.java

/**
 * Returns a collection of legend items for the plot.
 *
 * @return The legend items.
 */
public LegendItemCollection getLegendItems() {
  LegendItemCollection result = getFixedLegendItems();
  if (result == null) {
    result = new LegendItemCollection();
    if (this.subplots != null) {
      Iterator iterator = this.subplots.iterator();
      while (iterator.hasNext()) {
        XYPlot plot = (XYPlot) iterator.next();
        LegendItemCollection more = plot.getLegendItems();
        result.addAll(more);
      }
    }
  }
  return result;
}

/**
 * Multiplies the range on the range axis/axes by the specified factor.
 *
 * @param factor  the zoom factor.
 * @param info  the plot rendering info (<code>null</code> not permitted).
 * @param source  the source point (<code>null</code> not permitted).
 */
public void zoomRangeAxes(double factor, PlotRenderingInfo info, Point2D source) {
  zoomRangeAxes(factor, info, source, false);
}

/**
 * Multiplies the range on the range axis/axes by the specified factor.
 *
 * @param factor  the zoom factor.
 * @param state  the plot state.
 * @param source  the source point (in Java2D coordinates).
 * @param useAnchor  use source point as zoom anchor?
 */
public void zoomRangeAxes(double factor, PlotRenderingInfo state, Point2D source, boolean useAnchor) {
  // delegate 'state' and 'source' argument checks...
  XYPlot subplot = findSubplot(state, source);
  if (subplot != null) {
    subplot.zoomRangeAxes(factor, state, source, useAnchor);
  }
  else {
    // if the source point doesn't fall within a subplot, we do the
    // zoom on all subplots...
    Iterator iterator = getSubplots().iterator();
    while (iterator.hasNext()) {
      subplot = (XYPlot) iterator.next();
      subplot.zoomRangeAxes(factor, state, source, useAnchor);
    }
  }
}

/**
 * Zooms in on the range axes.
 *
 * @param lowerPercent  the lower bound.
 * @param upperPercent  the upper bound.
 * @param info  the plot rendering info (<code>null</code> not permitted).
 * @param source  the source point (<code>null</code> not permitted).
 */
public void zoomRangeAxes(double lowerPercent, double upperPercent, PlotRenderingInfo info, Point2D source) {
  // delegate 'info' and 'source' argument checks...
  XYPlot subplot = findSubplot(info, source);
  if (subplot != null) {
    subplot.zoomRangeAxes(lowerPercent, upperPercent, info, source);
  }
  else {
    // if the source point doesn't fall within a subplot, we do the
    // zoom on all subplots...
    Iterator iterator = getSubplots().iterator();
    while (iterator.hasNext()) {
      subplot = (XYPlot) iterator.next();
      subplot.zoomRangeAxes(lowerPercent, upperPercent, info, source);
    }
  }
}

/**
 * Returns the subplot (if any) that contains the (x, y) point (specified
 * in Java2D space).
 *
 * @param info  the chart rendering info (<code>null</code> not permitted).
 * @param source  the source point (<code>null</code> not permitted).
 *
 * @return A subplot (possibly <code>null</code>).
 */
public XYPlot findSubplot(PlotRenderingInfo info, Point2D source) {
  if (info == null) {
    throw new IllegalArgumentException("Null \'info\' argument.");
  }
  if (source == null) {
    throw new IllegalArgumentException("Null \'source\' argument.");
  }
  XYPlot result = null;
  int subplotIndex = info.getSubplotIndex(source);
  if (subplotIndex >= 0) {
    result = (XYPlot) this.subplots.get(subplotIndex);
  }
  return result;
}

/**
 * Sets the item renderer FOR ALL SUBPLOTS.  Registered listeners are
 * notified that the plot has been modified.
 * <P>
 * Note: usually you will want to set the renderer independently for each
 * subplot, which is NOT what this method does.
 *
 * @param renderer the new renderer.
 */
public void setRenderer(XYItemRenderer renderer) {
  super.setRenderer(renderer); // not strictly necessary, since the
  // renderer set for the
  // parent plot is not used
  Iterator iterator = this.subplots.iterator();
  while (iterator.hasNext()) {
    XYPlot plot = (XYPlot) iterator.next();
    plot.setRenderer(renderer);
  }
}


First
Previous
Clone Instance
2
Line Count
125
Source Line
428
Source File
E:/TSE/Projects-CloneDR/jfreechart-1.0.10/src/org/jfree/chart/plot/CombinedRangeXYPlot.java

/**
 * Returns a collection of legend items for the plot.
 *
 * @return The legend items.
 */
public LegendItemCollection getLegendItems() {
  LegendItemCollection result = getFixedLegendItems();
  if (result == null) {
    result = new LegendItemCollection();
    if (this.subplots != null) {
      Iterator iterator = this.subplots.iterator();
      while (iterator.hasNext()) {
        XYPlot plot = (XYPlot) iterator.next();
        LegendItemCollection more = plot.getLegendItems();
        result.addAll(more);
      }
    }
  }
  return result;
}

/**
 * Multiplies the range on the domain axis/axes by the specified factor.
 *
 * @param factor  the zoom factor.
 * @param info  the plot rendering info (<code>null</code> not permitted).
 * @param source  the source point (<code>null</code> not permitted).
 */
public void zoomDomainAxes(double factor, PlotRenderingInfo info, Point2D source) {
  zoomDomainAxes(factor, info, source, false);
}

/**
 * Multiplies the range on the domain axis/axes by the specified factor.
 *
 * @param factor  the zoom factor.
 * @param info  the plot rendering info (<code>null</code> not permitted).
 * @param source  the source point (<code>null</code> not permitted).
 * @param useAnchor  zoom about the anchor point?
 */
public void zoomDomainAxes(double factor, PlotRenderingInfo info, Point2D source, boolean useAnchor) {
  // delegate 'info' and 'source' argument checks...
  XYPlot subplot = findSubplot(info, source);
  if (subplot != null) {
    subplot.zoomDomainAxes(factor, info, source, useAnchor);
  }
  else {
    // if the source point doesn't fall within a subplot, we do the
    // zoom on all subplots...
    Iterator iterator = getSubplots().iterator();
    while (iterator.hasNext()) {
      subplot = (XYPlot) iterator.next();
      subplot.zoomDomainAxes(factor, info, source, useAnchor);
    }
  }
}

/**
 * Zooms in on the domain axes.
 *
 * @param lowerPercent  the lower bound.
 * @param upperPercent  the upper bound.
 * @param info  the plot rendering info (<code>null</code> not permitted).
 * @param source  the source point (<code>null</code> not permitted).
 */
public void zoomDomainAxes(double lowerPercent, double upperPercent, PlotRenderingInfo info, Point2D source) {
  // delegate 'info' and 'source' argument checks...
  XYPlot subplot = findSubplot(info, source);
  if (subplot != null) {
    subplot.zoomDomainAxes(lowerPercent, upperPercent, info, source);
  }
  else {
    // if the source point doesn't fall within a subplot, we do the
    // zoom on all subplots...
    Iterator iterator = getSubplots().iterator();
    while (iterator.hasNext()) {
      subplot = (XYPlot) iterator.next();
      subplot.zoomDomainAxes(lowerPercent, upperPercent, info, source);
    }
  }
}

/**
 * Returns the subplot (if any) that contains the (x, y) point (specified
 * in Java2D space).
 *
 * @param info  the chart rendering info (<code>null</code> not permitted).
 * @param source  the source point (<code>null</code> not permitted).
 *
 * @return A subplot (possibly <code>null</code>).
 */
public XYPlot findSubplot(PlotRenderingInfo info, Point2D source) {
  if (info == null) {
    throw new IllegalArgumentException("Null \'info\' argument.");
  }
  if (source == null) {
    throw new IllegalArgumentException("Null \'source\' argument.");
  }
  XYPlot result = null;
  int subplotIndex = info.getSubplotIndex(source);
  if (subplotIndex >= 0) {
    result = (XYPlot) this.subplots.get(subplotIndex);
  }
  return result;
}

/**
 * Sets the item renderer FOR ALL SUBPLOTS.  Registered listeners are
 * notified that the plot has been modified.
 * <P>
 * Note: usually you will want to set the renderer independently for each
 * subplot, which is NOT what this method does.
 *
 * @param renderer the new renderer.
 */
public void setRenderer(XYItemRenderer renderer) {
  super.setRenderer(renderer); // not strictly necessary, since the
  // renderer set for the
  // parent plot is not used
  Iterator iterator = this.subplots.iterator();
  while (iterator.hasNext()) {
    XYPlot plot = (XYPlot) iterator.next();
    plot.setRenderer(renderer);
  }
}


Clone AbstractionParameter Count: 2Parameter Bindings

/**
     * Returns a collection of legend items for the plot.
     *
     * @return The legend items.
     */
public LegendItemCollection getLegendItems() {
  LegendItemCollection result = getFixedLegendItems();
  if (result == null) {
    result = new LegendItemCollection();
    if (this.subplots != null) {
      Iterator iterator = this.subplots.iterator();
      while (iterator.hasNext()) {
        XYPlot plot = (XYPlot) iterator.next();
        LegendItemCollection more = plot.getLegendItems();
        result.addAll(more);
      }
    }
  }
  return result;
}

/**
     * Multiplies the range on the domain axis/axes by the specified factor.
     *
     * @param factor  the zoom factor.
     * @param info  the plot rendering info (<code>null</code> not permitted).
     * @param source  the source point (<code>null</code> not permitted).
     */
/**
     * Multiplies the range on the range axis/axes by the specified factor.
     *
     * @param factor  the zoom factor.
     * @param info  the plot rendering info (<code>null</code> not permitted).
     * @param source  the source point (<code>null</code> not permitted).
     */
public void [[#variable18b7d560]](double factor, PlotRenderingInfo info, Point2D source) {
   [[#variable18b7d560]](factor, info, source, false);
}

/**
     * Multiplies the range on the domain axis/axes by the specified factor.
     *
     * @param factor  the zoom factor.
     * @param info  the plot rendering info (<code>null</code> not permitted).
     * @param source  the source point (<code>null</code> not permitted).
     * @param useAnchor  zoom about the anchor point?
     */
/**
     * Multiplies the range on the range axis/axes by the specified factor.
     *
     * @param factor  the zoom factor.
     * @param state  the plot state.
     * @param source  the source point (in Java2D coordinates).
     * @param useAnchor  use source point as zoom anchor?
     */
public void [[#variable18b7d560]](double factor, PlotRenderingInfo  [[#variable18b7d620]], Point2D source, boolean useAnchor) {
  // delegate 'info' and 'source' argument checks...
  // delegate 'state' and 'source' argument checks...
  XYPlot subplot = findSubplot( [[#variable18b7d620]], source);
  if (subplot != null) {
    subplot. [[#variable18b7d560]](factor,  [[#variable18b7d620]], source, useAnchor);
  }
  else {
    // if the source point doesn't fall within a subplot, we do the
    // zoom on all subplots...
    Iterator iterator = getSubplots().iterator();
    while (iterator.hasNext()) {
      subplot = (XYPlot) iterator.next();
      subplot. [[#variable18b7d560]](factor,  [[#variable18b7d620]], source, useAnchor);
    }
  }
}

/**
     * Zooms in on the domain axes.
     *
     * @param lowerPercent  the lower bound.
     * @param upperPercent  the upper bound.
     * @param info  the plot rendering info (<code>null</code> not permitted).
     * @param source  the source point (<code>null</code> not permitted).
     */
/**
     * Zooms in on the range axes.
     *
     * @param lowerPercent  the lower bound.
     * @param upperPercent  the upper bound.
     * @param info  the plot rendering info (<code>null</code> not permitted).
     * @param source  the source point (<code>null</code> not permitted).
     */
public void [[#variable18b7d560]](double lowerPercent, double upperPercent, PlotRenderingInfo info, Point2D source) {
  // delegate 'info' and 'source' argument checks...
  XYPlot subplot = findSubplot(info, source);
  if (subplot != null) {
    subplot. [[#variable18b7d560]](lowerPercent, upperPercent, info, source);
  }
  else {
    // if the source point doesn't fall within a subplot, we do the
    // zoom on all subplots...
    Iterator iterator = getSubplots().iterator();
    while (iterator.hasNext()) {
      subplot = (XYPlot) iterator.next();
      subplot. [[#variable18b7d560]](lowerPercent, upperPercent, info, source);
    }
  }
}

/**
     * Returns the subplot (if any) that contains the (x, y) point (specified
     * in Java2D space).
     *
     * @param info  the chart rendering info (<code>null</code> not permitted).
     * @param source  the source point (<code>null</code> not permitted).
     *
     * @return A subplot (possibly <code>null</code>).
     */
public XYPlot findSubplot(PlotRenderingInfo info, Point2D source) {
  if (info == null) {
    throw new IllegalArgumentException("Null \'info\' argument.");
  }
  if (source == null) {
    throw new IllegalArgumentException("Null \'source\' argument.");
  }
  XYPlot result = null;
  int subplotIndex = info.getSubplotIndex(source);
  if (subplotIndex >= 0) {
    result = (XYPlot) this.subplots.get(subplotIndex);
  }
  return result;
}

/**
     * Sets the item renderer FOR ALL SUBPLOTS.  Registered listeners are
     * notified that the plot has been modified.
     * <P>
     * Note: usually you will want to set the renderer independently for each
     * subplot, which is NOT what this method does.
     *
     * @param renderer the new renderer.
     */
public void setRenderer(XYItemRenderer renderer) {
  super.setRenderer(renderer); // not strictly necessary, since the
  // renderer set for the
  // parent plot is not used
  Iterator iterator = this.subplots.iterator();
  while (iterator.hasNext()) {
    XYPlot plot = (XYPlot) iterator.next();
    plot.setRenderer(renderer);
  }
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#18b7d560]]
zoomRangeAxes 
12[[#18b7d560]]
zoomDomainAxes 
21[[#18b7d620]]
state 
22[[#18b7d620]]
info