public class GraphStreamViewer extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
GraphStreamViewer.Label |
static class |
GraphStreamViewer.StyleSheets |
| Modifier and Type | Field and Description |
|---|---|
static String |
STYLESHEET |
| Constructor and Description |
|---|
GraphStreamViewer(VehicleRoutingProblem vrp) |
GraphStreamViewer(VehicleRoutingProblem vrp,
VehicleRoutingProblemSolution solution) |
| Modifier and Type | Method and Description |
|---|---|
static org.graphstream.ui.swingViewer.ViewPanel |
createEmbeddedView(org.graphstream.graph.Graph graph,
double scaling) |
static org.graphstream.graph.Graph |
createMultiGraph(String name,
String style) |
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 static String STYLESHEET
public GraphStreamViewer(VehicleRoutingProblem vrp)
public GraphStreamViewer(VehicleRoutingProblem vrp, VehicleRoutingProblemSolution solution)
public static org.graphstream.graph.Graph createMultiGraph(String name, String style)
public static org.graphstream.ui.swingViewer.ViewPanel createEmbeddedView(org.graphstream.graph.Graph graph,
double scaling)
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–2019. All rights reserved.