CloneSet4


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
22601.000class_body_declarations[3]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
12249
E:/TSE/Projects-CloneDR/columba-1.4-src/calendar/src/main/java/org/columba/calendar/ui/box/CalendarMenu.java
22288
E:/TSE/Projects-CloneDR/columba-1.4-src/calendar/src/main/java/org/columba/calendar/ui/comp/CalendarPicker.java
32273
E:/TSE/Projects-CloneDR/columba-1.4-src/calendar/src/main/java/org/columba/calendar/ui/list/DefaultStringRenderer.java
422135
E:/TSE/Projects-CloneDR/columba-1.4-src/core/src/main/java/org/columba/core/gui/tagging/TaggingMenu.java
522341
E:/TSE/Projects-CloneDR/columba-1.4-src/core/src/main/java/org/columba/core/gui/tagging/TagList.java
622137
E:/TSE/Projects-CloneDR/columba-1.4-src/mail/src/main/java/org/columba/mail/gui/table/action/ColorMessageMenu.java
Next
Last
Clone Instance
1
Line Count
22
Source Line
49
Source File
E:/TSE/Projects-CloneDR/columba-1.4-src/calendar/src/main/java/org/columba/calendar/ui/box/CalendarMenu.java

private Icon createIcon(Color color) {
  int width = 16;
  int height = 16;
  BufferedImage image = new BufferedImage(width, height, BufferedImage.TYPE_INT_ARGB);
  Graphics2D graphics = (Graphics2D) image.getGraphics();
  graphics.setColor(darker(color));
  graphics.drawRect(1, 1, width - 3, height - 3);
  graphics.setColor(color);
  graphics.fillRect(2, 2, width - 4, height - 4);
  graphics.dispose();
  return new ImageIcon(image);
}

private final static double FACTOR = 0.90;

private Color darker(Color c) {
  return new Color(Math.max((int) (c.getRed() * FACTOR), 0), Math.max((int) (c.getGreen() * FACTOR), 0), Math.max((int) (c.getBlue() * FACTOR), 0));
}


Next
Previous
Clone Instance
2
Line Count
22
Source Line
88
Source File
E:/TSE/Projects-CloneDR/columba-1.4-src/calendar/src/main/java/org/columba/calendar/ui/comp/CalendarPicker.java

private Icon createIcon(Color color) {
  int width = 16;
  int height = 16;
  BufferedImage image = new BufferedImage(width, height, BufferedImage.TYPE_INT_ARGB);
  Graphics2D graphics = (Graphics2D) image.getGraphics();
  graphics.setColor(darker(color));
  graphics.drawRect(1, 1, width - 3, height - 3);
  graphics.setColor(color);
  graphics.fillRect(2, 2, width - 4, height - 4);
  graphics.dispose();
  return new ImageIcon(image);
}

private final static double FACTOR = 0.90;

private Color darker(Color c) {
  return new Color(Math.max((int) (c.getRed() * FACTOR), 0), Math.max((int) (c.getGreen() * FACTOR), 0), Math.max((int) (c.getBlue() * FACTOR), 0));
}


Next
Previous
Clone Instance
3
Line Count
22
Source Line
73
Source File
E:/TSE/Projects-CloneDR/columba-1.4-src/calendar/src/main/java/org/columba/calendar/ui/list/DefaultStringRenderer.java

private Icon createIcon(Color color) {
  int width = 16;
  int height = 16;
  BufferedImage image = new BufferedImage(width, height, BufferedImage.TYPE_INT_ARGB);
  Graphics2D graphics = (Graphics2D) image.getGraphics();
  graphics.setColor(darker(color));
  graphics.drawRect(1, 1, width - 3, height - 3);
  graphics.setColor(color);
  graphics.fillRect(2, 2, width - 4, height - 4);
  graphics.dispose();
  return new ImageIcon(image);
}

private final static double FACTOR = 0.90;

private Color darker(Color c) {
  return new Color(Math.max((int) (c.getRed() * FACTOR), 0), Math.max((int) (c.getGreen() * FACTOR), 0), Math.max((int) (c.getBlue() * FACTOR), 0));
}


