diff 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
line wrap: on
line diff
--- a/pyink/domview_ui.py	Mon Apr 18 11:54:10 2011 +0800
+++ b/pyink/domview_ui.py	Sun Apr 24 12:30:47 2011 +0800
@@ -543,6 +543,26 @@
         self._dom.set_entry_action(state_name, entry_action)
         pass
 
+    def set_state_r(self, state_name, r):
+        self._dom.set_state_r(state_name, r)
+        pass
+
+    def set_state_xy(self, state_name, x, y):
+        self._dom.set_state_xy(state_name, x, y)
+        pass
+
+    def get_state_entry_action(self, state_name):
+        action = self._dom.get_state_entry_action(state_name)
+        return action
+
+    def get_state_r(self, state_name):
+        r = self._dom.get_state_r(state_name)
+        return r
+
+    def get_state_xy(self, state_name):
+        xy = self._dom.get_state_xy(state_name)
+        return xy
+
     def all_transitions(self, state_name):
         return self._dom.all_transitions(state_name)
 
@@ -564,6 +584,10 @@
     def set_transition_action(self, state_name, cond, action):
         self._dom.set_transition_action(state_name, cond, action)
         pass
+    
+    def set_transition_path(self, state_name, cond, path):
+        self._dom.set_transition_path(state_name, cond, path)
+        pass
     pass