DiagramManager

Description

Functions Summary

Functions

_currentDiagramChangedEvent

Current Diagram Changed

event
module:diagrams/DiagramManager.currentDiagramChanged
property
{Diagram} diagram

_triggerDoubleClickedEvent

Element Double Clicked

event
module:diagrams/DiagramManager.viewDoubleClicked
property
{View} view
property
{number} x
property
{number} y

_triggerSelectionChangedEvent

Selection Changed

event
module:diagrams/DiagramManager.selectionChanged
property
{Array.<View>} views

_triggerViewMovedEvent

Views Moved

event
module:diagrams/DiagramManager.viewMoved
property
{Array.<View>} views
property
{number} dx
property
{number} dy
Public API

closeAll

Close all diagrams

Public API

closeDiagram

Close the diagram.

diagram Diagram
Public API

closeOthers

Close all diagrams except active diagram.

Public API

deselectAll

Deselect all.

Public API

getCurrentDiagram

Return current diagram

Returns: Editor
Public API

getDiagramArea

Return left, top, right, bottom of diagram area with zoom level

Returns: Graphics.Rect
Public API

getEditor

Return diagram editor.

Returns: Editor
Public API

getHiddenEditor

Return Hidden Editor which is not shown

Public API

getScrollPosition

Get postion of the scroll bar

Returns: Graphics.Point
Public API

getViewportSize

Return view size.

x Point
is width, y is height.
Public API

getWorkingDiagrams

Return all working diagrams.

Returns: Array.<Diagram>
Public API

getZoomLevel

Return zoom level

Returns: number
Zoom level between 0 and 1.
Public API

hideGrid

Hide grid

Public API

isGridVisible

Return whether grid is visible.

Returns: boolean
Public API

nextDiagram

Set next diagram as current diagram

Public API

openDiagram

Open diagram and add to working set

diagram Diagram
Public API

previousDiagram

Set previous diagram as current diagram

Public API

repaint

Repaint.

Public API

restoreWorkingDiagrams

Restore a list of working diagrams and current diagram of current project.

Public API

saveWorkingDiagrams

Save a list of working diagrams of current project.

Public API

scrollTo

Scroll diagram area to the given position

x number
y number
animation boolean
Public API

selectAll

Select all view elements.

Public API

selectInDiagram

Select view in diagram. Open diagram if diagram is not opened and then scroll to the view.

view View
Public API

setActiveHandler

Set an active handler.

handler Handler
Public API

setCurrentDiagram

Set current diagram.

diagram Diagram
skipEvent boolean
Public API

setZoomLevel

Set zoom level

value number
Zoom level between 0 and 1.
Public API

showGrid

Show grid

Public API

toggleGrid

Toggle grid

Public API

updateDiagram

Update the diagram.

diagram Diagram