Next
Previous
Clone Instance
4
Line Count
22
Source Line
135
Source File
E:/TSE/Projects-CloneDR/columba-1.4-src/core/src/main/java/org/columba/core/gui/tagging/TaggingMenu.java

private Icon createIcon(Color color) {
  int width = 16;
  int height = 16;
  BufferedImage image = new BufferedImage(width, height, BufferedImage.TYPE_INT_ARGB);
  Graphics2D graphics = (Graphics2D) image.getGraphics();
  graphics.setColor(darker(color));
  graphics.drawRect(1, 1, width - 3, height - 3);
  graphics.setColor(color);
  graphics.fillRect(2, 2, width - 4, height - 4);
  graphics.dispose();
  return new ImageIcon(image);
}

private final static double FACTOR = 0.90;

private Color darker(Color c) {
  return new Color(Math.max((int) (c.getRed() * FACTOR), 0), Math.max((int) (c.getGreen() * FACTOR), 0), Math.max((int) (c.getBlue() * FACTOR), 0));
}


Next
Previous
Clone Instance
5
Line Count
22
Source Line
341
Source File
E:/TSE/Projects-CloneDR/columba-1.4-src/core/src/main/java/org/columba/core/gui/tagging/TagList.java

private Icon createIcon(Color color) {
  int width = 16;
  int height = 16;
  BufferedImage image = new BufferedImage(width, height, BufferedImage.TYPE_INT_ARGB);
  Graphics2D graphics = (Graphics2D) image.getGraphics();
  graphics.setColor(darker(color));
  graphics.drawRect(1, 1, width - 3, height - 3);
  graphics.setColor(color);
  graphics.fillRect(2, 2, width - 4, height - 4);
  graphics.dispose();
  return new ImageIcon(image);
}

private final static double FACTOR = 0.90;

private Color darker(Color c) {
  return new Color(Math.max((int) (c.getRed() * FACTOR), 0), Math.max((int) (c.getGreen() * FACTOR), 0), Math.max((int) (c.getBlue() * FACTOR), 0));
}


First
Previous
Clone Instance
6
Line Count
22
Source Line
137
Source File
E:/TSE/Projects-CloneDR/columba-1.4-src/mail/src/main/java/org/columba/mail/gui/table/action/ColorMessageMenu.java

private Icon createIcon(Color color) {
  int width = 16;
  int height = 16;
  BufferedImage image = new BufferedImage(width, height, BufferedImage.TYPE_INT_ARGB);
  Graphics2D graphics = (Graphics2D) image.getGraphics();
  graphics.setColor(darker(color));
  graphics.drawRect(1, 1, width - 3, height - 3);
  graphics.setColor(color);
  graphics.fillRect(2, 2, width - 4, height - 4);
  graphics.dispose();
  return new ImageIcon(image);
}

private final static double FACTOR = 0.90;

private Color darker(Color c) {
  return new Color(Math.max((int) (c.getRed() * FACTOR), 0), Math.max((int) (c.getGreen() * FACTOR), 0), Math.max((int) (c.getBlue() * FACTOR), 0));
}


Clone AbstractionParameter Count: 0Parameter Bindings

private Icon createIcon(Color color) {
  int width = 16;
  int height = 16;
  BufferedImage image = new BufferedImage(width, height, BufferedImage.TYPE_INT_ARGB);
  Graphics2D graphics = (Graphics2D) image.getGraphics();
  graphics.setColor(darker(color));
  graphics.drawRect(1, 1, width - 3, height - 3);
  graphics.setColor(color);
  graphics.fillRect(2, 2, width - 4, height - 4);
  graphics.dispose();
  return new ImageIcon(image);
}

private final static double FACTOR = 0.90;

private Color darker(Color c) {
  return new Color(Math.max((int) (c.getRed() * FACTOR), 0), Math.max((int) (c.getGreen() * FACTOR), 0), Math.max((int) (c.getBlue() * FACTOR), 0));
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
None