Design Documents

From autoplot.org

Jump to: navigation, search

Purpose: contain links for miscellaneous design documents.

Contents

  1. Links to Various Design Documents
  2. Autoplot Objects
    1. DOM Controllers
    2. DOM Nodes
      1. syncTo
      2. diffs
      3. copy

1 Links to Various Design Documents

2 Autoplot Objects

2.1 DOM Controllers

The DOM Controllers are objects that manage nodes of the DOM. For example, when the slice index of a DataSourceFilter node is changed, the controller slices the original dataset to create a new dataset, and fires off an event notification of the new dataset.

DataSourceController

PanelController

2.2 DOM Nodes

2.2.1 syncTo

syncTo method should set all the properties of a node to those of another node. This should include the id. This should include references to id's.

2.2.2 diffs

diffs returns an array of diff descriptor objects that can do and undo the diff. The returned diffs should include the id. The returned diffs should include changes in references to other

2.2.3 copy

copy is a deep copy of the node, including id and references. However, this is often implemented with clone() it's extremely important that the controller not be copied. Most copy implementations will explicitly set the controller to null.

Personal tools