mirror of
https://github.com/graphhopper/jsprit.git
synced 2020-01-24 07:45:05 +01:00
modified method .plotShipments(..) in analysis.toolbox.Plotter to allow
chaining
This commit is contained in:
parent
0bcfc142d5
commit
40a1e45a0d
1 changed files with 22 additions and 21 deletions
|
|
@ -105,21 +105,6 @@ public class Plotter {
|
|||
|
||||
private BoundingBox boundingBox = null;
|
||||
|
||||
public Plotter setShowFirstActivity(boolean show){
|
||||
showFirstActivity = show;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Plotter setLabel(Label label){
|
||||
this.label = label;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Plotter setBoundingBox(double minX, double minY, double maxX, double maxY){
|
||||
boundingBox = new BoundingBox(minX,minY,maxX,maxY);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Plotter(VehicleRoutingProblem vrp) {
|
||||
super();
|
||||
this.vrp = vrp;
|
||||
|
|
@ -139,6 +124,26 @@ public class Plotter {
|
|||
plotSolutionAsWell = true;
|
||||
}
|
||||
|
||||
public Plotter setShowFirstActivity(boolean show){
|
||||
showFirstActivity = show;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Plotter setLabel(Label label){
|
||||
this.label = label;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Plotter setBoundingBox(double minX, double minY, double maxX, double maxY){
|
||||
boundingBox = new BoundingBox(minX,minY,maxX,maxY);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Plotter plotShipments(boolean plotShipments) {
|
||||
this.plotShipments = plotShipments;
|
||||
return this;
|
||||
}
|
||||
|
||||
public void plot(String pngFileName, String plotTitle){
|
||||
String filename = pngFileName;
|
||||
if(!pngFileName.endsWith(".png")) filename += ".png";
|
||||
|
|
@ -576,8 +581,4 @@ public class Plotter {
|
|||
// };
|
||||
}
|
||||
|
||||
public void plotShipments(boolean plotShipments) {
|
||||
this.plotShipments = plotShipments;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue