Package vg.core.graph

Examples of vg.core.graph.GraphNode


   */
  public void search() {
    synchronized (fbspMutex) {
      this.firstPanel.search();
      Set<Integer>vertexIdList = this.firstPanel.getSelectedVertexIdList();
      GraphNode rootNode = this.firstPanel.getRootNode();
      Set<String> vertexAttributes = this.firstPanel.getVertexAttributes();
      this.secondPanel.buildTree(rootNode, vertexIdList, vertexAttributes);
      SwingUtilities.invokeLater(new Runnable() {
        public void run() {
          buildSecondPanel();
View Full Code Here


      //-----------------------------------
      if(resultGraph.next()) {
        Integer rootKey = (Integer)resultGraph.getObject(1);
        String name = resultGraph.getString(2);
        if(rootKey != null) {
          GraphNode node = new GraphNode(ENodeType.DEF_SUBGRAPH, rootKey, name);
          ArrayList<GraphNode> nodes = dbBuildSubGraphSkeleton(rootKey);
          for(GraphNode buf : nodes) {
            node.add(buf);
          }
          return(node);
        }
      }
    } catch(SQLException ex) {
View Full Code Here

      while(resultSubGraph.next()) {
        Integer dbId = resultSubGraph.getInt(1);
        String id = resultSubGraph.getString(2);
        Integer innerGraph = (Integer)resultSubGraph.getObject(3);
       
        GraphNode node = new GraphNode(ENodeType.DEF_VERTEX, dbId, id);
        array.add(node);
        if(innerGraph != null) {
          ArrayList<GraphNode> nodes = dbBuildSubGraphSkeleton(innerGraph);
          for(GraphNode buf : nodes) {
            node.add(buf);
          }
        }
      }
      return(array);
    } catch(SQLException ex) {
View Full Code Here

TOP

Related Classes of vg.core.graph.GraphNode

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.