Пример #1
0
 def set_coordinates(self, x_range, y_range):
     levels = self.get_levels()
     y_levels = self.get_y_levels()
     x_levels = self.get_x_levels()
     coordinates = HierarchyHelper.calc_y_coordinates(y_range=y_range, levels=levels, y_levels=y_levels)
     coordinates = HierarchyHelper.calc_x_coordinates(x_range=x_range, levels=levels, x_levels=x_levels,
                                                      coordinates=coordinates)
     self.__coordinates = coordinates
Пример #2
0
 def set_coordinates(self, x_range, y_range, force):
     coordinates = HierarchyHelper.calc_y_coordinates(
         y_range=y_range,
         levels=self.__levels,
         y_levels=self.__y_levels,
         force=force)
     coordinates = HierarchyHelper.calc_x_coordinates(
         x_range=x_range,
         levels=self.__levels,
         x_levels=self.__x_levels,
         coordinates=coordinates)
     self.__coordinates = coordinates
Пример #3
0
 def set_x_levels(self):
     self.__x_levels = HierarchyHelper.list_x_levels(y_levels=self.__y_levels, levels=self.__levels)
Пример #4
0
 def set_levels(self, levels):
     self.__levels = HierarchyHelper.list_levels(levels_dict=levels)
Пример #5
0
 def set_y_levels(self, levels):
     self.__y_levels = HierarchyHelper.list_y_levels(levels=levels)
Пример #6
0
 def set_y_levels(self, relationships, force):
     self.__y_levels = HierarchyHelper.get_y_levels(
         root_list=self.__root_list,
         relationships=relationships,
         force=force)
Пример #7
0
 def set_root_list(self, relationships):
     self.__root_list = HierarchyHelper.list_roots(
         relationships=relationships)