Add IMindmap and INode.

This commit is contained in:
Paulo Veiga
2011-09-08 10:03:42 -03:00
parent 21f848e3df
commit 0c216778e5
21 changed files with 248 additions and 149 deletions

View File

@@ -41,7 +41,7 @@ mindplot.CentralTopic = new Class({
},
getTopicType : function() {
return mindplot.model.NodeModel.CENTRAL_TOPIC_TYPE;
return mindplot.model.INodeModel.CENTRAL_TOPIC_TYPE;
},
setCursor : function(type) {
@@ -57,7 +57,7 @@ mindplot.CentralTopic = new Class({
// Create a new node ...
var model = this.getModel();
var mindmap = model.getMindmap();
var childModel = mindmap.createNode(mindplot.model.NodeModel.MAIN_TOPIC_TYPE);
var childModel = mindmap.createNode(mindplot.model.INodeModel.MAIN_TOPIC_TYPE);
if (prepositionate) {
if (!$defined(this.___siblingDirection)) {
@@ -80,7 +80,7 @@ mindplot.CentralTopic = new Class({
},
_defaultShapeType : function() {
return mindplot.model.NodeModel.SHAPE_TYPE_ROUNDED_RECT;
return mindplot.model.INodeModel.SHAPE_TYPE_ROUNDED_RECT;
},