diff --git a/mindplot/pom.xml b/mindplot/pom.xml
index 75d2ea15..5571e12b 100644
--- a/mindplot/pom.xml
+++ b/mindplot/pom.xml
@@ -84,9 +84,18 @@
-
-
-
+
+
+
+
+
+
+
@@ -94,10 +103,9 @@
-
-
-
+
@@ -152,21 +160,21 @@
-
+
-
+
-
+
-
+
-
+
-
+
= 0) {
// It's at right.
- result = topicPosition.x + halfTargetWidth + mindplot.FixedDistanceBoard.MAIN_TOPIC_TO_MAIN_TOPIC_DISTANCE;
+ result = topicPosition.x + halfTargetWidth + mindplot.layout.boards.original.FixedDistanceBoard.MAIN_TOPIC_TO_MAIN_TOPIC_DISTANCE;
} else {
- result = topicPosition.x - (halfTargetWidth + mindplot.FixedDistanceBoard.MAIN_TOPIC_TO_MAIN_TOPIC_DISTANCE);
+ result = topicPosition.x - (halfTargetWidth + mindplot.layout.boards.original.FixedDistanceBoard.MAIN_TOPIC_TO_MAIN_TOPIC_DISTANCE);
}
return result;
},
@@ -140,13 +140,13 @@ mindplot.FixedDistanceBoard = new Class({
var topicBoardHeight = topicBoard.getHeight();
- height += topicBoardHeight + mindplot.FixedDistanceBoard.INTER_TOPIC_DISTANCE;
+ height += topicBoardHeight + mindplot.layout.boards.original.FixedDistanceBoard.INTER_TOPIC_DISTANCE;
}
}
}
else {
var topic = this._topic;
- height = topic.getSize().height + mindplot.FixedDistanceBoard.INTER_TOPIC_DISTANCE;
+ height = topic.getSize().height + mindplot.layout.boards.original.FixedDistanceBoard.INTER_TOPIC_DISTANCE;
}
var oldHeight = this._height;
@@ -193,7 +193,7 @@ mindplot.FixedDistanceBoard = new Class({
var topicBoard = this._layoutManager.getTopicBoardForTopic(currentTopic);
var topicBoardHeight = topicBoard.getHeight();
- upperLimit = lowerLimit + topicBoardHeight + mindplot.FixedDistanceBoard.INTER_TOPIC_DISTANCE;
+ upperLimit = lowerLimit + topicBoardHeight + mindplot.layout.boards.original.FixedDistanceBoard.INTER_TOPIC_DISTANCE;
e.setUpperLimit(upperLimit);
lowerLimit = upperLimit;
@@ -277,8 +277,10 @@ mindplot.FixedDistanceBoard = new Class({
return result;
}
-})
- ;
-mindplot.FixedDistanceBoard.INTER_TOPIC_DISTANCE = 6;
-mindplot.FixedDistanceBoard.MAIN_TOPIC_TO_MAIN_TOPIC_DISTANCE = 60;
+});
+
+mindplot.layout.boards.original.FixedDistanceBoard.MAIN_TOPIC_TO_MAIN_TOPIC_DISTANCE = 60;
+mindplot.layout.boards.original.FixedDistanceBoard.INTER_TOPIC_DISTANCE = 6;
+
+
diff --git a/mindplot/src/main/javascript/MainTopicBoard.js b/mindplot/src/main/javascript/layout/boards/original/MainTopicBoard.js
similarity index 91%
rename from mindplot/src/main/javascript/MainTopicBoard.js
rename to mindplot/src/main/javascript/layout/boards/original/MainTopicBoard.js
index 368cafc8..0a529ce0 100644
--- a/mindplot/src/main/javascript/MainTopicBoard.js
+++ b/mindplot/src/main/javascript/layout/boards/original/MainTopicBoard.js
@@ -16,8 +16,8 @@
* limitations under the License.
*/
-mindplot.MainTopicBoard = new Class({
- Extends:mindplot.Board,
+mindplot.layout.boards.original.MainTopicBoard = new Class({
+ Extends:mindplot.layout.boards.original.Board,
initialize:function(topic, layoutManager) {
this._layoutManager = layoutManager;
this._topic = topic;
@@ -29,7 +29,7 @@ mindplot.MainTopicBoard = new Class({
_getBoard: function() {
if (!$defined(this._board)) {
var topic = this._topic;
- this._board = new mindplot.FixedDistanceBoard(mindplot.MainTopicBoard.DEFAULT_MAIN_TOPIC_HEIGHT, topic, this._layoutManager);
+ this._board = new mindplot.layout.boards.original.FixedDistanceBoard(mindplot.MainTopic.DEFAULT_MAIN_TOPIC_HEIGHT, topic, this._layoutManager);
}
return this._board;
},
@@ -124,6 +124,4 @@ mindplot.MainTopicBoard = new Class({
mindplot.EventBus.instance.fireEvent(mindplot.EventBus.events.NodeRepositionateEvent, [connectedTopic]);
}
}
-});
-
-mindplot.MainTopicBoard.DEFAULT_MAIN_TOPIC_HEIGHT = 18;
+});
\ No newline at end of file
diff --git a/mindplot/src/main/javascript/VariableDistanceBoard.js b/mindplot/src/main/javascript/layout/boards/original/VariableDistanceBoard.js
similarity index 94%
rename from mindplot/src/main/javascript/VariableDistanceBoard.js
rename to mindplot/src/main/javascript/layout/boards/original/VariableDistanceBoard.js
index b3b5b099..418e1de2 100644
--- a/mindplot/src/main/javascript/VariableDistanceBoard.js
+++ b/mindplot/src/main/javascript/layout/boards/original/VariableDistanceBoard.js
@@ -16,8 +16,8 @@
* limitations under the License.
*/
-mindplot.VariableDistanceBoard = new Class({
- Extends: mindplot.Board,
+mindplot.layout.boards.original.VariableDistanceBoard = new Class({
+ Extends: mindplot.layout.boards.original.Board,
initialize: function(defaultHeight, referencePoint) {
this.parent(defaultHeight, referencePoint);
var zeroEntryCoordinate = referencePoint.y;
@@ -66,7 +66,7 @@ mindplot.VariableDistanceBoard = new Class({
},
createBoardEntry:function(lowerLimit, upperLimit, order) {
- return new mindplot.BoardEntry(lowerLimit, upperLimit, order);
+ return new mindplot.layout.boards.original.BoardEntry(lowerLimit, upperLimit, order);
},
updateReferencePoint:function(position) {