CloneSet198


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
37230.983statement_sequence[13]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
137583
E:/TSE/Projects-CloneDR/jfreechart-1.0.10/src/org/jfree/chart/axis/SymbolAxis.java
237677
E:/TSE/Projects-CloneDR/jfreechart-1.0.10/src/org/jfree/chart/axis/SymbolAxis.java
Next
Last
Clone Instance
1
Line Count
37
Source Line
583
Source File
E:/TSE/Projects-CloneDR/jfreechart-1.0.10/src/org/jfree/chart/axis/SymbolAxis.java

double currentTickValue = lowestTickValue + (i * size);
double xx = valueToJava2D(currentTickValue, dataArea, edge);
String tickLabel;
NumberFormat formatter = getNumberFormatOverride();
if (formatter != null) {
  tickLabel = formatter.format(currentTickValue);
}
else {
  tickLabel = valueToString(currentTickValue);
}
// avoid to draw overlapping tick labels
Rectangle2D bounds = TextUtilities.getTextBounds(tickLabel, g2, g2.getFontMetrics());
double tickLabelLength = isVerticalTickLabels() ? bounds.getHeight(): bounds.getWidth();
boolean tickLabelsOverlapping = false;
if (i > 0) {
  double avgTickLabelLength = (previousDrawnTickLabelLength + tickLabelLength) / 2.0;
  if (Math.abs(xx - previousDrawnTickLabelPos) < avgTickLabelLength) {
    tickLabelsOverlapping = true;
  }
}
if (tickLabelsOverlapping) {
  tickLabel = ""; // don't draw this tick label
}
else {
  // remember these values for next comparison
  previousDrawnTickLabelPos = xx;
  previousDrawnTickLabelLength = tickLabelLength;
}
TextAnchor anchor = null;
TextAnchor rotationAnchor = null;
double angle = 0.0;


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

double currentTickValue = lowestTickValue + (i * size);
double yy = valueToJava2D(currentTickValue, dataArea, edge);
String tickLabel;
NumberFormat formatter = getNumberFormatOverride();
if (formatter != null) {
  tickLabel = formatter.format(currentTickValue);
}
else {
  tickLabel = valueToString(currentTickValue);
}
// avoid to draw overlapping tick labels
Rectangle2D bounds = TextUtilities.getTextBounds(tickLabel, g2, g2.getFontMetrics());
double tickLabelLength = isVerticalTickLabels() ? bounds.getWidth(): bounds.getHeight();
boolean tickLabelsOverlapping = false;
if (i > 0) {
  double avgTickLabelLength = (previousDrawnTickLabelLength + tickLabelLength) / 2.0;
  if (Math.abs(yy - previousDrawnTickLabelPos) < avgTickLabelLength) {
    tickLabelsOverlapping = true;
  }
}
if (tickLabelsOverlapping) {
  tickLabel = ""; // don't draw this tick label
}
else {
  // remember these values for next comparison
  previousDrawnTickLabelPos = yy;
  previousDrawnTickLabelLength = tickLabelLength;
}
TextAnchor anchor = null;
TextAnchor rotationAnchor = null;
double angle = 0.0;


Clone AbstractionParameter Count: 3Parameter Bindings

double currentTickValue = lowestTickValue + (i * size);
double  [[#variable1a8073a0]]= valueToJava2D(currentTickValue, dataArea, edge);
String tickLabel;
NumberFormat formatter = getNumberFormatOverride();
if (formatter != null) {
  tickLabel = formatter.format(currentTickValue);
}
else {
  tickLabel = valueToString(currentTickValue);
}
// avoid to draw overlapping tick labels
Rectangle2D bounds = TextUtilities.getTextBounds(tickLabel, g2, g2.getFontMetrics());
double tickLabelLength = isVerticalTickLabels() ? bounds. [[#variable1a806640]](): bounds. [[#variable1a807a00]]();
boolean tickLabelsOverlapping = false;
if (i > 0) {
  double avgTickLabelLength = (previousDrawnTickLabelLength + tickLabelLength) / 2.0;
  if (Math.abs( [[#variable1a8073a0]] - previousDrawnTickLabelPos) < avgTickLabelLength) {
    tickLabelsOverlapping = true;
  }
}
if (tickLabelsOverlapping) {
  tickLabel = ""; // don't draw this tick label
}
else {
  // remember these values for next comparison
  previousDrawnTickLabelPos = [[#variable1a8073a0]];
  previousDrawnTickLabelLength = tickLabelLength;
}
TextAnchor anchor = null;
TextAnchor rotationAnchor = null;
double angle = 0.0;
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#1a8073a0]]
xx 
12[[#1a8073a0]]
yy 
21[[#1a806640]]
getHeight 
22[[#1a806640]]
getWidth 
31[[#1a807a00]]
getWidth 
32[[#1a807a00]]
getHeight