public static void renderDynam(Graphics graphics, DynamForm dynamForm,
Point location) {
graphics.setFont(GraphicalConstants.FONT_SYMBOL_BIG);
graphics.setLineStyle(SWT.LINE_SOLID);
graphics.setForegroundColor(calculateVariantColor(dynamForm));
Dynam dynam = (Dynam) dynamForm.getMeiNode();
int yShift = +GraphicalConstants.SHAPE_SINGLESYSTEM_HEIGHT / 2 - 16;
switch (dynam.getPlace()) {
case ABOVE:
yShift -= GraphicalConstants.SHAPE_SINGLESYSTEM_HEIGHT / 3;
break;
case BELOW:
yShift += GraphicalConstants.SHAPE_SINGLESYSTEM_HEIGHT / 3;
break;
default:
break;
}
Point dynamSymbolCenterLocation = new Point(location.x + 12, location.y
+ yShift);
String drawString = StringConstants.STRING_EMPTY;
for (Object childObject : dynam.getContent()) {
if (childObject instanceof String) {
// concatenate all strings within this to a single string
drawString += (String) childObject;
}
}