... Shape shapeName = peCreateService.createShape(containerShape, false); Shape shapeDelay = peCreateService.createShape(containerShape, false); // create and set text graphics algorithm Text name = gaService.createText(shapeName, addedClass.getName()); name.setValue("name"); gaService.setLocationAndSize(name, 0, 0, width, 20); Text delay = gaService.createText(shapeDelay, addedClass.getName()); delay.setValue("delay"); gaService.setLocationAndSize(delay, 0, height - 20, width, 20); IDirectEditingInfo directEditingInfo = ...