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 |
(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 |
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 |
Returns:
the common attributes on the edge
- Type
- Array.<string>
(inner) deleteSearchResults()
removes all previously found search results from the GUI
(inner) getSelectedEdgeSet() → {string}
returns the attribute name of the currently active edge set
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
(inner) guiUpdateSelectedEdge(edge)
updates the GUI control parameters of the selected edge
Parameters:
Name | Type | Description |
---|---|---|
edge |
edge | whose attributes should be shown |
(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 |
(inner) hideLoadingLabel()
prevent the loading label from being rendered
(inner) initClusterSettingsControls()
creates the GUI controls for the clustering settings
(inner) initDisplaySettingsControls()
creates the GUI controls for the display settings
(inner) initGUI()
initializes the entire GUI
(inner) initGUIControllerAttributes()
initializes all variables controlled by the GUI
(inner) initGUIControls()
initializes all GUI controls, buttons, labels, etc.
(inner) initGUINodeAttributes()
automatically detect the attributes of the visualized nodes (numerical ones and strings)
(inner) initNodeSearchControls()
initializes the node search control
(inner) initSelectedEdgeControls()
initializes all edge controls
(inner) initSelectedNodeControls()
initializes the node attributes display
(inner) resetSelectedEdge()
resets the GUI controls of the selected edge to empty values
(inner) resetSelectedNode()
updates the GUI node data attributes to empty values
(inner) showDetailLODControls()
switches to the GUI controls of the detailLOD view
(inner) showLoadingLabel()
render the loading label
(inner) showLowDetailLODControls()
switches to the GUI controls of the lowDetailLOD view
(inner) sortNodesInSupernodes()
sorts the nodes stored in each of the currently active supernodes based on the active node sorting attribute
(inner) update()
updates the GUI when an obvserved value has changed
(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 |