Beispiel #1
0
 void initUiState() {
   _ar.set(0, 0, _sw, _sh);
   _rar.set(_ar);
   _zov = 1.0f;
   setState(this, _State.PEN.getInstance());
   moveActiveRegionTo(this, 0, 0);
 }
Beispiel #2
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();
 }
Beispiel #3
0
 WBStateI penState() {
   return _State.PEN.getInstance();
 }
Beispiel #4
0
 void state(String name) {
   _state = _State.PEN.getInstance(); // default
   for (_State s : _State.values()) if (name.equals(s.name())) _state = s.getInstance();
 }