modifies the generic init code shape

This commit is contained in:
hneemann 2021-01-20 16:57:27 +01:00
parent c301e934b4
commit 74af030fe0

View File

@ -52,8 +52,8 @@ public class GenericInitCodeShape implements Shape {
if (!graphic.isFlagSet(Graphic.Flag.hideTest)) { if (!graphic.isFlagSet(Graphic.Flag.hideTest)) {
Polygon pol = new Polygon(true) Polygon pol = new Polygon(true)
.add(SIZE2, SIZE2) .add(SIZE2, SIZE2)
.add(SIZE2 + SIZE * 6, SIZE2) .add(SIZE2 + SIZE * 4, SIZE2)
.add(SIZE2 + SIZE * 6, SIZE * 2 + SIZE2) .add(SIZE2 + SIZE * 4, SIZE * 2 + SIZE2)
.add(SIZE2, SIZE * 2 + SIZE2); .add(SIZE2, SIZE * 2 + SIZE2);
Style textStyle = NORMAL; Style textStyle = NORMAL;
if (enabled) { if (enabled) {
@ -64,8 +64,8 @@ public class GenericInitCodeShape implements Shape {
textStyle = DISABLED; textStyle = DISABLED;
} }
graphic.drawText(new Vector(SIZE2 + SIZE * 3, SIZE + SIZE2), "generic", Orientation.CENTERCENTER, textStyle); graphic.drawText(new Vector(SIZE2 + SIZE * 2, SIZE + SIZE2), "init", Orientation.CENTERCENTER, textStyle);
graphic.drawText(new Vector(SIZE2 + SIZE * 3, 0), label, Orientation.CENTERBOTTOM, textStyle); graphic.drawText(new Vector(SIZE2 + SIZE * 2, 0), label, Orientation.CENTERBOTTOM, textStyle);
} }
} }
} }