Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
11 | 2 | 3 | 0.963 | block |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 11 | 834 | E:/TSE/Projects-CloneDR/jfreechart-1.0.10/src/org/jfree/chart/axis/ValueAxis.java |
2 | 11 | 877 | E:/TSE/Projects-CloneDR/jfreechart-1.0.10/src/org/jfree/chart/axis/ValueAxis.java |
| |||||
{ FontMetrics fm = g2.getFontMetrics(font); Iterator iterator = ticks.iterator(); while (iterator.hasNext()) { Tick tick = (Tick) iterator.next(); Rectangle2D labelBounds = TextUtilities.getTextBounds(tick.getText(), g2, fm); if (labelBounds.getWidth() + insets.getTop() + insets.getBottom() > maxHeight) { maxHeight = labelBounds.getWidth() + insets.getTop() + insets.getBottom(); } } } |
| |||||
{ FontMetrics fm = g2.getFontMetrics(font); Iterator iterator = ticks.iterator(); while (iterator.hasNext()) { Tick tick = (Tick) iterator.next(); Rectangle2D labelBounds = TextUtilities.getTextBounds(tick.getText(), g2, fm); if (labelBounds.getWidth() + insets.getLeft() + insets.getRight() > maxWidth) { maxWidth = labelBounds.getWidth() + insets.getLeft() + insets.getRight(); } } } |
| |||
{ FontMetrics fm = g2.getFontMetrics(font); Iterator iterator = ticks.iterator(); while (iterator.hasNext()) { Tick tick = (Tick) iterator.next(); Rectangle2D labelBounds = TextUtilities.getTextBounds(tick.getText(), g2, fm); if (labelBounds.getWidth() + insets. [[#variable1a9b0a40]]() + insets. [[#variable1a9b09a0]]() > [[#variable1a9b0940]]) { [[#variable1a9b0940]]= labelBounds.getWidth() + insets. [[#variable1a9b0a40]]() + insets. [[#variable1a9b09a0]](); } } } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#1a9b0a40]] | getTop |
1 | 2 | [[#1a9b0a40]] | getLeft |
2 | 1 | [[#1a9b09a0]] | getBottom |
2 | 2 | [[#1a9b09a0]] | getRight |
3 | 1 | [[#1a9b0940]] | maxHeight |
3 | 2 | [[#1a9b0940]] | maxWidth |