Add support for shink on collapsed nodes.

This commit is contained in:
Paulo Veiga
2012-01-11 23:30:26 -03:00
parent 51bc3e563a
commit ef2902d724
20 changed files with 76 additions and 87 deletions

View File

@@ -28,15 +28,24 @@ mindplot.nlayout.Node = new Class({
this.setSize(size);
this.setPosition(position);
this.setShrunken(false);
},
getId:function() {
return this._id;
},
setShrunken: function(value) {
this._setProperty('shrink', value);
},
areChildrenShrunken: function() {
return this._getProperty('shrink');
},
setOrder: function(order) {
$assert(typeof order === 'number' && isFinite(order), "Order can not be null. Value:" + order);
this._setProperty('order', order, false);
this._setProperty('order', order);
},
resetPositionState : function() {