CloneSet 163

# CloneSet163

Previous CloneSet | Next CloneSet | Back to Main Report

Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length]
--- | --- | --- | --- | ---
22 | 2 | 1 | 0.994 | class_body_declarations[2]

Clone Abstraction | Parameter Bindings

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

1

22

813

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

2

22

751

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

Next
Last

Clone Instance
1

Line Count
22

Source Line
813

Source File

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

    /**
     * Draws a triangle to indicate the presence of far-out values.
     *
     * @param aRadius  the radius.
     * @param g2  the graphics device.
     * @param xx  the x coordinate.
     * @param m  the y coordinate.
     */
    private void drawHighFarOut(double aRadius, Graphics2D g2, double xx, double m) {
      double side = aRadius * 2;
      g2.draw(new Line2D.Double(xx - side, m + side, xx + side, m + side));
      g2.draw(new Line2D.Double(xx - side, m + side, xx, m));
      g2.draw(new Line2D.Double(xx + side, m + side, xx, m));
    }

    /**
     * Draws a triangle to indicate the presence of far-out values.
     *
     * @param aRadius  the radius.
     * @param g2  the graphics device.
     * @param xx  the x coordinate.
     * @param m  the y coordinate.
     */
    private void drawLowFarOut(double aRadius, Graphics2D g2, double xx, double m) {
      double side = aRadius * 2;
      g2.draw(new Line2D.Double(xx - side, m - side, xx + side, m - side));
      g2.draw(new Line2D.Double(xx - side, m - side, xx, m));
      g2.draw(new Line2D.Double(xx + side, m - side, xx, m));
    }

First
Previous

Clone Instance
2

Line Count
22

Source Line
751

Source File

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

    /**
     * Draws a triangle to indicate the presence of far out values.
     *
     * @param aRadius  the radius.
     * @param g2  the graphics device.
     * @param xx  the x value.
     * @param m  the max y value.
     */
    protected void drawHighFarOut(double aRadius, Graphics2D g2, double xx, double m) {
      double side = aRadius * 2;
      g2.draw(new Line2D.Double(xx - side, m + side, xx + side, m + side));
      g2.draw(new Line2D.Double(xx - side, m + side, xx, m));
      g2.draw(new Line2D.Double(xx + side, m + side, xx, m));
    }

    /**
     * Draws a triangle to indicate the presence of far out values.
     *
     * @param aRadius  the radius.
     * @param g2  the graphics device.
     * @param xx  the x value.
     * @param m  the min y value.
     */
    protected void drawLowFarOut(double aRadius, Graphics2D g2, double xx, double m) {
      double side = aRadius * 2;
      g2.draw(new Line2D.Double(xx - side, m - side, xx + side, m - side));
      g2.draw(new Line2D.Double(xx - side, m - side, xx, m));
      g2.draw(new Line2D.Double(xx + side, m - side, xx, m));
    }

Clone Abstraction | Parameter Count: 1 | Parameter Bindings

     [[#variable1aab3600]]void drawHighFarOut(double aRadius, Graphics2D g2, double xx, double m) {
      double side = aRadius * 2;
      g2.draw(new Line2D.Double(xx - side, m + side, xx + side, m + side));
      g2.draw(new Line2D.Double(xx - side, m + side, xx, m));
      g2.draw(new Line2D.Double(xx + side, m + side, xx, m));
    }

     [[#variable1aab3600]]void drawLowFarOut(double aRadius, Graphics2D g2, double xx, double m) {
      double side = aRadius * 2;
      g2.draw(new Line2D.Double(xx - side, m - side, xx + side, m - side));
      g2.draw(new Line2D.Double(xx - side, m - side, xx, m));
      g2.draw(new Line2D.Double(xx + side, m - side, xx, m));
    }

CloneAbstraction

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

1

1

`[[#1aab3600]]`

    /**
     * Draws a triangle to indicate the presence of far-out values.
     *
     * @param aRadius  the radius.
     * @param g2  the graphics device.
     * @param xx  the x coordinate.
     * @param m  the y coordinate.
     */
    private

1

2

`[[#1aab3600]]`

    /**
     * Draws a triangle to indicate the presence of far out values.
     *
     * @param aRadius  the radius.
     * @param g2  the graphics device.
     * @param xx  the x value.
     * @param m  the max y value.
     */
    protected