Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
17 | 2 | 3 | 0.971 | method_declaration |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 17 | 3392 | E:/TSE/Projects-CloneDR/jfreechart-1.0.10/src/org/jfree/chart/plot/XYPlot.java |
2 | 17 | 3419 | E:/TSE/Projects-CloneDR/jfreechart-1.0.10/src/org/jfree/chart/plot/XYPlot.java |
| |||||
/** * Returns the domain axis for a dataset. * * @param index the dataset index. * * @return The axis. */ public ValueAxis getDomainAxisForDataset(int index) { if (index < 0 || index >= getDatasetCount()) { throw new IllegalArgumentException("Index " + index + " out of bounds."); } ValueAxis valueAxis = null; Integer axisIndex = (Integer) this.datasetToDomainAxisMap.get(new Integer(index)); if (axisIndex != null) { valueAxis = getDomainAxis(axisIndex.intValue()); } else { valueAxis = getDomainAxis(0); } return valueAxis; } |
| |||||
/** * Returns the range axis for a dataset. * * @param index the dataset index. * * @return The axis. */ public ValueAxis getRangeAxisForDataset(int index) { if (index < 0 || index >= getDatasetCount()) { throw new IllegalArgumentException("Index " + index + " out of bounds."); } ValueAxis valueAxis = null; Integer axisIndex = (Integer) this.datasetToRangeAxisMap.get(new Integer(index)); if (axisIndex != null) { valueAxis = getRangeAxis(axisIndex.intValue()); } else { valueAxis = getRangeAxis(0); } return valueAxis; } |
| |||
/** * Returns the range axis for a dataset. * * @param index the dataset index. * * @return The axis. */ /** * Returns the domain axis for a dataset. * * @param index the dataset index. * * @return The axis. */ public ValueAxis [[#variable18c39a20]](int index) { if (index < 0 || index >= getDatasetCount()) { throw new IllegalArgumentException("Index " + index + " out of bounds."); } ValueAxis valueAxis = null; Integer axisIndex = (Integer) this. [[#variable18c39980]].get(new Integer(index)); if (axisIndex != null) { valueAxis = [[#variable18c39900]](axisIndex.intValue()); } else { valueAxis = [[#variable18c39900]](0); } return valueAxis; } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#18c39a20]] | getDomainAxisForDataset |
1 | 2 | [[#18c39a20]] | getRangeAxisForDataset |
2 | 1 | [[#18c39980]] | datasetToDomainAxisMap |
2 | 2 | [[#18c39980]] | datasetToRangeAxisMap |
3 | 1 | [[#18c39900]] | getDomainAxis |
3 | 2 | [[#18c39900]] | getRangeAxis |