Examples of StorableSubGraph


Examples of vg.core.storableGraph.StorableSubGraph

          }
        }
      }
    }
    List<StorableEdge> edges = getAllEdgesBeetweenVertexes(vertexes);
    return (new StorableSubGraph(subGraph.getName(), vertexes, edges, subGraph.isDirected()));

  }
View Full Code Here

Examples of vg.core.storableGraph.StorableSubGraph

              this.title = buf + " by id";
              return;
            }
          } else {
            // it is root
            StorableSubGraph ssg = this.model.getStorableSubGraph(sid);
            String buf = ssg.getName();
            if (buf != null && buf.length() > 0) {
              this.title = buf + " by name";
              return;
            }
            buf = ssg.getId();
            if (buf != null && buf.length() > 0) {
              this.title = buf + " by id";
              return;
            }
          }
View Full Code Here

Examples of vg.core.storableGraph.StorableSubGraph

      public void mouseReleased(MouseEvent e) {
        if (e.getClickCount() > 1) {
          mxCell cell = (mxCell) graphComponent.getCellAt(e.getX(), e.getY());
          if (cell != null && subgraphsid.containsKey(cell)) {
            if (JGraphView.this.model != null) {
              StorableSubGraph ssg = JGraphView.this.model.getStorableSubGraph(subgraphsid.get(cell).intValue());
              IGraphView view = new JGraphView(ssg, JGraphView.this.userInterface);
              UIRequestOpenSubGraph r = new UIRequestOpenSubGraph(view, JGraphView.this.requestOwner);
              JGraphView.this.userInterface.addRequest(r);
            } else {
              VisualGraph.log.printError("[" + this.getClass().getName()
View Full Code Here

Examples of vg.core.storableGraph.StorableSubGraph

        VisualGraph.log.printDebug("[" + this.getClass().getName()+".actionPerformed] [BAD] Openning of subgraph in new tab(from navigator). Model = null.");
        return;
      } else {
        GraphNode node = ((GraphNode)tm.getRoot()).getNode(p[0]);
        if(node.getInnerGraph() != null) {
          StorableSubGraph ssg = this.model.getStorableSubGraph(node.getInnerGraph());
          IGraphView igv = GraphView.newGraphView(ssg, this.userInterface);
          UIRequestOpenSubGraph req = new UIRequestOpenSubGraph(igv, null);
          this.userInterface.addRequest(req);
        } else {
          VisualGraph.windowMessage.warningMessage("Selection should be subgraph, if you want to open subgraph in new tab", "Opening of subgraph");       
View Full Code Here

Examples of vg.core.storableGraph.StorableSubGraph

            VisualGraph.log.printDebug("[" + this.getClass().getName()+".actionPerformed] [BAD] Openning of composition of vertexes in new tab(from navigator). Type of node is not DEF_VERTEX.");
            VisualGraph.windowMessage.warningMessage("Warning: Elements aren't vertex of graph(May be it is tab or tabs).", "Opening of vertexes");
            return;
          }
        }
        StorableSubGraph ssg = this.model.getStorableSubGraph(vertexes);
        IGraphView igv = GraphView.newGraphView(ssg, this.userInterface);
        UIRequestOpenSubGraph req = new UIRequestOpenSubGraph(igv, null);
        this.userInterface.addRequest(req);
      }
    } else {
View Full Code Here

Examples of vg.core.storableGraph.StorableSubGraph

        VisualGraph.log.printDebug("[" + this.getClass().getName()+".actionPerformed] [BAD] Openning of subgraph in new tab(from navigator). Model = null.");
        return;
      } else {
        GraphNode node = ((GraphNode)tm.getRoot()).getNode(p[0]);
        if(node.getInnerGraph() != null) {
          StorableSubGraph ssg = this.parameter.model.getStorableSubGraph(node.getInnerGraph());
          IGraphView igv = GraphView.newGraphView(ssg, this.parameter.userInterface);
          showAdditionalAttribute(igv);
          if(this.model.getActionMode() == SearchPanelModel.DEF_ACTION_MODE_1) {
            UIRequestOpenSubGraph req = new UIRequestOpenSubGraph(igv, null);
            this.parameter.userInterface.addRequest(req);
View Full Code Here

Examples of vg.core.storableGraph.StorableSubGraph

            VisualGraph.log.printDebug("[" + this.getClass().getName()+".actionPerformed] [BAD] Openning of composition of vertexes in new tab(from navigator). Type of node is not DEF_VERTEX.");
            VisualGraph.windowMessage.warningMessage("Warning: Elements aren't vertex of graph(May be it is tab or tabs).", "Opening of vertexes");
            return;
          }
        }
        StorableSubGraph ssg = this.parameter.model.getStorableSubGraph(vertexes);
        IGraphView igv = GraphView.newGraphView(ssg, this.parameter.userInterface);

        showAdditionalAttribute(igv);
        if(this.model.getActionMode() == SearchPanelModel.DEF_ACTION_MODE_1) {
          UIRequestOpenSubGraph req = new UIRequestOpenSubGraph(igv, null);
View Full Code Here

Examples of vg.core.storableGraph.StorableSubGraph

  }
  public synchronized StorableSubGraph getStorableSubGraph(int subGraphId) {
    return(dbGetStorableSubGraph(subGraphId));
  }
  public synchronized SubGraph getSubGraph(int subGraphId) {
    StorableSubGraph sg = dbGetStorableSubGraph(subGraphId);
    if(sg != null) {
      return(sg.getSubGraph());
    }
    return(null);
  }
View Full Code Here

Examples of vg.core.storableGraph.StorableSubGraph

  }
  public synchronized StorableSubGraph getRootStorableSubGraph(int graphId) {
    return(dbGetStorableRootSubGraph(graphId));
  }
  public synchronized SubGraph getRootSubGraph(int graphId) {
    StorableSubGraph sg = dbGetStorableRootSubGraph(graphId);
    if(sg != null) {
      return(sg.getSubGraph());
    }
    return null;
  }
View Full Code Here

Examples of vg.core.storableGraph.StorableSubGraph

                VisualGraph.log.printException(ex);
              }
          }
        }
        //build subgraph-----------------
        StorableSubGraph ssg = new StorableSubGraph(id_subgraph, id, name, listVertex, listEdge, directed);
        sg.addSubGraph(ssg);
      }
      //getting of graph-------------------
      Statement graphStatement = null;
      try {
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.