CloneSet44


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
26301.000nested_class_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
126144
E:/TSE/Projects-CloneDR/columba-1.4-src/core/src/main/java/org/columba/core/gui/context/ContextResultBox.java
22686
E:/TSE/Projects-CloneDR/columba-1.4-src/core/src/main/java/org/columba/core/gui/search/ComponentBoxContainer.java
326185
E:/TSE/Projects-CloneDR/columba-1.4-src/core/src/main/java/org/columba/core/gui/search/SearchResultBox.java
Next
Last
Clone Instance
1
Line Count
26
Source Line
144
Source File
E:/TSE/Projects-CloneDR/columba-1.4-src/core/src/main/java/org/columba/core/gui/context/ContextResultBox.java

/**
 * The border between the stack components. It separates each component with
 * a fine line border.
 */
class SeparatorBorder implements Border {
  boolean isFirst(Component c) {
    return c.getParent() == null || c.getParent().getComponent(0) == c;
  }

  public Insets getBorderInsets(Component c) {
    // if the collapsible is collapsed, we do not want its border to be
    // painted.
    if (c instanceof JXCollapsiblePane) {
      if (((JXCollapsiblePane) c).isCollapsed()) {
        return new Insets(0, 0, 0, 0);
      }
    }
    return new Insets(isFirst(c) ? 4: 1, 0, 1, 0);
  }

  public boolean isBorderOpaque() {
    return true;
  }

  public void paintBorder(Component c, Graphics g, int x, int y, int width, int height) {
    g.setColor(borderColor1);
    if (isFirst(c)) {
      g.drawLine(x, y + 2, x + width, y + 2);
    }
  //                      g.setColor(borderColor2);
  //                      g.drawLine(x, y + height - 1, x + width, y + height - 1);
  }
}


Next
Previous
Clone Instance
2
Line Count
26
Source Line
86
Source File
E:/TSE/Projects-CloneDR/columba-1.4-src/core/src/main/java/org/columba/core/gui/search/ComponentBoxContainer.java

/**
 * The border between the stack components. It separates each component with
 * a fine line border.
 */
class SeparatorBorder implements Border {
  boolean isFirst(Component c) {
    return c.getParent() == null || c.getParent().getComponent(0) == c;
  }

  public Insets getBorderInsets(Component c) {
    // if the collapsible is collapsed, we do not want its border to be
    // painted.
    if (c instanceof JXCollapsiblePane) {
      if (((JXCollapsiblePane) c).isCollapsed()) {
        return new Insets(0, 0, 0, 0);
      }
    }
    return new Insets(isFirst(c) ? 4: 1, 0, 1, 0);
  }

  public boolean isBorderOpaque() {
    return true;
  }

  public void paintBorder(Component c, Graphics g, int x, int y, int width, int height) {
    g.setColor(borderColor1);
    if (isFirst(c)) {
      g.drawLine(x, y + 2, x + width, y + 2);
    }
  //                      g.setColor(borderColor2);
  //                      g.drawLine(x, y + height - 1, x + width, y + height - 1);
  }
}


First
Previous
Clone Instance
3
Line Count
26
Source Line
185
Source File
E:/TSE/Projects-CloneDR/columba-1.4-src/core/src/main/java/org/columba/core/gui/search/SearchResultBox.java

/**
 * The border between the stack components. It separates each component with
 * a fine line border.
 */
class SeparatorBorder implements Border {
  boolean isFirst(Component c) {
    return c.getParent() == null || c.getParent().getComponent(0) == c;
  }

  public Insets getBorderInsets(Component c) {
    // if the collapsible is collapsed, we do not want its border to be
    // painted.
    if (c instanceof JXCollapsiblePane) {
      if (((JXCollapsiblePane) c).isCollapsed()) {
        return new Insets(0, 0, 0, 0);
      }
    }
    return new Insets(isFirst(c) ? 4: 1, 0, 1, 0);
  }

  public boolean isBorderOpaque() {
    return true;
  }

  public void paintBorder(Component c, Graphics g, int x, int y, int width, int height) {
    g.setColor(borderColor1);
    if (isFirst(c)) {
      g.drawLine(x, y + 2, x + width, y + 2);
    }
  //                      g.setColor(borderColor2);
  //                      g.drawLine(x, y + height - 1, x + width, y + height - 1);
  }
}


Clone AbstractionParameter Count: 0Parameter Bindings

/**
         * The border between the stack components. It separates each component with
         * a fine line border.
         */
class SeparatorBorder implements Border {
  boolean isFirst(Component c) {
    return c.getParent() == null || c.getParent().getComponent(0) == c;
  }

  public Insets getBorderInsets(Component c) {
    // if the collapsible is collapsed, we do not want its border to be
    // painted.
    if (c instanceof JXCollapsiblePane) {
      if (((JXCollapsiblePane) c).isCollapsed()) {
        return new Insets(0, 0, 0, 0);
      }
    }
    return new Insets(isFirst(c) ? 4: 1, 0, 1, 0);
  }

  public boolean isBorderOpaque() {
    return true;
  }

  public void paintBorder(Component c, Graphics g, int x, int y, int width, int height) {
    g.setColor(borderColor1);
    if (isFirst(c)) {
      g.drawLine(x, y + 2, x + width, y + 2);
    }
  //                      g.setColor(borderColor2);
  //                      g.drawLine(x, y + height - 1, x + width, y + height - 1);
  }
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
None