CloneSet251


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
19220.983block
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
1201009
E:/TSE/Projects-CloneDR/jfreechart-1.0.10/src/org/jfree/chart/axis/CyclicNumberAxis.java
219699
E:/TSE/Projects-CloneDR/jfreechart-1.0.10/src/org/jfree/chart/axis/ValueAxis.java
Next
Last
Clone Instance
1
Line Count
20
Source Line
1009
Source File
E:/TSE/Projects-CloneDR/jfreechart-1.0.10/src/org/jfree/chart/axis/CyclicNumberAxis.java

{
  float xx = (float) valueToJava2D(getRange().getUpperBound(), dataArea, edge);
  Line2D mark = null;
  g2.setStroke(getTickMarkStroke());
  g2.setPaint(getTickMarkPaint());
  if (edge == RectangleEdge.LEFT) {
    mark = new Line2D.Double(cursor - ol, xx, cursor + il, xx);
  }
  else
    if (edge == RectangleEdge.RIGHT) {
      mark = new Line2D.Double(cursor + ol, xx, cursor - il, xx);
    }
    else
      if (edge == RectangleEdge.TOP) {
        mark = new Line2D.Double(xx, cursor - ol, xx, cursor + il);
      }
      else
        if (edge == RectangleEdge.BOTTOM) {
          mark = new Line2D.Double(xx, cursor + ol, xx, cursor - il);
        }
  g2.draw(mark);
}


First
Previous
Clone Instance
2
Line Count
19
Source Line
699
Source File
E:/TSE/Projects-CloneDR/jfreechart-1.0.10/src/org/jfree/chart/axis/ValueAxis.java

{
  float xx = (float) valueToJava2D(tick.getValue(), dataArea, edge);
  Line2D mark = null;
  g2.setStroke(getTickMarkStroke());
  g2.setPaint(getTickMarkPaint());
  if (edge == RectangleEdge.LEFT) {
    mark = new Line2D.Double(cursor - ol, xx, cursor + il, xx);
  }
  else
    if (edge == RectangleEdge.RIGHT) {
      mark = new Line2D.Double(cursor + ol, xx, cursor - il, xx);
    }
    else
      if (edge == RectangleEdge.TOP) {
        mark = new Line2D.Double(xx, cursor - ol, xx, cursor + il);
      }
      else
        if (edge == RectangleEdge.BOTTOM) {
          mark = new Line2D.Double(xx, cursor + ol, xx, cursor - il);
        }
  g2.draw(mark);
}


Clone AbstractionParameter Count: 2Parameter Bindings

{
  float xx = (float) valueToJava2D( [[#variable1a865800]]. [[#variable1a8655a0]](), dataArea, edge);
  Line2D mark = null;
  g2.setStroke(getTickMarkStroke());
  g2.setPaint(getTickMarkPaint());
  if (edge == RectangleEdge.LEFT) {
    mark = new Line2D.Double(cursor - ol, xx, cursor + il, xx);
  }
  else
    if (edge == RectangleEdge.RIGHT) {
      mark = new Line2D.Double(cursor + ol, xx, cursor - il, xx);
    }
    else
      if (edge == RectangleEdge.TOP) {
        mark = new Line2D.Double(xx, cursor - ol, xx, cursor + il);
      }
      else
        if (edge == RectangleEdge.BOTTOM) {
          mark = new Line2D.Double(xx, cursor + ol, xx, cursor - il);
        }
  g2.draw(mark);
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#1a865800]]
getRange() 
12[[#1a865800]]
tick 
21[[#1a8655a0]]
getUpperBound 
22[[#1a8655a0]]
getValue