Esempio n. 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
Esempio n. 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
Esempio n. 3
0
 def set_x_levels(self):
     self.__x_levels = HierarchyHelper.list_x_levels(y_levels=self.__y_levels, levels=self.__levels)
Esempio n. 4
0
 def set_levels(self, levels):
     self.__levels = HierarchyHelper.list_levels(levels_dict=levels)
Esempio n. 5
0
 def set_y_levels(self, levels):
     self.__y_levels = HierarchyHelper.list_y_levels(levels=levels)
Esempio n. 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)
Esempio n. 7
0
 def set_root_list(self, relationships):
     self.__root_list = HierarchyHelper.list_roots(
         relationships=relationships)