src/main/java/chalmers/pimp/view/GraphicsHandler.java
private void drawCanvasArea() {
    IReadOnlyViewport viewport = model.getViewport();

    renderer.setFillColor(Colors.WHITE);

    int x = viewport.getTranslatedX(0);
    int y = viewport.getTranslatedY(0);
    int width = Math.max(model.getWidth(), renderer.getCanvasWidth());
    int height = Math.max(model.getHeight(), renderer.getCanvasHeight());

    renderer.fillRect(x, y, width, height);
  }
/**
   * Draws the model canvas area. This method should be called <b>before</b> rendering the model.
   */
Draws the model canvas area. This method should be called before rendering the model.
Draws the model canvas area . This method should be called before rendering the model .
private void drawCanvasArea() {
    IReadOnlyViewport viewport = model.getViewport();
    renderer.setFillColor(Colors.WHITE);
    int x = viewport.getTranslatedX(0);
    int y = viewport.getTranslatedY(0);
    int width = Math.max(model.getWidth(), renderer.getCanvasWidth());
    int height = Math.max(model.getHeight(), renderer.getCanvasHeight());
    renderer.fillRect(x, y, width, height);
  }
private void drawCanvasArea ( ) { IReadOnlyViewport viewport = model . getViewport ( ) ; renderer . setFillColor ( Colors . WHITE ) ; int x = viewport . getTranslatedX ( 0 ) ; int y = viewport . getTranslatedY ( 0 ) ; int width = Math . max ( model . getWidth ( ) , renderer . getCanvasWidth ( ) ) ; int height = Math . max ( model . getHeight ( ) , renderer . getCanvasHeight ( ) ) ; renderer . fillRect ( x , y , width , height ) ; }
Draws the model canvas area.
Draws the model canvas area .