Exemplo n.º 1
0
Arquivo: arrow.py Projeto: 251/shaape
 def __init__(self, position = (0, 0), node_list = []):
     Polygon.__init__(self, node_list)
     Translatable.__init__(self, position)
     Named.__init__(self)
     self.__connected_objects = []
     self.__pointed_objects = []
     self.add_name('_arrow_')
Exemplo n.º 2
0
 def __init__(self, position=(0, 0), node_list=[]):
     Polygon.__init__(self, node_list)
     Translatable.__init__(self, position)
     Named.__init__(self)
     self.__connected_objects = []
     self.__pointed_objects = []
     self.add_name('_arrow_')
Exemplo n.º 3
0
 def __init__(self, graph = nx.Graph()):
     Drawable.__init__(self)
     Named.__init__(self)
     self.style().set_target_type('fill')
     self.add_name('_line_')
     self.__graph = graph
     self.__generate_paths()
     return
Exemplo n.º 4
0
Arquivo: text.py Projeto: 251/shaape
 def __init__(self, text = "", position = (0, 0)):
     Drawable.__init__(self)
     Translatable.__init__(self, position)
     Named.__init__(self)
     self.__text = text
     self.__font_size = 1
     self.__scaled_direction = Vector(1, 0)
     return
Exemplo n.º 5
0
 def __init__(self, graph=nx.Graph(), options=[]):
     Drawable.__init__(self, options)
     Named.__init__(self)
     self.style().set_target_type("fill")
     self.add_name("_line_")
     self.__graph = graph
     self.__generate_paths()
     return
Exemplo n.º 6
0
 def __init__(self, text="", position=(0, 0)):
     Drawable.__init__(self)
     Translatable.__init__(self, position)
     Named.__init__(self)
     self.__text = text
     self.__font_size = 1
     self.__scaled_direction = Vector(1, 0)
     return
Exemplo n.º 7
0
 def __init__(self, graph=nx.Graph(), options=[]):
     Drawable.__init__(self, options)
     Named.__init__(self)
     self.style().set_target_type('fill')
     self.add_name('_line_')
     self.__graph = graph
     self.__generate_paths()
     return
Exemplo n.º 8
0
 def __init__(self, node_list):
     Drawable.__init__(self)
     Named.__init__(self)
     self.__node_list = node_list
     cycle_graph = nx.Graph()
     if node_list:
         for n in range(1, len(node_list)):
             cycle_graph.add_edge(node_list[n - 1], node_list[n])
     self.style().set_target_type("fill")
     self.__frame = OpenGraph(cycle_graph)
     self.__frame.style().set_target_type("frame")
     return
Exemplo n.º 9
0
 def __init__(self, node_list, options=[]):
     Drawable.__init__(self, options)
     Named.__init__(self)
     self.__node_list = node_list
     cycle_graph = nx.Graph()
     if node_list:
         for n in range(1, len(node_list)):
             cycle_graph.add_edge(node_list[n - 1], node_list[n])
     self.style().set_target_type('fill')
     self.__frame = OpenGraph(cycle_graph, options)
     self.__frame.style().set_target_type('frame')
     return
Exemplo n.º 10
0
 def __init__(self, position = (0, 0), node_list = []):
     Polygon.__init__(self, node_list)
     Translatable.__init__(self, position)
     Named.__init__(self)
     self.add_name('_arrow_')