public class GraphStreamViewer extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
GraphStreamViewer.Label |
static class |
GraphStreamViewer.StyleSheets |
| Constructor and Description |
|---|
GraphStreamViewer(VehicleRoutingProblem vrp) |
GraphStreamViewer(VehicleRoutingProblem vrp,
VehicleRoutingProblemSolution solution) |
| Modifier and Type | Method and Description |
|---|---|
void |
display() |
GraphStreamViewer |
labelWith(GraphStreamViewer.Label label) |
GraphStreamViewer |
setCameraView(double centerX,
double centerY,
double zoomFactor)
Sets the camera-view.
|
GraphStreamViewer |
setGraphStreamFrameScalingFactor(double factor) |
GraphStreamViewer |
setRenderDelay(long ms) |
GraphStreamViewer |
setRenderShipments(boolean renderShipments) |
public GraphStreamViewer(VehicleRoutingProblem vrp)
public GraphStreamViewer(VehicleRoutingProblem vrp, VehicleRoutingProblemSolution solution)
public GraphStreamViewer labelWith(GraphStreamViewer.Label label)
public GraphStreamViewer setRenderDelay(long ms)
public GraphStreamViewer setRenderShipments(boolean renderShipments)
public GraphStreamViewer setGraphStreamFrameScalingFactor(double factor)
public GraphStreamViewer setCameraView(double centerX, double centerY, double zoomFactor)
a zoomFactor < 1 zooms in and > 1 out.
centerX - x coordinate of centercenterY - y coordinate of centerzoomFactor - zoom factorpublic void display()
Copyright © 2013–2020. All rights reserved.