Package com.mxgraph.layout

Examples of com.mxgraph.layout.mxCompactTreeLayout.execute()


            mxGraphProperties.setDirected(props, true);
            mxGraphStructure.setDefaultGraphStyle(aGraph, false);
            setVisible(false);
            mxCompactTreeLayout layout = new mxCompactTreeLayout(graph, false);
            layout.execute(graph.getDefaultParent());
            graph.getModel().endUpdate();
          }

          graph.getModel().endUpdate();
          setVisible(false);
View Full Code Here


          generator.getCompleteGraph(aGraph, vertexNumParam);

          mxGraphStructure.setDefaultGraphStyle(aGraph, false);
          setVisible(false);
          mxCircleLayout layout = new mxCircleLayout(graph);
          layout.execute(graph.getDefaultParent());
          graph.getModel().endUpdate();
        }
      });
      closeButton.addActionListener(new ActionListener()
      {
View Full Code Here

          generator.getPetersenGraph(aGraph);
          mxGraphStructure.setDefaultGraphStyle(aGraph, false);
          setVisible(false);
          mxCircleLayout layout = new mxCircleLayout(graph);
          layout.execute(graph.getDefaultParent());

          graph.getModel().endUpdate();
        }
      });
      closeButton.addActionListener(new ActionListener()
View Full Code Here

          generator.getSimpleRandomGraph(aGraph, nodeCount, edgeCount, allowSelfLoops, allowMultipleEdges, forceConnected);

          mxGraphStructure.setDefaultGraphStyle(aGraph, false);
          mxOrganicLayout layout = new mxOrganicLayout(graph);
          layout.execute(graph.getDefaultParent());
          graph.getModel().endUpdate();
          setVisible(false);
        }
      });
      closeButton.addActionListener(new ActionListener()
View Full Code Here

              mxGraphStructure.makeTreeDirected(aGraph, startVertex);
              graph.getModel().endUpdate();
              graph.getModel().beginUpdate();
              mxCompactTreeLayout layout = new mxCompactTreeLayout(graph);
              layout.setHorizontal(false);
              layout.execute(graph.getDefaultParent());
              graph.getModel().endUpdate();
            }
            catch (StructuralException e1)
            {
              System.out.println(e1);
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.