Package vg.userInterface.jgraphx

Examples of vg.userInterface.jgraphx.mxLayoutsRegister$Circle


        CurvedGeometryFactory factory;
        if (arcParameters != null && arcParameters.getLinearizationTolerance() != null) {
            double tolerance = Double.MAX_VALUE;
            if (cs != null) {
                CircularArc arc = CurvedGeometries.getArc(cs, 0);
                Circle c = new Circle(arc.getCenter(), arc.getRadius());
                tolerance = arcParameters.getLinearizationTolerance().getTolerance(c);
            }
            factory = new CurvedGeometryFactory(gFactory, tolerance);
        } else if (gFactory instanceof CurvedGeometryFactory) {
            factory = (CurvedGeometryFactory) gFactory;
View Full Code Here


        Coordinate c1 = circleCoordinates[0];
        Coordinate c2 = circleCoordinates[1];
        Coordinate c3 = circleCoordinates[2];

        Circle circle = new Circle(c1, c2, c3);
        double tolerance = arcParameters.getLinearizationTolerance().getTolerance(circle);
        Coordinate[] resultCoordinates = Circle.linearizeCircle(c1, c2, c3, tolerance);

        LineString resultLineString = gFactory.createLineString(resultCoordinates);
View Full Code Here

            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

        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);
View Full Code Here

TOP

Related Classes of vg.userInterface.jgraphx.mxLayoutsRegister$Circle

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.