mirror of
https://github.com/hneemann/Digital.git
synced 2025-09-16 08:25:09 -04:00
indicates "default DC" in state chart
This commit is contained in:
parent
fb7a2cbe73
commit
b3f2ce740a
@ -122,7 +122,10 @@ public class State extends Movable<State> {
|
|||||||
Vector delta = new Vector(0, Style.NORMAL.getFontSize());
|
Vector delta = new Vector(0, Style.NORMAL.getFontSize());
|
||||||
VectorFloat pos = getPos().add(delta.mul(-1));
|
VectorFloat pos = getPos().add(delta.mul(-1));
|
||||||
|
|
||||||
gr.drawText(pos, Integer.toString(number), Orientation.CENTERCENTER, Style.NORMAL);
|
String text = Integer.toString(number);
|
||||||
|
if (defaultDC)
|
||||||
|
text += " DC";
|
||||||
|
gr.drawText(pos, text, Orientation.CENTERCENTER, Style.NORMAL);
|
||||||
pos = pos.add(delta);
|
pos = pos.add(delta);
|
||||||
gr.drawText(pos, name, Orientation.CENTERCENTER, Style.NORMAL);
|
gr.drawText(pos, name, Orientation.CENTERCENTER, Style.NORMAL);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user