Example #1
0
 private JRadioButton getShapeButton(
     JRadioButton button, int x, int y, int w, int h, String tip, Shp shp, Obj obj) {
   button.setBounds(new Rectangle(x, y, w, h));
   button.setBorder(BorderFactory.createLoweredBevelBorder());
   button.setToolTipText(Messages.getString(tip));
   button.addActionListener(alShape);
   shapeButtons.add(button);
   shapes.put(shp, button);
   objects.put(shp, obj);
   return button;
 }
Example #2
0
 private void addReflItem(String str, Con con) {
   reflectivities.put(con, reflBox.getItemCount());
   reflBox.addItem(str);
 }
Example #3
0
 private void addConItem(String str, Con con) {
   conspicuities.put(con, conBox.getItemCount());
   conBox.addItem(str);
 }
Example #4
0
 private void addCnsItem(String str, Cns cns) {
   constructions.put(cns, constrBox.getItemCount());
   constrBox.addItem(str);
 }
Example #5
0
 private void addStsItem(String str, Sts sts) {
   statuses.put(sts, statusBox.getItemCount());
   statusBox.addItem(str);
 }
Example #6
0
 private void addMorItem(String str, Cat cat) {
   moorings.put(cat, mooringBox.getItemCount());
   mooringBox.addItem(str);
 }
Example #7
0
 private void addCatItem(String str, Cat cat) {
   categories.put(cat, categoryBox.getItemCount());
   categoryBox.addItem(str);
 }