Examples of insertVertex()


Examples of com.mxgraph.view.mxGraph.insertVertex()

                          colorRelation = colorRelation - colors.length;
                        }
                        break;
                      }
                    }
                    graph.insertVertex(parentVertex, null, currentRole.name, 15+dimensionX*currentRole.column, 20+dimensionY*currentRole.ystart+alreadyPaintedFlag, dimensionX, dimensionY*(currentRole.yend-currentRole.ystart+1)+30, "rounded=1;strokeColor=black;fillColor="+colors[colorRelation]+";verticalAlign=top;fontStyle=1;fontColor=black"); //kursiv ;fontStyle=1;fontColor=black
                  }
                 
                  //Components
                  String containsString = new String();
                 
View Full Code Here

Examples of com.mxgraph.view.mxGraph.insertVertex()

                                }
                              }
                            } 
                          }
                          if(xMultiplicator==0){
                            graph.insertVertex(parentVertex, null, currentLayout.grid[x1][y1].name, 20+x1*dimensionX, 45+y1*dimensionY+alreadyPaintedFlag, xMultiplicator * 5 + xMultiplicator * (dimensionX-10+ (dimensionX-10), dimensionY-4, "rounded=1;strokeColor=black;fillColor=white;opacity=65;fontStyle=1;fontColor=black");
                          }
                          if(xMultiplicator>0){
                            graph.insertVertex(parentVertex, null, currentLayout.grid[x1][y1].name, 20+x1*dimensionX, 45+y1*dimensionY+alreadyPaintedFlag, xMultiplicator * 5 + xMultiplicator * (dimensionX-10+ (dimensionX-5), dimensionY-4, "rounded=1;strokeColor=black;fillColor=white;opacity=65;fontStyle=1;fontColor=black");
                          }
                        }
View Full Code Here

Examples of com.mxgraph.view.mxGraph.insertVertex()

                          }
                          if(xMultiplicator==0){
                            graph.insertVertex(parentVertex, null, currentLayout.grid[x1][y1].name, 20+x1*dimensionX, 45+y1*dimensionY+alreadyPaintedFlag, xMultiplicator * 5 + xMultiplicator * (dimensionX-10+ (dimensionX-10), dimensionY-4, "rounded=1;strokeColor=black;fillColor=white;opacity=65;fontStyle=1;fontColor=black");
                          }
                          if(xMultiplicator>0){
                            graph.insertVertex(parentVertex, null, currentLayout.grid[x1][y1].name, 20+x1*dimensionX, 45+y1*dimensionY+alreadyPaintedFlag, xMultiplicator * 5 + xMultiplicator * (dimensionX-10+ (dimensionX-5), dimensionY-4, "rounded=1;strokeColor=black;fillColor=white;opacity=65;fontStyle=1;fontColor=black");
                          }
                        }
                      }
                      }
                  }
View Full Code Here

