Constructor
new Global()
Constructs a Global. The constructor for this singleton should never be
invoked directly.
- Source:
Members
(static, constant) HIDDEN_EDGE_LENGTH
- Source:
(static, constant) HOST_DIALOG_ID
- Source:
(static, constant) HOST_LABEL_WIDTH
- Source:
(static, constant) HOST_SIZE
- Source:
(static, constant) MIN_HOST_WIDTH
- Source:
(static, constant) NODE_STROKE_COLOR
- Source:
(static, constant) NODE_STROKE_WIDTH
- Source:
(static, constant) SIDE_BAR_WIDTH
- Source:
Methods
drawAll()
Redraws the global.
- Source:
drawClusterIcons()
Draws arrow icons next to the base dropdown or next to execution labels in the Clusters tab.
- Source:
drawHiddenHost(container) → {d3.selection}
Draws a normal, rectangular hidden host
Parameters:
Name | Type | Description |
---|---|---|
container |
d3.selection | The selection to append the new element to |
- Source:
Returns:
The new selection containing the appended rectangle
- Type
- d3.selection
drawHiddenHostAsRhombus(container) → {d3.selection}
Draws a unique, diamond hidden host
Parameters:
Name | Type | Description |
---|---|---|
container |
d3.selection | The selection to append the new element to |
- Source:
Returns:
The new selection containing the appended polygon
- Type
- d3.selection
getController() → {Controller}
Gets the Controller
- Source:
Returns:
The controller
- Type
- Controller
getMaxViewHeight() → {Number}
This function returns the height of the view with the larger/taller visualModel
- Source:
Returns:
the max height between the two active views
- Type
- Number
getPairwiseView() → {Boolean}
Gets the pairwiseView boolean value
- Source:
Returns:
True if "Pairwise" was selected
- Type
- Boolean
getShowDiff() → {Boolean}
Gets the showDiff boolean value
- Source:
Returns:
True if "Show Differences" was selected
- Type
- Boolean
getViews() → {Array.<View>}
Gets the list of Views
- Source:
Returns:
The list of views
- Type
- Array.<View>
resize()
Resizes the graph
- Source:
setHostPermutation(hostPermutation)
Sets the host permutation
Parameters:
Name | Type | Description |
---|---|---|
hostPermutation |
HostPermutation |
- Source:
setPairwiseView(pairwiseView)
Sets the pairwiseView boolean value
Parameters:
Name | Type | Description |
---|---|---|
pairwiseView |
Boolean |
- Source:
setShowDiff(showDiff)
Sets the showDiff boolean value
Parameters:
Name | Type | Description |
---|---|---|
showDiff |
Boolean |
- Source:
setView(position, anchorHref)
Sets the view in the given position to the execution with the label specified by anchorHref
Parameters:
Name | Type | Description |
---|---|---|
position |
String | Either "L" or "R" to indicate the left or right view |
anchorHref |
String | The label of the execution to be set |
- Source:
swapViews()
Redraws the visualization with the two active views swapped
- Source: