return list;
// return this.protocol.getShapeBasket();
}
public void exportFigure(String fileName) {
ShapeGrammarModel grammar = new ShapeGrammarModel();
grammar.getShapes().clear();
ShapeModel wholeModel = grammar.addShape();
wholeModel.merge((ShapeModel) model);
Rectangle2D modelBounds = wholeModel.getBounds();
// now move to 0,0
if (modelBounds.getMinX() < 0) {
wholeModel.translate(-modelBounds.getMinX(), 0);
}
if (modelBounds.getMinY() < 0) {
wholeModel.translate(0, -modelBounds.getMinY());
}
grammar.setCurrentFileName(fileName);
grammar.save();
}