Examples of com.mxgraph.view.mxGraph.insertVertex()

                      }
                      }
                  }
                }else{
                          compoundDimensionY = (maxRow+1)*dimensionY+70;
                  graph.insertVertex(parentVertex, null, currentLayout.name, 5, 5+alreadyPaintedFlag, compound_dimensionX, compoundDimensionY, "rounded=1;strokeColor=black;fillColor=#CCCCCC;verticalAlign=top;fontStyle=1;fontColor=black" );
               
                  //Roles
                  Iterator<RoleLocator>  subIt = currentLayout.Roles.iterator();
                  while (subIt.hasNext()) {
                    RoleLocator currentRole = subIt.next();
View Full Code Here

Examples of com.mxgraph.view.mxGraph.insertVertex()

                          colorRelation = colorRelation - colors.length;
                        }
                        break;
                      }
                    }
                    graph.insertVertex(parentVertex, null, currentRole.name, 15+dimensionX*currentRole.column, 20+(dimensionY*currentRole.ystart*2)+alreadyPaintedFlag+(firstKill[currentRole.column]*20), dimensionX, dimensionY*(currentRole.yend-currentRole.ystart+1)-(firstKill[currentRole.column]*dimensionY)+44, "rounded=1;strokeColor=black;fillColor="+colors[colorRelation]+";verticalAlign=top;fontStyle=1;fontColor=black");
                  }
                 
                  //Components
                  String containsString = new String();
                  for (int x1=0; x1<currentLayout.grid.length;x1++) {
View Full Code Here

Examples of com.mxgraph.view.mxGraph.insertVertex()

                              }
                            } 
                          }
                          //                                                                                           x                 y                                x-length                                                                y-length
                          if(xMultiplicator==0){
                            graph.insertVertex(parentVertex, null, currentLayout.grid[x1][y1].name, 20+x1*dimensionX, 55+y1*dimensionY+alreadyPaintedFlag, xMultiplicator * 5 + xMultiplicator * (dimensionX-10+ (dimensionX-10), dimensionY-4, "rounded=1;strokeColor=black;fillColor=white;opacity=65;fontStyle=1;fontColor=black");
                          }
                          if(xMultiplicator>0){
                            graph.insertVertex(parentVertex, null, currentLayout.grid[x1][y1].name, 20+x1*dimensionX, 55+y1*dimensionY+alreadyPaintedFlag, xMultiplicator * 5 + xMultiplicator * (dimensionX-10+ (dimensionX-5), dimensionY-4, "rounded=1;strokeColor=black;fillColor=white;opacity=65;fontStyle=1;fontColor=black");
                          }
                        }
View Full Code Here

Examples of com.mxgraph.view.mxGraph.insertVertex()

                          //                                                                                           x                 y                                x-length                                                                y-length
                          if(xMultiplicator==0){
                            graph.insertVertex(parentVertex, null, currentLayout.grid[x1][y1].name, 20+x1*dimensionX, 55+y1*dimensionY+alreadyPaintedFlag, xMultiplicator * 5 + xMultiplicator * (dimensionX-10+ (dimensionX-10), dimensionY-4, "rounded=1;strokeColor=black;fillColor=white;opacity=65;fontStyle=1;fontColor=black");
                          }
                          if(xMultiplicator>0){
                            graph.insertVertex(parentVertex, null, currentLayout.grid[x1][y1].name, 20+x1*dimensionX, 55+y1*dimensionY+alreadyPaintedFlag, xMultiplicator * 5 + xMultiplicator * (dimensionX-10+ (dimensionX-5), dimensionY-4, "rounded=1;strokeColor=black;fillColor=white;opacity=65;fontStyle=1;fontColor=black");
                          }
                        }
                      }
                      }
                  }
View Full Code Here

Examples of com.mxgraph.view.mxGraph.insertVertex()

            } finally {
              graph.getModel().endUpdate();
            }
           
            if(alreadyPaintedFlag==0){
              graph.insertVertex(parentVertex, null,Messages.getString("PetriNet.Resources.NoRolesDefined"),10,10,150,30, "rounded=1;opacity=0;fontStyle=1;fontColor=black");           
            }
           
            // Create Listener, first parameter in constructor is the observed graph
            mxIEventListener mySelectListener = new selectListener(graph);
            // add Listener as CHANGE-Listener
View Full Code Here

Examples of com.mxgraph.view.mxGraph.insertVertex()

                }
               
                if(deepestSubset==1){
                  //dimensionY = 30;
                  compoundDimensionY = (maxRow+1) * dimensionY + 60;
                  graph.insertVertex(parentVertex, null, currentLayout.name, 5, 5+alreadyPaintedFlag, compound_dimensionX, compoundDimensionY, "rounded=1;strokeColor=black;fillColor=#CCCCCC;verticalAlign=top;fontStyle=1;fontColor=black" );

                  // So now we build an Iterator to travel trough all Roles of the compound Role
                  //Roles
                  Iterator<GroupLocator>  subIt = currentLayout.Groups.iterator();
                  while (subIt.hasNext()) {
View Full Code Here

Examples of com.mxgraph.view.mxGraph.insertVertex()

                          colorRelation = colorRelation - colors.length;
                        }
                        break;
                      }
                    }
                    graph.insertVertex(parentVertex, null, currentGroup.name, 15+dimensionX*currentGroup.column, 20+dimensionY*currentGroup.ystart+alreadyPaintedFlag, dimensionX, dimensionY*(currentGroup.yend-currentGroup.ystart+1)+30, "rounded=1;strokeColor=black;fillColor="+colors[colorRelation]+";verticalAlign=top;fontStyle=1;fontColor=black");
                  }
                 
                  //Components
                  String containsString = new String();
                 
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.