Class: OverView

OverView()

used to handle everything related to the overview handles Sigma instances and their interplay

Constructor

new OverView()

creates a new over view with given settings
Source:

Methods

addNode(groupedNode)

Adds a groupedNode to the canvas, which consists of nodes and edges that are aggregated in a single node. Edges are not considered when then node is initially added.
Parameters:
Name Type Description
groupedNode The node that is added. Precondition: id, markingColor, nodes and edges must be set.
Source:

calculateNodePosition(node)

calculates a simple node positions for the sigma nodes the node is not yet pushed to graph.nodes() or the mapping array
Parameters:
Name Type Description
node The node the positioning is set for
Source:
Returns:
the node with calculated .x and .y

getNodeId(idx)

Returns the node id behind the mapping index
Parameters:
Name Type Description
idx the filter index (mapping index)
Source:

getNodePosition(idx)

Returns the node id behind the mapping index
Parameters:
Name Type Description
idx the filter index (mapping index)
Source:

initHistAttrSwitcher(edge)

inits overview box toggle enables users to switch between histogram attributes
Parameters:
Name Type Description
edge edge used to check available attributes
Source:

initSigma(container_id, panel_id, use_web_gl)

create new sigma instance at startup do not show edges do prevent cluttering
Parameters:
Name Type Description
container_id id of div where detail graph should be displayed
panel_id id of the bootstrap panel wrapping the container
use_web_gl if true, webgl is used for rendering (keep in mind that less functionality is supported)
Source:

prepareJsonData(key, data)

Extracts relevant data of a json-array with the same attributes in each array-element
Parameters:
Name Type Description
key The key of the data, that is extracted (e.g. LONGITUDE, LATITUDE, ...)
data The input data
Source:
Returns:
the extracted data

removeNode(idx)

Removes a node from the canvas.
Parameters:
Name Type Description
idx the idx of the detailView filter
Source:

setCameraToCenter()

positions sigma camera to the center of our scale and removes scaling
Source:

switchFilterIdx(filterIdx, newIdx)

switches the filter idx, that are used to map to the node ids and their positions
Parameters:
Name Type Description
filterIdx the old filterIdx
newIdx the new filterIdx
Source:

toggleEdgeLabels(flag)

Toggles the edge labels
Parameters:
Name Type Description
flag indicates if edge labels shall be drawn.
Source:

updateEdges(newNode)

Updates and draws edges to the canvas
Parameters:
Name Type Description
newNode the node whichs edges are to be drawn.
Source:

updateNodeEdges(idx, the, the)

Updates the inner edges and nodes of an overview node.
Parameters:
Name Type Description
idx the idx of the detailView-filter
the inner nodes
the outer nodes
Source: