src/main/java/chalmers/pimp/service/MouseStatusCreationService.java
public static MouseStatus createMouseStatus(MouseEvent event, IModel model) {
    Objects.requireNonNull(event);
    Objects.requireNonNull(model);

    MouseButtonID buttonID = MouseButtonConverterService.getMouseButtonID(event.getButton());

    int tx = getTranslatedX(event, model.getViewport());
    int ty = getTranslatedY(event, model.getViewport());

    return new MouseStatus(tx, ty, buttonID);
  }
/**
   * Creates and returns a mouse status instance that describes the supplied mouse event.
   *
   * @param event the mouse event that will be "copied".
   * @param model the associated model instance.
   * @return a mouse status instance that describes the supplied mouse event.
   * @throws NullPointerException if any references are {@code null}.
   */
Creates and returns a mouse status instance that describes the supplied mouse event.
@param event the mouse event that will be "copied".
@param model the associated model instance.
@return a mouse status instance that describes the supplied mouse event.
@throws NullPointerException if any references are  null.
Creates and returns a mouse status instance that describes the supplied mouse event . @param event the mouse event that will be " copied " . @param model the associated model instance . @return a mouse status instance that describes the supplied mouse event . @throws NullPointerException if any references are null .
public static MouseStatus createMouseStatus(MouseEvent event, IModel model) {
    Objects.requireNonNull(event);
    Objects.requireNonNull(model);
    MouseButtonID buttonID = MouseButtonConverterService.getMouseButtonID(event.getButton());
    int tx = getTranslatedX(event, model.getViewport());
    int ty = getTranslatedY(event, model.getViewport());
    return new MouseStatus(tx, ty, buttonID);
  }
public static MouseStatus createMouseStatus ( MouseEvent event , IModel model ) { Objects . requireNonNull ( event ) ; Objects . requireNonNull ( model ) ; MouseButtonID buttonID = MouseButtonConverterService . getMouseButtonID ( event . getButton ( ) ) ; int tx = getTranslatedX ( event , model . getViewport ( ) ) ; int ty = getTranslatedY ( event , model . getViewport ( ) ) ; return new MouseStatus ( tx , ty , buttonID ) ; }
Creates and returns a mouse status instance that describes the supplied mouse event.
Creates and returns a mouse status instance that describes the supplied mouse event .