OptaPlanner distribution 6.2.0.Beta2

org.optaplanner.examples.vehiclerouting.swingui
Class VehicleRoutingSolutionPainter

java.lang.Object
  extended by org.optaplanner.examples.vehiclerouting.swingui.VehicleRoutingSolutionPainter

public class VehicleRoutingSolutionPainter
extends Object


Constructor Summary
VehicleRoutingSolutionPainter()
           
 
Method Summary
 Graphics2D createCanvas(double width, double height)
           
protected  void drawRoute(Graphics2D g, int x1, int y1, int x2, int y2, boolean straight)
           
 BufferedImage getCanvas()
           
 LatitudeLongitudeTranslator getTranslator()
           
 void reset(VehicleRoutingSolution solution, Dimension size, ImageObserver imageObserver)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VehicleRoutingSolutionPainter

public VehicleRoutingSolutionPainter()
Method Detail

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)

OptaPlanner distribution 6.2.0.Beta2

Copyright © 2006-2014 JBoss by Red Hat. All Rights Reserved.