g.translate(-this.extendedShape.getBoundingRect().width / 2.0f,
-this.extendedShape.getBoundingRect().height / 2.0f);
// Schriftposition berechnen
float lineHeight = g.getFont().getLineHeight();
Vector curStringPos = new Vector(SIDE_DISTANCE, LINE_DISTANCE);
// Text zeilenweise darstellen
for (int i = 0; i < this.contents.length; i++) {
GraphicUtils.drawString(g, curStringPos, this.contents[i]);
curStringPos = curStringPos.add(new Vector(0, LINE_DISTANCE
+ lineHeight));
}
// Allgemeine Endmitteilung darstellen
curStringPos = curStringPos.add(new Vector(END_INDENT, LINE_DISTANCE
+ lineHeight));
GraphicUtils.drawString(g, curStringPos, END_TEXT);
}