fixing freemind export side of nodes

This commit is contained in:
Pablo Luna 2011-03-13 14:26:27 +00:00
parent 2eff6fe197
commit 94db33e2ac

View File

@ -41,6 +41,8 @@ public class FreemindExporter
private static final String FREE_MIND_VERSION = "0.9.0"; private static final String FREE_MIND_VERSION = "0.9.0";
private static final String EMPTY_FONT_STYLE = ";;;;;"; 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 com.wisemapping.xml.freemind.ObjectFactory freemindObjectFactory;
private Map<String, Node> nodesMap = null; private Map<String, Node> nodesMap = null;
@ -117,6 +119,10 @@ public class FreemindExporter
setTopicPropertiesToNode(newNode, topicType); setTopicPropertiesToNode(newNode, topicType);
destNode.getArrowlinkOrCloudOrEdge().add(newNode); destNode.getArrowlinkOrCloudOrEdge().add(newNode);
addNodeFromTopic(topicType, 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));
} }
} }