1
0
Fork 0
mirror of https://github.com/graphhopper/jsprit.git synced 2020-01-24 07:45:05 +01:00

play with camera-view

This commit is contained in:
Stefan Schroeder 2013-12-12 11:57:06 +01:00
parent e36bad438b
commit 6a439b470d
3 changed files with 3 additions and 3 deletions

View file

@ -265,7 +265,7 @@ public class BicycleMessenger {
SolutionPrinter.print(bicycleMessengerProblem, Solutions.bestOf(solutions), Print.VERBOSE); SolutionPrinter.print(bicycleMessengerProblem, Solutions.bestOf(solutions), Print.VERBOSE);
new GraphStreamViewer(bicycleMessengerProblem, Solutions.bestOf(solutions)).setRenderDelay(50).setRenderShipments(true).display(); new GraphStreamViewer(bicycleMessengerProblem, Solutions.bestOf(solutions)).setCamerView(12500, 58000, 0.3).setRenderDelay(150).display();
} }

View file

@ -108,7 +108,7 @@ public class PickupAndDeliveryExample2 {
plotter.plot("output/pd_christophides_vrpnc1_solution.png","pd_vrpnc1"); plotter.plot("output/pd_christophides_vrpnc1_solution.png","pd_vrpnc1");
new GraphStreamViewer(vrp, solution).setRenderDelay(100).display(); new GraphStreamViewer(vrp, solution).setRenderDelay(200).display();
} }

View file

@ -106,7 +106,7 @@ public class SimpleExample {
*/ */
// SolutionPlotter.plotSolutionAsPNG(problem, bestSolution, "output/solution.png", "solution"); // SolutionPlotter.plotSolutionAsPNG(problem, bestSolution, "output/solution.png", "solution");
new GraphStreamViewer(problem, bestSolution).setRenderDelay(100).display(); new GraphStreamViewer(problem, bestSolution).setCamerView(10, 10, 0.25).setRenderDelay(100).display();
} }
} }