Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
5 | 2 | 3 | 0.955 | method_declaration |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 5 | 593 | E:/TSE/Projects-CloneDR/jfreechart-1.0.10/src/org/jfree/chart/axis/NumberAxis.java |
2 | 5 | 608 | E:/TSE/Projects-CloneDR/jfreechart-1.0.10/src/org/jfree/chart/axis/NumberAxis.java |
| |||||
/** * Calculates the value of the lowest visible tick on the axis. * * @return The value of the lowest visible tick on the axis. * * @see #calculateHighestVisibleTickValue() */ protected double calculateLowestVisibleTickValue() { double unit = getTickUnit().getSize(); double index = Math.ceil(getRange().getLowerBound() / unit); return index * unit; } |
| |||||
/** * Calculates the value of the highest visible tick on the axis. * * @return The value of the highest visible tick on the axis. * * @see #calculateLowestVisibleTickValue() */ protected double calculateHighestVisibleTickValue() { double unit = getTickUnit().getSize(); double index = Math.floor(getRange().getUpperBound() / unit); return index * unit; } |
| |||
/** * Calculates the value of the highest visible tick on the axis. * * @return The value of the highest visible tick on the axis. * * @see #calculateLowestVisibleTickValue() */ /** * Calculates the value of the lowest visible tick on the axis. * * @return The value of the lowest visible tick on the axis. * * @see #calculateHighestVisibleTickValue() */ protected double [[#variable18ef6f40]]() { double unit = getTickUnit().getSize(); double index = Math. [[#variable18ef6ee0]](getRange(). [[#variable18ef6da0]]() / unit); return index * unit; } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#18ef6f40]] | calculateLowestVisibleTickValue |
1 | 2 | [[#18ef6f40]] | calculateHighestVisibleTickValue |
2 | 1 | [[#18ef6ee0]] | ceil |
2 | 2 | [[#18ef6ee0]] | floor |
3 | 1 | [[#18ef6da0]] | getLowerBound |
3 | 2 | [[#18ef6da0]] | getUpperBound |