Mercurial > MadButterfly
comparison pyink/domview_ui.py @ 1469:c1e70540541c
Drawing functions for states and transitions
author | Thinker K.F. Li <thinker@codemud.net> |
---|---|
date | Sun, 24 Apr 2011 12:30:47 +0800 |
parents | 1829b0cc9721 |
children | 4a57650bb926 |
comparison
equal
deleted
inserted
replaced
1468:c586981ecf1a | 1469:c1e70540541c |
---|---|
541 | 541 |
542 def set_state_entry_action(self, state_name, entry_action): | 542 def set_state_entry_action(self, state_name, entry_action): |
543 self._dom.set_entry_action(state_name, entry_action) | 543 self._dom.set_entry_action(state_name, entry_action) |
544 pass | 544 pass |
545 | 545 |
546 def set_state_r(self, state_name, r): | |
547 self._dom.set_state_r(state_name, r) | |
548 pass | |
549 | |
550 def set_state_xy(self, state_name, x, y): | |
551 self._dom.set_state_xy(state_name, x, y) | |
552 pass | |
553 | |
554 def get_state_entry_action(self, state_name): | |
555 action = self._dom.get_state_entry_action(state_name) | |
556 return action | |
557 | |
558 def get_state_r(self, state_name): | |
559 r = self._dom.get_state_r(state_name) | |
560 return r | |
561 | |
562 def get_state_xy(self, state_name): | |
563 xy = self._dom.get_state_xy(state_name) | |
564 return xy | |
565 | |
546 def all_transitions(self, state_name): | 566 def all_transitions(self, state_name): |
547 return self._dom.all_transitions(state_name) | 567 return self._dom.all_transitions(state_name) |
548 | 568 |
549 def add_transition(self, state_name, cond, target): | 569 def add_transition(self, state_name, cond, target): |
550 self._dom.add_transition(state_name, cond, target) | 570 self._dom.add_transition(state_name, cond, target) |
561 def get_transition(self, state_name, cond): | 581 def get_transition(self, state_name, cond): |
562 return self._dom.get_transition(state_name, cond) | 582 return self._dom.get_transition(state_name, cond) |
563 | 583 |
564 def set_transition_action(self, state_name, cond, action): | 584 def set_transition_action(self, state_name, cond, action): |
565 self._dom.set_transition_action(state_name, cond, action) | 585 self._dom.set_transition_action(state_name, cond, action) |
586 pass | |
587 | |
588 def set_transition_path(self, state_name, cond, path): | |
589 self._dom.set_transition_path(state_name, cond, path) | |
566 pass | 590 pass |
567 pass | 591 pass |
568 | 592 |
569 | 593 |
570 ## \brief Bridge of DOM-tree to syncrhonize data-model and UI. | 594 ## \brief Bridge of DOM-tree to syncrhonize data-model and UI. |