From 94db33e2ac0e5a5335b2c830eedbea51a6decabb Mon Sep 17 00:00:00 2001 From: Pablo Luna Date: Sun, 13 Mar 2011 14:26:27 +0000 Subject: [PATCH] fixing freemind export side of nodes --- .../com/wisemapping/exporter/freemind/FreemindExporter.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/wise-webapp/src/main/java/com/wisemapping/exporter/freemind/FreemindExporter.java b/wise-webapp/src/main/java/com/wisemapping/exporter/freemind/FreemindExporter.java index e77cdef6..748667c1 100755 --- a/wise-webapp/src/main/java/com/wisemapping/exporter/freemind/FreemindExporter.java +++ b/wise-webapp/src/main/java/com/wisemapping/exporter/freemind/FreemindExporter.java @@ -41,6 +41,8 @@ public class FreemindExporter private static final String FREE_MIND_VERSION = "0.9.0"; private static final String EMPTY_FONT_STYLE = ";;;;;"; + private static final String POSITION_LEFT = "left"; + private static final String POSITION_RIGHT = "right"; private com.wisemapping.xml.freemind.ObjectFactory freemindObjectFactory; private Map nodesMap = null; @@ -117,6 +119,10 @@ public class FreemindExporter setTopicPropertiesToNode(newNode, topicType); destNode.getArrowlinkOrCloudOrEdge().add(newNode); addNodeFromTopic(topicType, newNode); + String position = topicType.getPosition(); + String xPos = position.split(",")[0]; + int x = Integer.valueOf(xPos); + newNode.setPOSITION((x<0?POSITION_LEFT:POSITION_RIGHT)); } }