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. | |
Graph.Node | |
GraphOp | |
GraphPlot | |
GraphUtil | |
H | |
hasClass, Tree. | |
hasNode, Graph | |
headBox, Config | |
height, Config | |
hide | |
hideLabel, GraphPlot | |
hideLabels | |
Hypertree | |
Hypertree.js | |
I | |
id, Graph.Node | |
init, Tree. | |
initialize, Config | |
initializeBehavior, Config | |
interpolate, Polar | |
interpolation, Config | |
L | |
Label, Config | |
labelContainer | |
labels, GraphPlot | |
labelsHidden, GraphPlot | |
layoutLast, TM.Area | |
layoutRow | |
leaf, Config | |
leafBox, Config | |
levelDistance, Config | |
levelsToShow, Config | |
loadFromJSON | |
loadGraph | |
loadGraphFromJSON | |
loadSubtrees, TreeUtil | |
loadTree | |
loadTreeFromJSON |
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 )
Creates a label with the same id of the specified node and sets some initial properties.
init: function( node )
TM.Squarified and TM.SliceAndDice constructor.
initialize: function( controller )
Binds different methods to dom elements like tips, color changing, adding or removing class names on mouseenter and mouseleave, etc.
initializeBehavior: function ()
Calculates a polar interpolation between two points at a given delta moment.
interpolate: function( elem, delta )
Performs the layout of the last computed sibling.
layoutLast: function( ch, w, coord )
Performs the layout of an array of nodes.
layoutRow: function( ch, w, coord )
Performs the layout of an array of nodes.
layoutRow: function( ch, w, coord )
Returns a boolean value specifying if the node is a tree leaf or not.
leaf: function( tree )
Creates the leaf div dom element that usually contains nothing else.
leafBox: function( json, coord )
Loads a json object into the ST.
loadFromJSON: function( json )
Loads the specified JSON tree and lays it on the main container.
loadFromJSON: function ( json )
Loads the specified JSON tree and lays it on the main container.
loadFromJSON: function ( json )
Loads a Graph from a json graph object http://blog.thejit.org
loadGraph: function( json )
Loads a Graph from a json graph object http://blog.thejit.org
loadGraph: function( json )
Loads a Hypertree from a json object http://blog.thejit.org
loadGraphFromJSON: function( json, i )
Loads a RGraph from a json object http://blog.thejit.org
loadGraphFromJSON: function( json, i )
Appends subtrees to leaves by requesting new subtrees.
loadSubtrees: function( tree, controller )
Loads the subtree specified by id and plots it on the layout container.
loadTree: function( id )
Loads a Graph from a json tree object http://blog.thejit.org
loadTree: function( json )
Loads a Graph from a json tree object http://blog.thejit.org
loadTree: function( json )
Loads a Hypertree from a json object http://blog.thejit.org/?p=7
loadTreeFromJSON: function( json )
Loads a RGraph from a json object http://blog.thejit.org
loadTreeFromJSON: function( json )