Package vg.model

Examples of vg.model.SQLite4JavaModel


      VisualGraph.run();
      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--------
View Full Code Here


  }
 
  public void openGraph_pcg_attr1_graphml() {
    try {
      System.out.println("\n[TestSuite1.openGraph_pcg_attr1_graphml]");
      SQLite4JavaModel model = new SQLite4JavaModel();
      System.out.println("Warmup state: opening of 3 graphs");
      CommandOpener.openFile("../Visual Graph/example/Attributes.graphml", model);
      CommandOpener.openFile("../Visual Graph/example/Attributes.graphml", model);
      CommandOpener.openFile("../Visual Graph/example/Attributes.graphml", model);
      System.out.println("Stady state: It may take several minutes");
      float best = -1;
      for(int i = 0; i < 10; i++) {
        long start = new Date().getTime();
        int id = CommandOpener.openFile("../Visual Graph/example/pcg_attr1.graphml", model);
        if(id < 0) {
          model.quit();
          Report.addRecord("TestSuite1", "pcg_attr1_graphml", "Error: Return value < 0", "sec");
          Assert.assertTrue("Error: Return value < 0", false);
          return;
        }
        long finish = new Date().getTime();
        if((best > 0 && (finish - start)/1000.0 < best) || best < 0) {
          best = (finish - start)/1000.0f;
        }
      }
      model.quit();
      Report.addRecord("TestSuite1", "pcg_attr1_graphml", Float.valueOf(best).toString(), "sec");
    } catch (Throwable ex) {
      ex.printStackTrace();
      Report.addRecord("TestSuite1", "pcg_attr1_graphml", "Exception: " + ex.getMessage(), "");
      Assert.assertTrue(ex.getMessage(), false);
View Full Code Here

    }
  }
  public void openGraph_big_gml() {
    try {
      System.out.println("\n[TestSuite1.openGraph_big_gml]");
      SQLite4JavaModel model = new SQLite4JavaModel();
      System.out.println("Warmup state: opening of 3 graphs");
      CommandOpener.openFile("../Visual Graph/example/Attributes.graphml", model);
      CommandOpener.openFile("../Visual Graph/example/Attributes.graphml", model);
      CommandOpener.openFile("../Visual Graph/example/Attributes.graphml", model);
      System.out.println("Stady state: It may take several minutes");
      float best = -1;
      for(int i = 0; i < 10; i++) {
        long start = new Date().getTime();
        int id = CommandOpener.openFile("../Visual Graph/example/Big.gml", model);
        if(id < 0) {
          model.quit();
          Report.addRecord("TestSuite1", "big_gml", "Error: Return value < 0", "sec");
          Assert.assertTrue("Error: Return value < 0", false);
          return;
        }
        long finish = new Date().getTime();
        if((best > 0 && (finish - start)/1000.0 < best) || best < 0) {
          best = (finish - start)/1000.0f;
        }
      }
      model.quit();
      Report.addRecord("TestSuite1", "big_gml", Float.valueOf(best).toString(), "sec");
    } catch (Throwable ex) {
      ex.printStackTrace();
      Report.addRecord("TestSuite1", "big_gml", "Exception: " + ex.getMessage(), "");
      Assert.assertTrue(ex.getMessage(), false);
View Full Code Here

    try {
      System.out.println("\n[CreatingModule.creatingAllModules]");
      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();
View Full Code Here

    try {
      System.out.println("\n[CreatingModule.creatingSimpleTabCloser]");
      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 Full Code Here

    try {
      System.out.println("\n[CreatingModule.creatingLookAndFeelChanger]");
      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();
View Full Code Here

    try {
      System.out.println("\n[CreatingModule.creatingGraphSettings]");
      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();
View Full Code Here

      System.out.println("\n[CreatingModule.StyleMetalApplying]");
      VisualGraph.config.setProperty(LookAndFeelChanger.CONF_STYLE, "metal");
      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();
View Full Code Here

      System.out.println("\n[CreatingModule.StyleSubstanceApplying]");
      VisualGraph.config.setProperty(LookAndFeelChanger.CONF_STYLE, "Business Black Steel");
      int i;
      System.out.println("Warmup state:");
      for(i = 0; i < 3; i++) {
        final SQLite4JavaModel model = new SQLite4JavaModel();
        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 {
View Full Code Here

  public void createNotepadInNotEDT() {
    System.out.println("\n[notepad.TestSuite1.createNotepadInNotEDT]");
    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");
View Full Code Here

TOP

Related Classes of vg.model.SQLite4JavaModel

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.