org.optaplanner.examples.vehiclerouting.swingui
Class VehicleRoutingSolutionPainter
java.lang.Object
org.optaplanner.examples.vehiclerouting.swingui.VehicleRoutingSolutionPainter
public class VehicleRoutingSolutionPainter
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
VehicleRoutingSolutionPainter
public VehicleRoutingSolutionPainter()
getCanvas
public BufferedImage getCanvas()
getTranslator
public LatitudeLongitudeTranslator getTranslator()
reset
public void reset(VehicleRoutingSolution solution,
Dimension size,
ImageObserver imageObserver)
drawRoute
protected void drawRoute(Graphics2D g,
int x1,
int y1,
int x2,
int y2,
boolean straight)
createCanvas
public Graphics2D createCanvas(double width,
double height)
Copyright © 2006-2014 JBoss by Red Hat. All Rights Reserved.