public void removeShape(BShapeModel model) { if (model != null) shapeModels.remove(model.getName()); }
public void addShape(BShapeModel model) { if (model.getName() == null) model.setName(shapeCounter.getShapeName()); shapeModels.put(model.getName(), model); model.setData(this); }