protected JComboBox createColorChoice(FigureAttributeConstant attribute) { CommandChoice choice = new CommandChoice(); for (int i = 0; i < ColorMap.size(); i++) choice.addItem( new ChangeAttributeCommand(ColorMap.name(i), attribute, ColorMap.color(i), this)); return choice; }