public Object clone() { Rectangle rect = new Rectangle(x1, y1, x2, y2); rect.setLocation(getLocation()); rect.setSelectState(getSelectState()); return rect; }