Module: GUI

Handles all GUI functionality.
Source:

Methods

(inner) addLabelToGUI(toBeAddedTo, labelName, labelAlias)

adds a text label as a child to the specified GUI element
Parameters:
Name Type Description
toBeAddedTo dat.GUI the gui object the label is added to
labelName string the name of the gui variable representing this label
labelAlias string the name of the label which should be displayed
Source:

(inner) attributeNameToLabelName(attributeName) → {string}

converts a property name of a json object (e.g. stringControl or string_control) to a label (i.e. String Control)
Parameters:
Name Type Description
attributeName string a valid name for a json property
Source:
Returns:
the label name as a text with whitespaces
Type
string

(inner) computeSharedEdgeAttributes(edge) → {Array.<string>}

computes all shared values between the two endnodes of the edge regarding the active edge set
Parameters:
Name Type Description
edge edge to be considered
Source:
Returns:
the common attributes on the edge
Type
Array.<string>

(inner) deleteSearchResults()

removes all previously found search results from the GUI
Source:

(inner) getSelectedEdgeSet() → {string}

returns the attribute name of the currently active edge set
Source:
Returns:
the name of the selected edge set
Type
string

(inner) guiUpdateSearchResults()

updates the GUI with the found node titles based on the current search term matching titles are all which contain the search term not regarding case sensitivity all previously found titles are removed first
Source:

(inner) guiUpdateSelectedEdge(edge)

updates the GUI control parameters of the selected edge
Parameters:
Name Type Description
edge edge whose attributes should be shown
Source:

(inner) guiUpdateSelectedNode(node)

updates the GUI node data attributes with the values of the corresponding node
Parameters:
Name Type Description
node node the node whose attributes are shown in the GUI
Source:

(inner) hideLoadingLabel()

prevent the loading label from being rendered
Source:

(inner) initClusterSettingsControls()

creates the GUI controls for the clustering settings
Source:

(inner) initDisplaySettingsControls()

creates the GUI controls for the display settings
Source:

(inner) initGUI()

initializes the entire GUI
Source:

(inner) initGUIControllerAttributes()

initializes all variables controlled by the GUI
Source:

(inner) initGUIControls()

initializes all GUI controls, buttons, labels, etc.
Source:

(inner) initGUINodeAttributes()

automatically detect the attributes of the visualized nodes (numerical ones and strings)
Source:

(inner) initNodeSearchControls()

initializes the node search control
Source:

(inner) initSelectedEdgeControls()

initializes all edge controls
Source:

(inner) initSelectedNodeControls()

initializes the node attributes display
Source:

(inner) resetSelectedEdge()

resets the GUI controls of the selected edge to empty values
Source:

(inner) resetSelectedNode()

updates the GUI node data attributes to empty values
Source:

(inner) showDetailLODControls()

switches to the GUI controls of the detailLOD view
Source:

(inner) showLoadingLabel()

render the loading label
Source:

(inner) showLowDetailLODControls()

switches to the GUI controls of the lowDetailLOD view
Source:

(inner) sortNodesInSupernodes()

sorts the nodes stored in each of the currently active supernodes based on the active node sorting attribute
Source:

(inner) update()

updates the GUI when an obvserved value has changed
Source:

(inner) updateGUIEdgeWeightLimits(min, max, updateValues)

updates the limits which can be set for the weight sliders
Parameters:
Name Type Description
min int new min value that can be set by the slider
max int new max value that can be set by the slider
updateValues boolean if true then the current values for the sliders are updated to the new limits
Source: