Home Reference Source Test Repository
public class | source

Sidebar

This class manages the container for sidebar-content subclasses, and is responsible for managing those subclasses as well.

Constructor Summary

Public Constructor
public

Constructs a Sidebar object.

Member Summary

Public Members
public

content: *

public
public

sidebar: *

public
public

ui: *

Method Summary

Public Methods
public

init(graph: Graph)

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 constructor(ui: UI) source

Constructs a Sidebar object.

Params:

NameTypeAttributeDescription
ui UI

Reference to the UI instance.

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:

NameTypeAttributeDescription
graph Graph

Graph instance that is used by the sidebar.

public resetGraph(newGraph: Graph) source

Reset the reference to the graph.

Params:

NameTypeAttributeDescription
newGraph Graph

The new Graph object.

public setSidebar(sidebarType: string) source

Set the sidebar content to the specified type.

Params:

NameTypeAttributeDescription
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:

NameTypeAttributeDescription
obj *

Object to update the sidebar with.