id
. When it is a hierarchy's id call it for example hierId
.
the TclArray called hier
is cononfusing me with the TclArray hierarchy
. I know they contain different stuff but again: the naming is extraordinary bad.
the TclArray hier
is overloaded: its information should be split into several arrays named by the third argument of the hier array.
the methods C_to_Tcllist() and ldelete() are not related to AllHierarchies.
private varialbes should be named starting with and underscore
Definition at line 29 of file allhierarchies.tcl.
Public Member Functions | |
AllHierarchies (TclList args) | |
getAllHierarchyIds () | |
init_data () | |
Private Member Functions | |
_init_data () | |
balanceNode (TclString id, TclString type_id) | |
C_to_Tcllist (List list) | |
center (TclString id, TclNumber level) | |
compute_fathers_and_sons (Hierarchy hierarchy, TclString type_id) | |
compute_graph (TclString id) | |
compute_hierarchy (Hierarchy hierarchy) | |
compute_positions (TclString id) | |
display_graph (TclString id, TclNumber level, TclList nodes_current_lvl, TclNumber x_start, TclNumber y_start, TclNumber counter) | |
drawHierarchy (TclString id) | |
drawSort (TclString id, TclString type_id) | |
importNode (TclString id, TclString type_id) | |
initial_x_pos (TclString id, TclNumber level) | |
initialize_depth (TclString id, TclString type_id) | |
is_hierarchy_a_tree (Hierarchy hierarchy, TclString type_id) | |
labelEnter (TclCommand w, TclNumber pointerx, TclNumber pointery) | |
labelLeave (TclCommand w) | |
ldelete (TclList list, TclString type_id) | |
leaves_right (TclString id, TclString String) | |
max_type_depth (TclString id, TclString type_id, TclNumber depth) | |
new_order (TclString id, TclString String) | |
number_of_fathers_and_sons (Hierarchy hierarchy, TclString type_id) | |
position_leaves (TclString id, TclNumber level) | |
position_leaves2 (TclString id, TclString type_id) | |
position_of_type (Hierarchy hierarchy, TclString type_id) | |
set_level_array (TclString id, TclString type_id) | |
stringlength (TclString id, TclString type_id) | |
xpixels_per_character (TclString id) | |
Private Attributes | |
TclString | canvas = "" |
TclNumber | current_x = 1 |
TclNumber | current_y = 1 |
TclArray | hier |
TclArray | hierarchies |
TclArray | levels |
TclNumber | max_y = 1 |
TclNumber | maxdepth = 0 |
TclNumber | maxlength = 0 |
TclNumber | recurse_necessary = 0 |
TclNumber | unit = 10 |
TclArray | widths |
|
constructor Definition at line 89 of file allhierarchies.tcl. |
|
get data from the cdg tool. Definition at line 133 of file allhierarchies.tcl. |
|
rearrange children of a node so that wide nodes alternate with narrow nodes. Definition at line 434 of file allhierarchies.tcl. |
|
Converts a C-list of types into a Tcl-list of type-ids and filters out 'bot'. Only this function and position_of_type work with C-data structures. Definition at line 291 of file allhierarchies.tcl. |
|
find sort's final x-coordinate. Definition at line 576 of file allhierarchies.tcl. |
|
find a types sons and fathers in the hierarchy. (uses the C-function listOfSons) Definition at line 330 of file allhierarchies.tcl. |
|
This function is used only for nontree-graphs. Definition at line 849 of file allhierarchies.tcl. |
|
gather all relevant data for displaying a hierarchy. Definition at line 186 of file allhierarchies.tcl. |
|
calls initial_x_pos and center. Definition at line 535 of file allhierarchies.tcl. |
|
display nontree-graphs. This function is used only for nontree-graphs Definition at line 944 of file allhierarchies.tcl. |
|
draw hierarchy on its associated canvas Definition at line 351 of file allhierarchies.tcl. |
|
draw one sort on the canvas. This method is only called when the hierarchy is a tree.
|
|
Return list of all hierarchies' names. Definition at line 1166 of file allhierarchies.tcl. |
|
fills global arrays with data from cdg. Definition at line 397 of file allhierarchies.tcl. |
|
call _init_data if necessary. Definition at line 120 of file allhierarchies.tcl. |
|
sort's initial position. Definition at line 556 of file allhierarchies.tcl. |
|
initialize the depth information. This method recurses over all types in a hierarchy and sets their depth information to zero. Definition at line 220 of file allhierarchies.tcl. |
|
compute tree property. This method computes whether a hierarchy is a tree. This function is traversing recursivly the complete hierarchy in the following way:
|
|
command bound to Enter-event. Definition at line 1146 of file allhierarchies.tcl. |
|
command bound to Leave-event. Definition at line 1156 of file allhierarchies.tcl. |
|
deletes a string from a list.
|
|
move leaves to the rightmost possible position. Leaves are positioned right beside their non-leaf-siblings Definition at line 645 of file allhierarchies.tcl. |
|
compute maximal distance between type and 'top'. This function finds a type's depth in trees, and the length of the longest path from top to the type for non-trees: Definition at line 235 of file allhierarchies.tcl. |
|
store the new order in 'levels(level)' Definition at line 664 of file allhierarchies.tcl. |
|
stores the number of successors and predecessors each type has Definition at line 275 of file allhierarchies.tcl. |
|
some nodes are still not correctly positioned. Definition at line 698 of file allhierarchies.tcl. |
|
position leaves between their siblings
|
|
This is the interface to functions.i
|
|
populate the array levels. Definition at line 413 of file allhierarchies.tcl. |
|
stores types stringlength. Definition at line 201 of file allhierarchies.tcl. |
|
How many pixels are to be used for a character ? Definition at line 1131 of file allhierarchies.tcl. |