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
G
 getAdjacence, Graph
 getAdjacency, Graph.Node
 getBaseSize, Tree.Geometry
 getBoundingBox, Tree.Geometry
 getChildren, Tree.Children
 getClosestNodeToOrigin, GraphUtil
 getCtx, Canvas
 getEdge, Tree.Geometry
 getElement, Canvas
 getFirstPos, Tree.Geometry
 getLabel, GraphPlot
 getLabelContainer, GraphPlot
 getLeaves
 getLength, Tree.Children
 getLevel, Tree.Util
 getNode
 getNodeAndParentAngle, RGraph
 getNodesWithChildren, Tree.Group
 getOffsetSize, Tree.Geometry
 getParent, TreeUtil
 getParents, GraphUtil
 getRightLevelToShow, Tree.Geometry
 getRoot
 getScaledTreePosition, Tree.Geometry
 getSize
 getSubnodes, GraphUtil
 getSubtree
 getTreeBaseSize, Tree.Geometry
 Graph
 Graph.Adjacence
 Graph.Node
 GraphOp
 GraphPlot
 GraphUtil
H
 hasClass, Tree.Label
 hasNode, Graph
 headBox, Config
 height, Config
 hide
 hideLabel, GraphPlot
 hideLabels
 Hypertree
 Hypertree.js
I
 id, Graph.Node
 init, Tree.Label
 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
getAdjacence: function (id,
id2)
Returns an array of Graph.Adjacence that connects nodes with id id and id2.
getAdjacency: function(id)
Returns a Graph.Adjacence that connects the current Graph.Node with the node having id as id.
getBaseSize: function(tree,
contracted,
type)
Calculates a subtree base size.
getBoundingBox: function (tree)
Calculates a tree bounding box.
getChildren: function(tree,
property)
Returns a filtered array of children for the current node.
getClosestNodeToOrigin: function(graph,
prop,
flags)
Returns the closest node to the center of canvas.
getCtx: function()
Main canvas context.
getEdge: function(pos,
type)
Returns a Complex instance with the begin or end position of the edge to be plotted.
getElement: function()
DOM canvas wrapper generated.
getFirstPos: function(initialPos,
baseHeight)
Calculates the first children position given a node position.
getLabel: function(id)
Lazy fetcher for the label DOM element.
getLabelContainer: function()
Lazy fetcher for the label container.
getLeaves: function(tree)
Returns an array of the tree leaves.
getLeaves: function (node,
maxLevel)
Returns the leaves of the tree.
getLength: function(tree,
property)
Returns the length of a filtered children array.
getLevel: function(tree)
Returns the current level of the tree node.
getNode: function(id)
Returns a Graph.Node from a specified id.
getNode: function(graph,
id)
Returns a graph node with a specified id.
getNodeAndParentAngle: function(id)
Returns the parent of the given node, also calculating its angle span.
getNodesWithChildren: function(nodes)
Filters an array of nodes leaving only nodes with children.
getOffsetSize: function()
Returns label offsetHeight or offsetWidth, depending on the tree current orientation.
getParent: function(tree,
id)
Returns the parent node of the node having id.
getParents: function(graph,
node)
Returns all nodes having a depth that is less than the node’s depth property.
getRightLevelToShow: function(tree,
canvas)
Returns the right level to show for the current tree in order to fit in canvas.
getRoot: function()
Returns the node flagged as root.
getRoot: function()
Returns the node flagged as root.
getRoot: function(tree)
Returns the tree root node.
getScaledTreePosition: function(tree,
scale)
Adjusts the tree position due to canvas scaling or translation.
getSize: function()
Returns canvas dimensions.
getSize: function(invert)
Returns label height or with, depending on the tree current orientation.
getSubnodes: function(graph,
id,
level,
flags)
Collects all subnodes for a specified node.
getSubtree: function(tree,
id)
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.
getTreeBaseSize: function(tree,
type,
level)
Calculates a subtree base size.
A generic Graph class.
var Graph= function()
Creates a new Graph instance.
Creates a new Graph adjacence.
Behaviour of the Graph node.
An object holding unary and binary graph operations such as removingNodes, removingEdges, adding two graphs and morphing.
An object that performs specific radial layouts for a generic graph structure.
A multi purpose object to do graph traversal and processing.
hasClass: function(node,
cssClass)
Returns true if the specified class name is found in the label.
hasNode: function(id)
Returns a Boolean instance indicating if node belongs to graph or not.
headBox: function(json,
coord)
Creates the head div dom element that usually contains the name of a parent JSON tree node.
Label height (offset included)
hide: function(nodes,
canvas,
controller)
Collapses group of nodes.
hide: function(node)
Hides the label by adding a “hidden” className to it.
hideLabel: function(node)
Hides a label having node.id as id.
hideLabels: function (hide)
Hides all labels.
hideLabels: function(subtree,
hide)
Hides all labels of the tree.
An animated Graph with radial layout.
var Hypertree = function(canvas,
controller)
Creates a new Hypertree instance.
Author: Nicolas Garcia Belmonte
A node’s id
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.
Configuration object to customize labels size and offset.
id for label container
Label DOM element
Label DOM elements hash.
A flag value indicating if node labels are being displayed or not.
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.
The actual distance between levels
Depth of the plotted tree.
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
Close