public class SelectableShape implements Item { public void setSelected(boolean b) { selected = b; } public boolean isSelected() { return selected; } private boolean selected; }