Examples of mxGraphMlShapeNode


Examples of com.mxgraph.io.graphml.mxGraphMlShapeNode

   * @param v mxCell where data are obtained.
   */
  public static void addNodeData(mxGraphMlNode gmlNode, mxCell v)
  {
    mxGraphMlData data = new mxGraphMlData();
    mxGraphMlShapeNode dataShapeNode = new mxGraphMlShapeNode();

    data.setDataKey(mxGraphMlConstants.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);
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.