* @param v mxCell where data are obtained.
*/
public static void addNodeData(mxGmlNode gmlNode, mxCell v)
{
mxGmlData data = new mxGmlData();
mxGmlShapeNode dataShapeNode = new mxGmlShapeNode();
data.setDataKey(mxGmlConstants.KEY_NODE_ID);
dataShapeNode
.setDataHeight(String.valueOf(v.getGeometry().getHeight()));
dataShapeNode.setDataWidth(String.valueOf(v.getGeometry().getWidth()));
dataShapeNode.setDataX(String.valueOf(v.getGeometry().getX()));
dataShapeNode.setDataY(String.valueOf(v.getGeometry().getY()));
dataShapeNode.setDataLabel(v.getValue() != null ? v.getValue()
.toString() : "");
dataShapeNode.setDataStyle(v.getStyle() != null ? v.getStyle() : "");
data.setDataShapeNode(dataShapeNode);
gmlNode.setNodeData(data);
}