question: private void paintRoute ( Graphics2D graphics , JXMapViewer viewer , PlottableEntity entity ) { Set < Plottable > plottables = entity . getPlottables ( ) ; if ( plottables . size ( ) > 1 ) { graphics . setColor ( Color . BLACK ) ; graphics . setStroke ( new BasicStroke ( 3 ) ) ; drawRoute ( plottables , graphics , viewer ) ; graphics . setColor ( entity . getColor ( ) ) ; graphics . setStroke ( new BasicStroke ( 1 ) ) ; drawRoute ( plottables , graphics , viewer ) ; } }
target:  Paints a two-tone route from the entity's list of plottables (locations). using black as a wider background route, and the entity's preferred color as a narrower foreground route.