Sidebar
This class manages the container for sidebar-content subclasses, and is responsible for managing those subclasses as well.
Constructor Summary
Public Constructor | ||
public |
constructor(ui: UI) Constructs a Sidebar object. |
Member Summary
Public Members | ||
public |
content: * |
|
public |
|
|
public |
sidebar: * |
|
public |
sidebarTypes: * |
|
public |
ui: * |
Method Summary
Public Methods | ||
public |
Initialization function. |
|
public |
resetGraph(newGraph: Graph) Reset the reference to the graph. |
|
public |
setSidebar(sidebarType: string) Set the sidebar content to the specified type. |
|
public |
updateSidebar(obj: *) Call the current sidebar-content class's update function. Currently, updateSidebar is only from the mouse-handler. |
Public Constructors
Public Members
public content: * source
public currentSidebar: * source
public sidebar: * source
public sidebarTypes: * source
public ui: * source
Public Methods
public init(graph: Graph) source
Initialization function.
Params:
Name | Type | Attribute | Description |
graph | Graph | Graph instance that is used by the sidebar. |
public resetGraph(newGraph: Graph) source
Reset the reference to the graph.
Params:
Name | Type | Attribute | Description |
newGraph | Graph | The new Graph object. |
public setSidebar(sidebarType: string) source
Set the sidebar content to the specified type.
Params:
Name | Type | Attribute | Description |
sidebarType | string | Name of the sidebar type to display. |
public updateSidebar(obj: *) source
Call the current sidebar-content class's update function. Currently, updateSidebar is only from the mouse-handler.
Params:
Name | Type | Attribute | Description |
obj | * | Object to update the sidebar with. |