src/main/java/chalmers/pimp/view/GraphicsHandler.java
private void fillCanvasSurroundingArea(int vx, int vy, int modelWidth, int modelHeight) {
    final int canvasWidth = renderer.getCanvasWidth();
    final int canvasHeight = renderer.getCanvasHeight();

    renderer.setFillColor(Colors.DARK_GRAY);

    // left hand side
    renderer.fillRect(0, 0, vx, canvasHeight);

    // right hand side
    renderer.fillRect((vx + modelWidth), 0, (canvasWidth - (vx + modelWidth)), canvasHeight);

    // top
    renderer.fillRect(0, 0, canvasWidth, vy);

    // bottom
    renderer.fillRect(0, (vy + modelHeight), canvasWidth, (canvasHeight - (vy + modelHeight)));
  }
/**
   * Fills the surrounding area of the model canvas. This method should be called <b>after</b>
   * rendering the model.
   *
   * @param vx          the x-coordinate of the viewport.
   * @param vy          the y-coordinate of the viewport.
   * @param modelWidth  the width of the model canvas.
   * @param modelHeight the height of the model canvas.
   */
Fills the surrounding area of the model canvas. This method should be called after
rendering the model.

@param vx          the x-coordinate of the viewport.
@param vy          the y-coordinate of the viewport.
@param modelWidth  the width of the model canvas.
@param modelHeight the height of the model canvas.
Fills the surrounding area of the model canvas . This method should be called after rendering the model . @param vx the x - coordinate of the viewport . @param vy the y - coordinate of the viewport . @param modelWidth the width of the model canvas . @param modelHeight the height of the model canvas .
private void fillCanvasSurroundingArea(int vx, int vy, int modelWidth, int modelHeight) {
    final int canvasWidth = renderer.getCanvasWidth();
    final int canvasHeight = renderer.getCanvasHeight();
    renderer.setFillColor(Colors.DARK_GRAY);
    renderer.fillRect(0, 0, vx, canvasHeight);
    renderer.fillRect((vx + modelWidth), 0, (canvasWidth - (vx + modelWidth)), canvasHeight);
    renderer.fillRect(0, 0, canvasWidth, vy);
    renderer.fillRect(0, (vy + modelHeight), canvasWidth, (canvasHeight - (vy + modelHeight)));
  }
private void fillCanvasSurroundingArea ( int vx , int vy , int modelWidth , int modelHeight ) { final int canvasWidth = renderer . getCanvasWidth ( ) ; final int canvasHeight = renderer . getCanvasHeight ( ) ; renderer . setFillColor ( Colors . DARK_GRAY ) ; renderer . fillRect ( 0 , 0 , vx , canvasHeight ) ; renderer . fillRect ( ( vx + modelWidth ) , 0 , ( canvasWidth - ( vx + modelWidth ) ) , canvasHeight ) ; renderer . fillRect ( 0 , 0 , canvasWidth , vy ) ; renderer . fillRect ( 0 , ( vy + modelHeight ) , canvasWidth , ( canvasHeight - ( vy + modelHeight ) ) ) ; }
Fills the surrounding area of the model canvas.
Fills the surrounding area of the model canvas .
// left hand side // right hand side // top // bottom