E | |
each | |
eachAdjacency, GraphUtil | |
eachBFS, GraphUtil | |
eachLevel | |
eachNode, GraphUtil | |
eachSubnode, GraphUtil | |
enter, Config | |
equals | |
expand, ST | |
F | |
filter, GraphUtil | |
fitsInCanvas | |
flagRoot | |
G | |
getAdjacence, Graph | |
getAdjacency, Graph.Node | |
getBaseSize, Tree. | |
getBoundingBox, Tree. | |
getChildren, Tree. | |
getClosestNodeToOrigin, GraphUtil | |
getCtx, Canvas | |
getEdge, Tree. | |
getElement, Canvas | |
getFirstPos, Tree. | |
getLabel, GraphPlot | |
getLabelContainer, GraphPlot | |
getLeaves | |
getLength, Tree. | |
getLevel, Tree.Util | |
getNode | |
getNodeAndParentAngle, RGraph | |
getNodesWithChildren, Tree. | |
getOffsetSize, Tree. | |
getParent, TreeUtil | |
getParents, GraphUtil | |
getRightLevelToShow, Tree. | |
getRoot | |
getScaledTreePosition, Tree. | |
getSize | |
getSubnodes, GraphUtil | |
getSubtree | |
getTreeBaseSize, Tree. | |
Graph, Graph | |
H | |
hasClass, Tree. | |
hasNode, Graph | |
headBox, Config | |
hide | |
hideLabel, GraphPlot | |
hideLabels | |
Hypertree, Hypertree |
Iterates over a nodes children performing an action.
each: function( tree, action )
Iterates over tree nodes performing an action.
each: function( tree, action )
A tree iterator.
each: function( tree, action )
Iterates over a node adjacencies applying the action function.
eachAdjacency: function( node, action, flags )
Performs a BFS traversal of a graph beginning by the node of id id and performing action on each node.
eachBFS: function( graph, id, action, flags )
Iterates over tree nodes to a certain tree level performing an action.
eachLevel: function( tree, levelBegin, levelEnd, action )
Iterates on tree nodes which relative depth is less or equal than a specified level.
eachLevel: function( tree, initLevel, toLevel, action )
Iterates over graph nodes performing an action.
eachNode: function( graph, action, flags )
After a BFS traversal the depth property of each node has been modified.
eachSubnode: function( graph, node, action, flags )
Sets the elem parameter as root and performs the layout.
enter: function( elem )
Comparison method.
equals: function( c )
Comparison method.
equals: function( c )
Determines which nodes to expand (and expands their subtrees).
expand: function ( node, onComplete )
For internal use only.
filter: function( param )
Returns true or false if the label for the node is contained on the canvas dom element or not.
fitsInCanvas: function( pos, canvas )
Returns true or false if the current position is between canvas limits or not.
fitsInCanvas: function( pos, canvas )
Flags a node specified by id as root.
flagRoot: function( id )
Flags a node specified by id as root.
flagRoot: function( id )
Returns an array of Graph.Adjacence that connects nodes with id id and id2.
getAdjacence: function ( id, id2 )
Returns a Graph.Adjacence that connects the current Graph.Node with the node having id as id.
getAdjacency: function( id )
Calculates a subtree base size.
getBaseSize: function( tree, contracted, type )
Calculates a tree bounding box.
getBoundingBox: function ( tree )
Returns a filtered array of children for the current node.
getChildren: function( tree, property )
Returns the closest node to the center of canvas.
getClosestNodeToOrigin: function( graph, prop, flags )
Main canvas context.
getCtx: function()
Returns a Complex instance with the begin or end position of the edge to be plotted.
getEdge: function( pos, type )
DOM canvas wrapper generated.
getElement: function()
Calculates the first children position given a node position.
getFirstPos: function( initialPos, baseHeight )
Lazy fetcher for the label DOM element.
getLabel: function( id )
Lazy fetcher for the label container.
getLabelContainer: function()
Returns an array of the tree leaves.
getLeaves: function( tree )
Returns the leaves of the tree.
getLeaves: function ( node, maxLevel )
Returns the length of a filtered children array.
getLength: function( tree, property )
Returns the current level of the tree node.
getLevel: function( tree )
Returns a Graph.Node from a specified id.
getNode: function( id )
Returns a graph node with a specified id.
getNode: function( graph, id )
Returns the parent of the given node, also calculating its angle span.
getNodeAndParentAngle: function( id )
Filters an array of nodes leaving only nodes with children.
getNodesWithChildren: function( nodes )
Returns label offsetHeight or offsetWidth, depending on the tree current orientation.
getOffsetSize: function()
Returns the parent node of the node having id.
getParent: function( tree, id )
Returns all nodes having a depth that is less than the node’s depth property.
getParents: function( graph, node )
Returns the right level to show for the current tree in order to fit in canvas.
getRightLevelToShow: function( tree, canvas )
Returns the node flagged as root.
getRoot: function()
Returns the node flagged as root.
getRoot: function()
Returns the tree root node.
getRoot: function( tree )
Adjusts the tree position due to canvas scaling or translation.
getScaledTreePosition: function( tree, scale )
Returns canvas dimensions.
getSize: function()
Returns label height or with, depending on the tree current orientation.
getSize: function( invert )
Collects all subnodes for a specified node.
getSubnodes: function( graph, id, level, flags )
Returns the subtree of the node with specified id or null if it doesn’t find it.
getSubtree: function( tree, id )
Returns the subtree that matches the given id.
getSubtree: function( tree, id )
Calculates a subtree base size.
getTreeBaseSize: function( tree, type, level )
Creates a new Graph instance.
var Graph= function()
Returns true if the specified class name is found in the label.
hasClass: function( node, cssClass )
Returns a Boolean instance indicating if node belongs to graph or not.
hasNode: function( id )
Creates the head div dom element that usually contains the name of a parent JSON tree node.
headBox: function( json, coord )
Collapses group of nodes.
hide: function( nodes, canvas, controller )
Hides the label by adding a “hidden” className to it.
hide: function( node )
Hides a label having node.id as id.
hideLabel: function( node )
Hides all labels.
hideLabels: function ( hide )
Hides all labels of the tree.
hideLabels: function( subtree, hide )
Creates a new Hypertree instance.
var Hypertree = function( canvas, controller )