Close the first prototype of the new layout

This commit is contained in:
Paulo Veiga
2011-12-11 13:13:43 -03:00
parent a482c410a2
commit 9c41f0719c
10 changed files with 780 additions and 0 deletions

View File

@@ -0,0 +1,36 @@
mindplot.nlayout.ChangeEvent = new Class({
initialize:function(id) {
$assert(!isNaN(id), "id can not be null");
this._id = id;
this._position = null;
this._order = null;
},
getId:function() {
return this._id;
},
getOrder: function() {
return this._order;
},
getPosition: function() {
return this._position;
},
setOrder: function(value) {
$assert(!isNaN(value), "value can not be null");
this._order = value;
},
setPosition: function(value) {
$assert(value, "value can not be null");
this._position = value;
},
toString: function() {
return "[order:" + this.getOrder() + ", position: {" + this.getPosition().x + "," + this.getPosition().y + "}]";
}
});