Package com.jgraph.pad.graph

Examples of com.jgraph.pad.graph.JGraphpadBusinessObject


    for (int i = 0; i < cellVector.size(); i++) {
      DefaultGraphCell defaultGraphCell = (DefaultGraphCell) cellVector.get(i);
      Hashtable userObjectHashtable = null;
      Object userObject = graphpadGraphModel.getValue(defaultGraphCell);
      if (userObject instanceof JGraphpadBusinessObject) {
        JGraphpadBusinessObject graphpadBusinessObject = (JGraphpadBusinessObject) userObject;
        userObjectHashtable = (Hashtable) graphpadBusinessObject.getProperties();
      } else
        continue;

      Vector incomingCellVector = new Vector();
      Object[] incomingEdges =
        JGraphpadGraphModel.getIncomingEdges(graphpadGraphModel, defaultGraphCell);
      for (int index = 0; index < incomingEdges.length; index++) {
        DefaultEdge edge = (DefaultEdge) incomingEdges[index];
        Object vertex = graphpadGraphModel.getSourceVertex(graphpadGraphModel, edge);
        if (CellType.isCellActionCell(vertex)) {
          DefaultGraphCell cell = (DefaultGraphCell) vertex;
          JGraphpadBusinessObject businessObject =
            (JGraphpadBusinessObject) graphpadGraphModel.getValue(cell);
          Hashtable businessProperties = (Hashtable) businessObject.getProperties();
          incomingCellVector.add(businessProperties);
        } else
          continue;
      }
View Full Code Here


   * @return Returns a new user object containing <code>value</code>.
   *
   * @see JGraphpadBusinessObject
   */
  protected Object createVertexUserObject(Object value) {
    return new JGraphpadBusinessObject((value != null) ? value
        : new JGraphpadRichTextValue(""));
  }
View Full Code Here

TOP

Related Classes of com.jgraph.pad.graph.JGraphpadBusinessObject

Copyright © 2018 www.massapicom. 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.