void initUiState() { _ar.set(0, 0, _sw, _sh); _rar.set(_ar); _zov = 1.0f; setState(this, _State.PEN.getInstance()); moveActiveRegionTo(this, 0, 0); }
void init(Plat platboard, String pencls, String erasercls) { _platboard = platboard; _State.PEN.init(platboard, pencls); _State.ERASER.init(platboard, erasercls); _state = _State.PEN.getInstance(); }
WBStateI penState() { return _State.PEN.getInstance(); }
void state(String name) { _state = _State.PEN.getInstance(); // default for (_State s : _State.values()) if (name.equals(s.name())) _state = s.getInstance(); }