Function Index
$#! · 0-9 · A · B · C · D · E · F · G · H · I · J · K · L · M · N · O · P · Q · R · S · T · U · V · W · X · Y · Z
I
 init, Tree.Label
 initialize, Config
 initializeBehavior, Config
 interpolate, Polar
L
 layoutLast, TM.Area
 layoutRow
 leaf, Config
 leafBox, Config
 loadFromJSON
 loadGraph
 loadGraphFromJSON
 loadSubtrees, TreeUtil
 loadTree
 loadTreeFromJSON
M
 makeRect, Canvas
 moebiusTransformation
 morph, GraphOp
 move, ST
N
 nextPosition, Tree.Geometry
 Node
 norm, Complex
O
 onClick
 out, Config
P
 path, Canvas
 plot
 plotEdge, Tree.Plot
 plotLabel, GraphPlot
 plotLine, GraphPlot
 plotNode
 plotNodeSquared, Tree.Plot
 plotOn, Tree.Label
 plotTree, Tree.Plot
 Polar, Polar
 processChildrenLayout
 prod, Complex
 prune, TreeUtil
R
 refresh
 removeAdjacence, Graph
 removeAdjacency, Graph.Node
 removeClass, Tree.Label
 removeEdge, GraphOp
 removeNode
 removeSubtree
 reposition, Hypertree
 requestNodes
 resetPath, Config
 resize, Canvas
 RGraph, RGraph
init: function(node)
Creates a label with the same id of the specified node and sets some initial properties.
initialize: function(controller)
TM.Squarified and TM.SliceAndDice constructor.
initializeBehavior: function ()
Binds different methods to dom elements like tips, color changing, adding or removing class names on mouseenter and mouseleave, etc.
interpolate: function(elem,
delta)
Calculates a polar interpolation between two points at a given delta moment.
layoutLast: function(ch,
w,
coord)
Performs the layout of the last computed sibling.
layoutRow: 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.
leaf: function(tree)
Returns a boolean value specifying if the node is a tree leaf or not.
leafBox: function(json,
coord)
Creates the leaf div dom element that usually contains nothing else.
loadFromJSON: function(json)
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.
loadGraph: 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
loadGraphFromJSON: function(json,
i)
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
loadSubtrees: function(tree,
controller)
Appends subtrees to leaves by requesting new subtrees.
loadTree: function(id)
Loads the subtree specified by id and plots it on the layout container.
loadTree: function(json)
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
loadTreeFromJSON: 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
makeRect: function(pos,
mode)
Draws a rectangle in canvas.
moebiusTransformation: function(c)
Calculates a moebius transformation for this point / complex.
moebiusTransformation: function(graph,
pos,
prop,
startPos,
flags)
Calculates a moebius transformation for the hyperbolic tree.
morph: function(viz,
json,
opt)
This method will morph the current visualized graph into the new json representation passed in the method.
move: function(node,
onComplete)
Performs the animation of the translation of the tree.
nextPosition: function(firstPos,
offsetHeight)
Calculates a siblings node position given a node position.
Graph.Node = function(id,
name,
data)
Node constructor.
Tree.Node = function (json,
_parent)
Tree.Node constructor.
norm: function ()
Calculates the complex norm.
onClick: function(id)
Performs all calculations and animation when clicking on a label specified by id.
onClick: function(id)
Performs all calculations and animation when clicking on a label specified by id.
onClick: function (id,
onComplete)
This method is called when clicking on a tree node.
out: function()
Takes the parent node of the currently shown subtree and performs the layout.
path: function(type,
action)
Performs a beginPath executes action doing then a type (‘fill’ or ‘stroke’) and closing the path with closePath.
plot: function(json)
Plots a Treemap
plot: function(viz,
opt)
Plots a Graph.
plot: function()
Plots the Hypertree
plot: function()
Plots the RGraph
plot: function()
This method plots the tree.
plot: function(viz,
opt,
scale)
Plots the spacetree
plotEdge: function(begin,
end,
canvas,
selected)
Plots an Edge.
plotLabel: function(canvas,
node,
controller)
Plots a label for a given node.
plotLine: function(adj,
canvas)
Plots a hyperline between two nodes.
plotNode: function(node,
canvas)
Plots a graph node.
plotNode: function(node,
canvas)
Plots a tree node.
plotNodeSquared: function(node,
canvas)
Plots a square node.
plotOn: function (node,
canvas)
Plots the label (if this fits in canvas).
plotTree: function(viz,
plotLabel,
opt)
Plots nodes and edges of the tree.
var Polar = function(theta,
rho)
Polar constructor.
processChildrenLayout: function(par,
ch,
coord)
Computes children real areas and other useful parameters for performing the Squarified algorithm.
processChildrenLayout: function(par,
ch,
coord)
Computes children real areas and other useful parameters for performing the Squarified algorithm.
prod: function(pos)
Returns the result of multiplying two complex numbers.
prune: function(tree,
maxLevel)
Clears all tree nodes having depth greater than maxLevel.
refresh: function(reposition)
Computes positions and then plots.
refresh: function()
Computes positions and then plots.
removeAdjacence: function(id1,
id2)
Removes a Graph.Adjacence from Graph that matches the specified id1 and id2.
removeAdjacency: function(id)
Deletes the Graph.Adjacence by id.
removeClass: function(node,
cssClass)
Removes a specified class from the label.
removeEdge: function(viz,
vertex,
opt)
Removes one or more edges from the visualization.
removeNode: function(id)
Removes a Graph.Node from Graph that matches the specified id.
removeNode: function(viz,
node,
opt)
Removes one or more nodes from the visualization.
removeSubtree: function(id,
removeRoot,
method,
onComplete)
Removes a subtree, performing optionally an animation.
removeSubtree: function(tree,
id,
removeRoot)
Deletes a subtree completely.
reposition: function()
Computes new positions and repositions the tree where it was before.
requestNodes: function(node,
onComplete)
If the controller has a request method, it asynchonously requests subtrees for the leaves of the tree.
requestNodes: function(nodes,
controller)
Calls the request method on the controller to request a subtree for each node.
resetPath: function(tree)
Removes the .in-path className for all tree dom elements and then adds this className to all ancestors of the given subtree.
resize: function(width,
height)
Resizes the canvas.
var RGraph = function(canvas,
controller)
Creates a new RGraph instance.
Close