src/main/java/chalmers/pimp/controller/components/InfoPane.java
void updateMouseCoordinates(int mouseX, int mouseY, IReadOnlyViewport viewport) {
    Objects.requireNonNull(viewport);

    int x = mouseX - viewport.getX();
    int y = mouseY - viewport.getY();

    xPos.setText(Integer.toString(x));
    yPos.setText(Integer.toString(y));
  }
/**
   * Updates the values of the mouse coordinate labels.
   *
   * @param mouseX   the x-coordinate of the mouse.
   * @param mouseY   the y-coordinate of the mouse.
   * @param viewport the viewport that is currently being used.
   * @throws NullPointerException if the supplied viewport is {@code null}.
   */
Updates the values of the mouse coordinate labels.
@param mouseX   the x-coordinate of the mouse.
@param mouseY   the y-coordinate of the mouse.
@param viewport the viewport that is currently being used.
@throws NullPointerException if the supplied viewport is  null.
Updates the values of the mouse coordinate labels . @param mouseX the x - coordinate of the mouse . @param mouseY the y - coordinate of the mouse . @param viewport the viewport that is currently being used . @throws NullPointerException if the supplied viewport is null .
void updateMouseCoordinates(int mouseX, int mouseY, IReadOnlyViewport viewport) {
    Objects.requireNonNull(viewport);
    int x = mouseX - viewport.getX();
    int y = mouseY - viewport.getY();
    xPos.setText(Integer.toString(x));
    yPos.setText(Integer.toString(y));
  }
void updateMouseCoordinates ( int mouseX , int mouseY , IReadOnlyViewport viewport ) { Objects . requireNonNull ( viewport ) ; int x = mouseX - viewport . getX ( ) ; int y = mouseY - viewport . getY ( ) ; xPos . setText ( Integer . toString ( x ) ) ; yPos . setText ( Integer . toString ( y ) ) ; }
Updates the values of the mouse coordinate labels.
Updates the values of the mouse coordinate labels .