// Get dimension, color, shape
Dimension dimension = new Dimension(width, height);
Color color = (Color) vertex.getAttribute(ObjectType.ATTRIBUTE_COLOR);
String name = (String) vertex.getAttribute(ObjectType.ATTRIBUTE_SHAPE);
IShape shape = ShapeFactory.createShape(name);
// Creates the figure with the specified properties, sets its id
Font font = ((GraphicalEditPart) getParent()).getFigure().getFont();
VertexFigure figure = new VertexFigure(font, dimension, color, shape);
String id = (String) vertex.getValue(ObjectType.PARAMETER_ID);