mirror of
https://github.com/hneemann/Digital.git
synced 2025-09-18 01:14:42 -04:00
Changed visual representation of initial state to avoid confusion with
a accepting state.
This commit is contained in:
parent
fd8a5bef54
commit
e8290f5261
@ -95,12 +95,11 @@ public class State extends Movable<State> {
|
||||
if (getFsm().getActiveState() == number)
|
||||
style = Style.HIGHLIGHT;
|
||||
|
||||
if (number == 0)
|
||||
style = style.deriveStyle(style.getThickness() * 2, false, style.getColor());
|
||||
|
||||
VectorInterface rad = new Vector(radius, radius);
|
||||
gr.drawCircle(getPos().sub(rad), getPos().add(rad), style);
|
||||
if (number == 0) {
|
||||
VectorInterface rad2 = new Vector(radius - Style.MAXLINETHICK * 2, radius - Style.MAXLINETHICK * 2);
|
||||
gr.drawCircle(getPos().sub(rad2), getPos().add(rad2), Style.THIN);
|
||||
}
|
||||
|
||||
Vector delta = new Vector(0, Style.NORMAL.getFontSize());
|
||||
VectorFloat pos = getPos().add(delta.mul(-1));
|
||||
|
Loading…
x
Reference in New Issue
Block a user