CloneSet 636

# CloneSet636

Previous CloneSet | Next CloneSet | Back to Main Report

Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length]
--- | --- | --- | --- | ---
49 | 2 | 0 | 1.000 | class_body_declarations[4]

Clone Abstraction | Parameter Bindings

Clone Instance (Click to see clone) | Line Count | Source Line | Source File
--- | --- | --- | ---

1

55

750

    E:/TSE/Projects-CloneDR/jfreechart-1.0.10/src/org/jfree/chart/renderer/category/LineAndShapeRenderer.java

2

49

141

    E:/TSE/Projects-CloneDR/jfreechart-1.0.10/src/org/jfree/chart/renderer/category/ScatterRenderer.java

Next
Last

Clone Instance
1

Line Count
55

Source Line
750

Source File

    E:/TSE/Projects-CloneDR/jfreechart-1.0.10/src/org/jfree/chart/renderer/category/LineAndShapeRenderer.java

    /**
     * Returns the flag that controls whether or not the x-position for each
     * data item is offset within the category according to the series.
     *
     * @return A boolean.
     *
     * @see #setUseSeriesOffset(boolean)
     *
     * @since 1.0.7
     */
    public boolean getUseSeriesOffset() {
      return this.useSeriesOffset;
    }

    /**
     * Sets the flag that controls whether or not the x-position for each
     * data item is offset within its category according to the series, and
     * sends a {@link RendererChangeEvent} to all registered listeners.
     *
     * @param offset  the offset.
     *
     * @see #getUseSeriesOffset()
     *
     * @since 1.0.7
     */
    public void setUseSeriesOffset(boolean offset) {
      this.useSeriesOffset = offset;
      fireChangeEvent();
    }

    /**
     * Returns the item margin, which is the gap between items within a
     * category (expressed as a percentage of the overall category width).
     * This can be used to match the offset alignment with the bars drawn by
     * a {@link BarRenderer}).
     *
     * @return The item margin.
     *
     * @see #setItemMargin(double)
     * @see #getUseSeriesOffset()
     *
     * @since 1.0.7
     */
    public double getItemMargin() {
      return this.itemMargin;
    }

    /**
     * Sets the item margin, which is the gap between items within a category
     * (expressed as a percentage of the overall category width), and sends
     * a {@link RendererChangeEvent} to all registered listeners.
     *
     * @param margin  the margin (0.0 <= margin < 1.0).
     *
     * @see #getItemMargin()
     * @see #getUseSeriesOffset()
     *
     * @since 1.0.7
     */
    public void setItemMargin(double margin) {
      if (margin < 0.0 || margin >= 1.0) {
        throw new IllegalArgumentException("Requires 0.0 <= margin < 1.0.");
      }
      this.itemMargin = margin;
      fireChangeEvent();
    }

First
Previous

Clone Instance
2

Line Count
49

Source Line
141

Source File

    E:/TSE/Projects-CloneDR/jfreechart-1.0.10/src/org/jfree/chart/renderer/category/ScatterRenderer.java

    /**
     * Returns the flag that controls whether or not the x-position for each
     * data item is offset within the category according to the series.
     *
     * @return A boolean.
     *
     * @see #setUseSeriesOffset(boolean)
     */
    public boolean getUseSeriesOffset() {
      return this.useSeriesOffset;
    }

    /**
     * Sets the flag that controls whether or not the x-position for each
     * data item is offset within its category according to the series, and
     * sends a {@link RendererChangeEvent} to all registered listeners.
     *
     * @param offset  the offset.
     *
     * @see #getUseSeriesOffset()
     */
    public void setUseSeriesOffset(boolean offset) {
      this.useSeriesOffset = offset;
      fireChangeEvent();
    }

    /**
     * Returns the item margin, which is the gap between items within a
     * category (expressed as a percentage of the overall category width).
     * This can be used to match the offset alignment with the bars drawn by
     * a {@link BarRenderer}).
     *
     * @return The item margin.
     *
     * @see #setItemMargin(double)
     * @see #getUseSeriesOffset()
     */
    public double getItemMargin() {
      return this.itemMargin;
    }

    /**
     * Sets the item margin, which is the gap between items within a category
     * (expressed as a percentage of the overall category width), and sends
     * a {@link RendererChangeEvent} to all registered listeners.
     *
     * @param margin  the margin (0.0 <= margin < 1.0).
     *
     * @see #getItemMargin()
     * @see #getUseSeriesOffset()
     */
    public void setItemMargin(double margin) {
      if (margin < 0.0 || margin >= 1.0) {
        throw new IllegalArgumentException("Requires 0.0 <= margin < 1.0.");
      }
      this.itemMargin = margin;
      fireChangeEvent();
    }

