//gets the port names
targetPort = pointToPortString(targetConstraint);
sourcePort = pointToPortString(sourceConstraint);
mxGmlEdge Gmledge = new mxGmlEdge(sourceName, targetName,
sourcePort, targetPort);
String style = e.getStyle();
if (style == null)
{
style = "horizontal";
}
HashMap<String, Object> styleMap = mxGmlUtils.getStyleMap(style,
"=");
String endArrow = (String) styleMap.get(mxConstants.STYLE_ENDARROW);
if ((endArrow != null && !endArrow.equals(mxConstants.NONE))
|| endArrow == null)
{
Gmledge.setEdgeDirected("true");
}
else
{
Gmledge.setEdgeDirected("false");
}
addEdgeData(Gmledge, e);
Gmledges.add(Gmledge);
}