CloneSet739


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
7201.000method_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
17155
E:/TSE/Projects-CloneDR/jfreechart-1.0.10/src/org/jfree/chart/title/ShortTextTitle.java
27602
E:/TSE/Projects-CloneDR/jfreechart-1.0.10/src/org/jfree/chart/title/TextTitle.java
Next
Last
Clone Instance
1
Line Count
7
Source Line
155
Source File
E:/TSE/Projects-CloneDR/jfreechart-1.0.10/src/org/jfree/chart/title/ShortTextTitle.java

/**
 * Arranges the content for this title assuming a range constraint for the
 * width and no bounds on the height, and returns the required size.
 *
 * @param g2  the graphics target.
 * @param widthRange  the range for the width.
 *
 * @return The content size.
 */
protected Size2D arrangeRN(Graphics2D g2, Range widthRange) {
  Size2D s = arrangeNN(g2);
  if (widthRange.contains(s.getWidth())) {
    return s;
  }
  double ww = widthRange.constrain(s.getWidth());
  return arrangeFN(g2, ww);
}


First
Previous
Clone Instance
2
Line Count
7
Source Line
602
Source File
E:/TSE/Projects-CloneDR/jfreechart-1.0.10/src/org/jfree/chart/title/TextTitle.java

/**
 * Arranges the content for this title assuming a range constraint for the
 * width and no bounds on the height, and returns the required size.  This
 * will reflect the fact that a text title positioned on the left or right
 * of a chart will be rotated by 90 degrees.
 *
 * @param g2  the graphics target.
 * @param widthRange  the range for the width.
 *
 * @return The content size.
 *
 * @since 1.0.9
 */
protected Size2D arrangeRN(Graphics2D g2, Range widthRange) {
  Size2D s = arrangeNN(g2);
  if (widthRange.contains(s.getWidth())) {
    return s;
  }
  double ww = widthRange.constrain(s.getWidth());
  return arrangeFN(g2, ww);
}


Clone AbstractionParameter Count: 0Parameter Bindings

/**
     * Arranges the content for this title assuming a range constraint for the
     * width and no bounds on the height, and returns the required size.
     *
     * @param g2  the graphics target.
     * @param widthRange  the range for the width.
     *
     * @return The content size.
     */
/**
     * Arranges the content for this title assuming a range constraint for the
     * width and no bounds on the height, and returns the required size.  This
     * will reflect the fact that a text title positioned on the left or right
     * of a chart will be rotated by 90 degrees.
     *
     * @param g2  the graphics target.
     * @param widthRange  the range for the width.
     *
     * @return The content size.
     *
     * @since 1.0.9
     */
protected Size2D arrangeRN(Graphics2D g2, Range widthRange) {
  Size2D s = arrangeNN(g2);
  if (widthRange.contains(s.getWidth())) {
    return s;
  }
  double ww = widthRange.constrain(s.getWidth());
  return arrangeFN(g2, ww);
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
None