Clone Abstraction | Parameter Count: 0 | Parameter Bindings

    /**
         * Returns the flag that controls whether or not the x-position for each
         * data item is offset within the category according to the series.
         *
         * @return A boolean.
         *
         * @see #setUseSeriesOffset(boolean)
         */
    /**
         * Returns the flag that controls whether or not the x-position for each
         * data item is offset within the category according to the series.
         *
         * @return A boolean.
         *
         * @see #setUseSeriesOffset(boolean)
         *
         * @since 1.0.7
         */
    public boolean getUseSeriesOffset() {
      return this.useSeriesOffset;
    }

    /**
         * Sets the flag that controls whether or not the x-position for each
         * data item is offset within its category according to the series, and
         * sends a {@link RendererChangeEvent} to all registered listeners.
         *
         * @param offset  the offset.
         *
         * @see #getUseSeriesOffset()
         */
    /**
         * Sets the flag that controls whether or not the x-position for each
         * data item is offset within its category according to the series, and
         * sends a {@link RendererChangeEvent} to all registered listeners.
         *
         * @param offset  the offset.
         *
         * @see #getUseSeriesOffset()
         *
         * @since 1.0.7
         */
    public void setUseSeriesOffset(boolean offset) {
      this.useSeriesOffset = offset;
      fireChangeEvent();
    }

    /**
         * Returns the item margin, which is the gap between items within a
         * category (expressed as a percentage of the overall category width).
         * This can be used to match the offset alignment with the bars drawn by
         * a {@link BarRenderer}).
         *
         * @return The item margin.
         *
         * @see #setItemMargin(double)
         * @see #getUseSeriesOffset()
         */
    /**
         * Returns the item margin, which is the gap between items within a
         * category (expressed as a percentage of the overall category width).
         * This can be used to match the offset alignment with the bars drawn by
         * a {@link BarRenderer}).
         *
         * @return The item margin.
         *
         * @see #setItemMargin(double)
         * @see #getUseSeriesOffset()
         *
         * @since 1.0.7
         */
    public double getItemMargin() {
      return this.itemMargin;
    }

    /**
         * Sets the item margin, which is the gap between items within a category
         * (expressed as a percentage of the overall category width), and sends
         * a {@link RendererChangeEvent} to all registered listeners.
         *
         * @param margin  the margin (0.0 <= margin < 1.0).
         *
         * @see #getItemMargin()
         * @see #getUseSeriesOffset()
         */
    /**
         * Sets the item margin, which is the gap between items within a category
         * (expressed as a percentage of the overall category width), and sends
         * a {@link RendererChangeEvent} to all registered listeners.
         *
         * @param margin  the margin (0.0 <= margin < 1.0).
         *
         * @see #getItemMargin()
         * @see #getUseSeriesOffset()
         *
         * @since 1.0.7
         */
    public void setItemMargin(double margin) {
      if (margin < 0.0 || margin >= 1.0) {
        throw new IllegalArgumentException("Requires 0.0 <= margin < 1.0.");
      }
      this.itemMargin = margin;
      fireChangeEvent();
    }

CloneAbstraction

Parameter Bindings
Parameter Index | Clone Instance | Parameter Name | Value
--- | --- | --- | ---
None