Class: VisualizationPanel

VisualizationPanel(extensionUri)

Class representing a panel (tab) with visualization

Constructor

new VisualizationPanel(extensionUri)

Initialize panel class.
Parameters:
Name Type Description
extensionUri Extension URI.
Source:

Members

_disposables

List of disposables, which should be disposed when the panel is disposed.
Source:

viewType

Identifies the type of the WebView panel.
Source:

Methods

_getHtmlForWebview(webview)

Create HTML content of the WebView.
Parameters:
Name Type Description
webview WebView instance.
Source:
Returns:
HTML content.

callExportSVG()

Send message to the visualization.js file that the SVG should be exported.
Source:

createOrShow(extensionUri)

Creates and show a panel or just show if already exists.
Parameters:
Name Type Description
extensionUri Extension URI.
Source:
Returns:
void

dispose()

Close the panel and clear resources.
Source:

initMessageReciever(panel)

Initialize actions for different messages.
Parameters:
Name Type Description
panel WebView panel.
Source:

removeNode(id)

Send message to the visualization.js file that the node with given ID should be removed.
Parameters:
Name Type Description
id ID of the node which should be removed.
Source:

returnNode(name)

Send message to the visualization.js file that the node with given ID should be returned to visualization.
Parameters:
Name Type Description
name Name of the node which should be returned to visualization.
Source:

selectNodeFromList(name)

Send message to the visualization.js file that the node from the TreeView should be selected.
Parameters:
Name Type Description
name Name of the node which should be selected.
Source:

updateData(graphString, mode, distance, iterations, strength)

Update visualization data of the panel.
Parameters:
Name Type Description
graphString JSON string with graph data.
mode Mode of analysis.
distance Distance between the nodes (for the force directed algorithm).
iterations Number of iterations (for the force directed algorithm).
strength Strength of the force between nodes (for the force directed algorithm).
Source: