adding FreeMind LayoutManager

This commit is contained in:
Pablo Luna
2011-03-24 18:00:51 +00:00
parent 43ff313635
commit 4dee4a0f18
20 changed files with 630 additions and 81 deletions

View File

@@ -0,0 +1,23 @@
mindplot.layoutManagers.boards.freeMindBoards.CentralTopicBoard = mindplot.layoutManagers.boards.freeMindBoards.Board.extend({
options:{
},
initialize:function(node, layoutManager, options){
this.parent(node, layoutManager, options);
},
_createTables:function(){
return [[],[]];
},
_getTableForNode:function(node){
var i = 0;
var position = node.getPosition();
if(!position){
if(Math.sign(node.getParent().getPosition().x) == -1){
i=1;
}
}
else if(mindplot.util.Shape.isAtRight(position, node.getParent().getPosition()))
i=1;
return this._positionTables[i];
}
});