CloneSet623


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
43210.964class_body_declarations[4]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
143124
E:/TSE/Projects-CloneDR/jfreechart-1.0.10/src/org/jfree/chart/renderer/category/StackedAreaRenderer.java
243171
E:/TSE/Projects-CloneDR/jfreechart-1.0.10/src/org/jfree/chart/renderer/category/StackedBarRenderer.java
Next
Last
Clone Instance
1
Line Count
43
Source Line
124
Source File
E:/TSE/Projects-CloneDR/jfreechart-1.0.10/src/org/jfree/chart/renderer/category/StackedAreaRenderer.java

/**
 * Returns <code>true</code> if the renderer displays each item value as
 * a percentage (so that the stacked areas add to 100%), and
 * <code>false</code> otherwise.
 *
 * @return A boolean.
 *
 * @since 1.0.3
 */
public boolean getRenderAsPercentages() {
  return this.renderAsPercentages;
}

/**
 * Sets the flag that controls whether the renderer displays each item
 * value as a percentage (so that the stacked areas add to 100%), and sends
 * a {@link RendererChangeEvent} to all registered listeners.
 *
 * @param asPercentages  the flag.
 *
 * @since 1.0.3
 */
public void setRenderAsPercentages(boolean asPercentages) {
  this.renderAsPercentages = asPercentages;
  fireChangeEvent();
}

/**
 * Returns the number of passes (<code>2</code>) required by this renderer.
 * The first pass is used to draw the bars, the second pass is used to
 * draw the item labels (if visible).
 *
 * @return The number of passes required by the renderer.
 */
public int getPassCount() {
  return 2;
}

/**
 * Returns the range of values the renderer requires to display all the
 * items from the specified dataset.
 *
 * @param dataset  the dataset (<code>null</code> not permitted).
 *
 * @return The range (or <code>null</code> if the dataset is empty).
 */
public Range findRangeBounds(CategoryDataset dataset) {
  if (this.renderAsPercentages) {
    return new Range(0.0, 1.0);
  }
  else {
    return DatasetUtilities.findStackedRangeBounds(dataset);
  }
}


First
Previous
Clone Instance
2
Line Count
43
Source Line
171
Source File
E:/TSE/Projects-CloneDR/jfreechart-1.0.10/src/org/jfree/chart/renderer/category/StackedBarRenderer.java

/**
 * Returns <code>true</code> if the renderer displays each item value as
 * a percentage (so that the stacked bars add to 100%), and
 * <code>false</code> otherwise.
 *
 * @return A boolean.
 *
 * @see #setRenderAsPercentages(boolean)
 */
public boolean getRenderAsPercentages() {
  return this.renderAsPercentages;
}

/**
 * Sets the flag that controls whether the renderer displays each item
 * value as a percentage (so that the stacked bars add to 100%), and sends
 * a {@link RendererChangeEvent} to all registered listeners.
 *
 * @param asPercentages  the flag.
 *
 * @see #getRenderAsPercentages()
 */
public void setRenderAsPercentages(boolean asPercentages) {
  this.renderAsPercentages = asPercentages;
  fireChangeEvent();
}

/**
 * Returns the number of passes (<code>2</code>) required by this renderer.
 * The first pass is used to draw the bars, the second pass is used to
 * draw the item labels (if visible).
 *
 * @return The number of passes required by the renderer.
 */
public int getPassCount() {
  return 2;
}

/**
 * Returns the range of values the renderer requires to display all the
 * items from the specified dataset.
 *
 * @param dataset  the dataset (<code>null</code> permitted).
 *
 * @return The range (or <code>null</code> if the dataset is empty).
 */
public Range findRangeBounds(CategoryDataset dataset) {
  if (this.renderAsPercentages) {
    return new Range(0.0, 1.0);
  }
  else {
    return DatasetUtilities.findStackedRangeBounds(dataset, getBase());
  }
}


Clone AbstractionParameter Count: 1Parameter Bindings

/**
     * Returns <code>true</code> if the renderer displays each item value as
     * a percentage (so that the stacked areas add to 100%), and
     * <code>false</code> otherwise.
     *
     * @return A boolean.
     *
     * @since 1.0.3
     */
/**
     * Returns <code>true</code> if the renderer displays each item value as
     * a percentage (so that the stacked bars add to 100%), and
     * <code>false</code> otherwise.
     *
     * @return A boolean.
     *
     * @see #setRenderAsPercentages(boolean)
     */
public boolean getRenderAsPercentages() {
  return this.renderAsPercentages;
}

/**
     * Sets the flag that controls whether the renderer displays each item
     * value as a percentage (so that the stacked areas add to 100%), and sends
     * a {@link RendererChangeEvent} to all registered listeners.
     *
     * @param asPercentages  the flag.
     *
     * @since 1.0.3
     */
/**
     * Sets the flag that controls whether the renderer displays each item
     * value as a percentage (so that the stacked bars add to 100%), and sends
     * a {@link RendererChangeEvent} to all registered listeners.
     *
     * @param asPercentages  the flag.
     *
     * @see #getRenderAsPercentages()
     */
public void setRenderAsPercentages(boolean asPercentages) {
  this.renderAsPercentages = asPercentages;
  fireChangeEvent();
}

/**
     * Returns the number of passes (<code>2</code>) required by this renderer.
     * The first pass is used to draw the bars, the second pass is used to
     * draw the item labels (if visible).
     *
     * @return The number of passes required by the renderer.
     */
public int getPassCount() {
  return 2;
}

/**
     * Returns the range of values the renderer requires to display all the
     * items from the specified dataset.
     *
     * @param dataset  the dataset (<code>null</code> not permitted).
     *
     * @return The range (or <code>null</code> if the dataset is empty).
     */
/**
     * Returns the range of values the renderer requires to display all the
     * items from the specified dataset.
     *
     * @param dataset  the dataset (<code>null</code> permitted).
     *
     * @return The range (or <code>null</code> if the dataset is empty).
     */
public Range findRangeBounds(CategoryDataset dataset) {
  if (this.renderAsPercentages) {
    return new Range(0.0, 1.0);
  }
  else {
    return DatasetUtilities.findStackedRangeBounds( [[#variable18cd50a0]]);
  }
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#18cd50a0]]
dataset 
12[[#18cd50a0]]
dataset, getBase()