Class Index | File Index

Classes


Class mindmaps.CanvasPresenter


Defined in: CanvasPresenter.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
mindmaps.CanvasPresenter(eventBus, commandRegistry, mindmapModel, view, zoomController)
Creates a new CanvasPresenter.
Method Summary
Method Attributes Method Name and Description
<inner>  
bind()
Hook up with EventBus.
 
Handles the edit caption command.
 
init()
Initializes this presenter.
<inner>  
selectNode(selectedNode, oldSelectedNode)
Tells the view to select a node.
<inner>  
Draw the mind map on the canvas.
<inner>  
toggleFold(node)
Toggles the fold state of a node.
Class Detail
mindmaps.CanvasPresenter(eventBus, commandRegistry, mindmapModel, view, zoomController)
Creates a new CanvasPresenter. The canvas presenter is responsible for drawing the mind map onto a canvas view and reacting to user input on the map (e.g. dragging a node, double clicking it etc.)
Parameters:
{mindmaps.EventBus} eventBus
{mindmaps.CommandRegistry} commandRegistry
{mindmaps.MindMapModel} mindmapModel
{mindmaps.CanvasView} view
{mindmaps.ZoomController} zoomController
Method Detail
<inner> bind()
Hook up with EventBus.

editNodeCaption(node)
Handles the edit caption command. Tells view to start edit mode for node.
Parameters:
{mindmaps.Node} node

init()
Initializes this presenter.

<inner> selectNode(selectedNode, oldSelectedNode)
Tells the view to select a node.
Parameters:
{mindmaps.Node} selectedNode
{mindmaps.Node} oldSelectedNode

<inner> showMindMap(doc)
Draw the mind map on the canvas.
Parameters:
{mindmaps.Document} doc

<inner> toggleFold(node)
Toggles the fold state of a node.
Parameters:
{mindmaps.Node} node

Documentation generated by JsDoc Toolkit 2.4.0 on Mon Jul 18 2011 18:03:15 GMT+0000 (WEST)