add jsdoc to mindplot module

--HG--
branch : mindplot_jsdoc
This commit is contained in:
Christina Korger
2015-03-23 09:25:54 +01:00
parent a4da6fb7cd
commit c298732f64
46 changed files with 1524 additions and 108 deletions

View File

@@ -15,16 +15,25 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
mindplot.layout.EventBusDispatcher = new Class({
mindplot.layout.EventBusDispatcher = new Class(/** @lends EventBusDispatcher */{
/**
* @constructs
*/
initialize:function() {
this.registerBusEvents();
},
/**
* @param {mindplot.layout.LayoutManager} layoutManager
*/
setLayoutManager : function(layoutManager) {
this._layoutManager = layoutManager;
},
/**
* register bus events
*/
registerBusEvents:function () {
mindplot.EventBus.instance.addEvent(mindplot.EventBus.events.NodeAdded, this._nodeAdded.bind(this));
mindplot.EventBus.instance.addEvent(mindplot.EventBus.events.NodeRemoved, this._nodeRemoved.bind(this));
@@ -79,6 +88,7 @@ mindplot.layout.EventBusDispatcher = new Class({
// }).delay(0, this);
},
/** @return layout manager */
getLayoutManager: function() {
return this._layoutManager;
}