* @param g What to draw on.
*/
private void drawTopLayer(final Graphics2D g)
{
this.setRenderingQualityLow(g);
final RobotPathModel pathModel = this.robotPathModel;
if (pathModel != null)
{
if (this.drawPathFirst)
{
g.setPaint(this.painter.getRunFirst());
this.drawPath(g, pathModel.getPathFirst(), this.csm.getWallWidth(), false);
}
if (this.drawPathBest)
{
g.setPaint(this.painter.getRunBest());
this.drawPath(g, pathModel.getPathBest(), -this.csm.getWallWidth(), false);
}
if (this.drawPathCurrent)
{
g.setPaint(this.painter.getRunCurrent());
this.drawPath(g, pathModel.getPathRecent(), 0, true);
}
}
if (this.drawUnderstanding)
{
this.drawUnderstanding(g);