mirror of
https://bitbucket.org/wisemapping/wisemapping-open-source.git
synced 2024-11-22 14:17:57 +01:00
fixing freemind export side of nodes
This commit is contained in:
parent
2eff6fe197
commit
94db33e2ac
@ -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));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user