private void paintAreasBoundaries(Graphics2D g2d) {
        if (drawAreaBoundaries) {
            g2d.setColor(Color.GRAY);
            final float dash1[] = { 4.0f };
            final BasicStroke dashed = new BasicStroke(1f, BasicStroke.CAP_BUTT, BasicStroke.JOIN_MITER, 5.0f, dash1,
                    0.0f);
            g2d.setStroke(dashed);
            // draw the boundaries of the areas
            for (final DrawableArea area : simulationAreas) {
                g2d.draw(area.getClip());
            }
            g2d.setStroke(new BasicStroke());
        }
    }