Package vg.userInterface

Examples of vg.userInterface.SwingUserInterface


      SwingUtilities.invokeLater(new Runnable() {
        public void run() {
          try {
            AModel model = new SQLite4JavaModel();// create model
            GraphLayoutManager layoutManager = new GraphLayoutManager();
            SwingUserInterface view = new SwingUserInterface(model, "Welcome to Visual Graph", layoutManager);// create user interface
            // create plugin parameter--------
            PluginParameter param = new PluginParameter(model, view);
            // adding system functions--------
            layoutManager.install(param);
            new SimpleTabCloser(view);
            new DesktopPlugin().install(param);
            new mxLayoutsRegister(view.getGraphLayoutManager());
            new vg.modules.filter.FilterPlugin().install(param);
            new UndoAndRedo().install(param);
            new SearchPlugin().install(param);
            new GUIOpener().install(param);
            new JGraphSettings().install(param);
View Full Code Here


      int i;
      System.out.println("Warmup state:");
      for(i = 0; i < 3; i++) {
        SQLite4JavaModel model = new SQLite4JavaModel();
        GraphLayoutManager layoutManager = new GraphLayoutManager();
        SwingUserInterface view = new SwingUserInterface(model, "Welcome to Visual Graph", layoutManager);
        PluginParameter param = new PluginParameter(model, view);
        // adding system functions--------
        new SimpleTabCloser(view);
        new DesktopPlugin().install(param);
        new mxLayoutsRegister(view.getGraphLayoutManager());
        new FilterPlugin().install(param);
        new UndoAndRedo().install(param);
        new SearchPlugin().install(param);
        new GUIOpener().install(param);
        new JGraphSettings().install(param);
        new LookAndFeelChanger().install(param);
        new NotepadPlugin().install(param);
        new PathSelectingPlugin().install(param);
        new AttributePlugin().install(param);
        new StorablePlugin().install(param);
        new ZoomPlugin().install(param);
        view.quit();
      }
      System.out.println("Stady state: It may take several minutes");
      float best = -1;
      for(i = 0; i < 5; i++) {
        SQLite4JavaModel model = new SQLite4JavaModel();
        GraphLayoutManager layoutManager = new GraphLayoutManager();
        SwingUserInterface view = new SwingUserInterface(model, "Welcome to Visual Graph", layoutManager);
        PluginParameter param = new PluginParameter(model, view);
        // adding system functions--------
        long start = new Date().getTime();
        new SimpleTabCloser(view);
        new DesktopPlugin().install(param);
        new mxLayoutsRegister(view.getGraphLayoutManager());
        new FilterPlugin().install(param);
        new UndoAndRedo().install(param);
        new SearchPlugin().install(param);
        new GUIOpener().install(param);
        new JGraphSettings().install(param);
        new LookAndFeelChanger().install(param);
        new NotepadPlugin().install(param);
        new PathSelectingPlugin().install(param);
        new AttributePlugin().install(param);
        new StorablePlugin().install(param);
        new ZoomPlugin().install(param);
        view.quit();
        long finish = new Date().getTime();
        if((best > 0 && (finish - start)/1000.0 < best) || best < 0) {
          best = (finish - start)/1000.0f;
        }
      }
View Full Code Here

      int i;
      System.out.println("Warmup state:");
      for(i = 0; i < 3; i++) {
        SQLite4JavaModel model = new SQLite4JavaModel();
        GraphLayoutManager layoutManager = new GraphLayoutManager();
        SwingUserInterface view = new SwingUserInterface(model, "Welcome to Visual Graph", layoutManager);
        // adding system functions--------
        new SimpleTabCloser(view);
        view.quit();
      }
      System.out.println("Stady state: It may take several minutes");
      float best = -1;
      for(i = 0; i < 5; i++) {
        SQLite4JavaModel model = new SQLite4JavaModel();
        GraphLayoutManager layoutManager = new GraphLayoutManager();
        SwingUserInterface view = new SwingUserInterface(model, "Welcome to Visual Graph", layoutManager);
        // adding system functions--------
        long start = new Date().getTime();
        new SimpleTabCloser(view);
        view.quit();
        long finish = new Date().getTime();
        if((best > 0 && (finish - start)/1000.0 < best) || best < 0) {
          best = (finish - start)/1000.0f;
        }
      }
View Full Code Here

      int i;
      System.out.println("Warmup state:");
      for(i = 0; i < 3; i++) {
        SQLite4JavaModel model = new SQLite4JavaModel();
        GraphLayoutManager layoutManager = new GraphLayoutManager();
        SwingUserInterface view = new SwingUserInterface(model, "Welcome to Visual Graph", layoutManager);
        PluginParameter param = new PluginParameter(model, view);
        // adding system functions--------
        new LookAndFeelChanger().install(param);
        view.quit();
      }
      System.out.println("Stady state: It may take several minutes");
      float best = -1;
      for(i = 0; i < 5; i++) {
        SQLite4JavaModel model = new SQLite4JavaModel();
        GraphLayoutManager layoutManager = new GraphLayoutManager();
        SwingUserInterface view = new SwingUserInterface(model, "Welcome to Visual Graph", layoutManager);
        PluginParameter param = new PluginParameter(model, view);
        // adding system functions--------
        long start = new Date().getTime();
        new LookAndFeelChanger().install(param);
        view.quit();
        long finish = new Date().getTime();
        if((best > 0 && (finish - start)/1000.0 < best) || best < 0) {
          best = (finish - start)/1000.0f;
        }
      }
View Full Code Here

      int i;
      System.out.println("Warmup state:");
      for(i = 0; i < 3; i++) {
        SQLite4JavaModel model = new SQLite4JavaModel();
        GraphLayoutManager layoutManager = new GraphLayoutManager();
        SwingUserInterface view = new SwingUserInterface(model, "Welcome to Visual Graph", layoutManager);
        PluginParameter param = new PluginParameter(model, view);
        // adding system functions--------
        new JGraphSettings().install(param);
        view.quit();
      }
      System.out.println("Stady state: It may take several minutes");
      float best = -1;
      for(i = 0; i < 5; i++) {
        SQLite4JavaModel model = new SQLite4JavaModel();
        GraphLayoutManager layoutManager = new GraphLayoutManager();
        SwingUserInterface view = new SwingUserInterface(model, "Welcome to Visual Graph", layoutManager);
        PluginParameter param = new PluginParameter(model, view);
        // adding system functions--------
        long start = new Date().getTime();
        new JGraphSettings().install(param);
        view.quit();
        long finish = new Date().getTime();
        if((best > 0 && (finish - start)/1000.0 < best) || best < 0) {
          best = (finish - start)/1000.0f;
        }
      }
View Full Code Here

      int i;
      System.out.println("Warmup state:");
      for(i = 0; i < 3; i++) {
        SQLite4JavaModel model = new SQLite4JavaModel();
        GraphLayoutManager layoutManager = new GraphLayoutManager();
        SwingUserInterface view = new SwingUserInterface(model, "Welcome to Visual Graph", layoutManager);
        PluginParameter param = new PluginParameter(model, view);
        // adding system functions--------
        new LookAndFeelChanger().install(param);
        view.quit();
      }
      System.out.println("Stady state: It may take several minutes");
      float best = -1;
      for(i = 0; i < 5; i++) {
        SQLite4JavaModel model = new SQLite4JavaModel();
        GraphLayoutManager layoutManager = new GraphLayoutManager();
        SwingUserInterface view = new SwingUserInterface(model, "Welcome to Visual Graph", layoutManager);
        PluginParameter param = new PluginParameter(model, view);
        // adding system functions--------
        long start = new Date().getTime();
        new LookAndFeelChanger().install(param);
        view.quit();
        long finish = new Date().getTime();
        if((best > 0 && (finish - start)/1000.0 < best) || best < 0) {
          best = (finish - start)/1000.0f;
        }
      }
View Full Code Here

        SwingUtilities.invokeAndWait(new Runnable() {
          @Override
          public void run() {
            try {
              GraphLayoutManager layoutManager = new GraphLayoutManager();
              SwingUserInterface view = new SwingUserInterface(model, "Welcome to Visual Graph", layoutManager);
              PluginParameter param = new PluginParameter(model, view);
              new LookAndFeelChanger().install(param);
              view.quit();
            } catch (Exception e) {
            }
          }
        });
       
       
      }
      System.out.println("Stady state: It may take several minutes");
      float best = -1;
      for(i = 0; i < 5; i++) {
        final SQLite4JavaModel model = new SQLite4JavaModel();
        long start = new Date().getTime();
        SwingUtilities.invokeAndWait(new Runnable() {
          @Override
          public void run() {
            try {
              GraphLayoutManager layoutManager = new GraphLayoutManager();
              SwingUserInterface view = new SwingUserInterface(model, "Welcome to Visual Graph", layoutManager);
              PluginParameter param = new PluginParameter(model, view);
              new LookAndFeelChanger().install(param);
              view.quit();
            } catch (Exception e) {
            }
          }
        });
        long finish = new Date().getTime();
View Full Code Here

    Thread t = new Thread(new Runnable() {
      public void run() {
        try {
          SQLite4JavaModel model = new SQLite4JavaModel();
          GraphLayoutManager layoutManager = new GraphLayoutManager();
          SwingUserInterface view = new SwingUserInterface(model, "Welcome to Visual Graph", layoutManager);
          PluginParameter param = new PluginParameter(model, view);
          // adding system functions--------
          System.out.println("Before creation of notepad plugin");
          new NotepadPlugin().install(param);
          System.out.println("After creation of notepad plugin");
          view.quit();
        } catch (Throwable ex) {
          Assert.assertTrue(ex.getMessage(), false);
        }
      }
    });
View Full Code Here

    VisualGraph.setProgressManager(new SimpleProgressManager());
    try {
      VisualGraph.run();
      SQLite4JavaModel model = new SQLite4JavaModel();
      GraphLayoutManager layoutManager = new GraphLayoutManager();
      SwingUserInterface view = new SwingUserInterface(model, "Welcome to Visual Graph", layoutManager);
      PluginParameter param = new PluginParameter(model, view);
      // adding system functions--------
      new NotepadPlugin().install(param);
      new LookAndFeelChanger().install(param);
    } catch (Throwable ex) {
View Full Code Here

TOP

Related Classes of vg.userInterface.SwingUserInterface

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.