src/main/java/chalmers/pimp/model/tools/RasterPen.java
private IPixel createPixel(MouseStatus mouseStatus) {
    Objects.requireNonNull(mouseStatus);
    int x = model.getViewport().getTranslatedX(mouseStatus.getX());
    int y = model.getViewport().getTranslatedY(mouseStatus.getY());
    Point tempPoint = new Point(x, y);
    tempPoint = getRotatedPoint(tempPoint);
    return PixelFactory.createPixel(tempPoint.getX(), tempPoint.getY(), getColor());
  }
/**
   * Creates a pixel based on the supplied mouse status.
   *
   * @param mouseStatus the mouse status that will be used.
   * @return a pixel based on the supplied mouse status.
   * @throws NullPointerException if the supplied mouse status is {@code null}.
   */
Creates a pixel based on the supplied mouse status.
@param mouseStatus the mouse status that will be used.
@return a pixel based on the supplied mouse status.
@throws NullPointerException if the supplied mouse status is  null.
Creates a pixel based on the supplied mouse status . @param mouseStatus the mouse status that will be used . @return a pixel based on the supplied mouse status . @throws NullPointerException if the supplied mouse status is null .
private IPixel createPixel(MouseStatus mouseStatus) {
    Objects.requireNonNull(mouseStatus);
    int x = model.getViewport().getTranslatedX(mouseStatus.getX());
    int y = model.getViewport().getTranslatedY(mouseStatus.getY());
    Point tempPoint = new Point(x, y);
    tempPoint = getRotatedPoint(tempPoint);
    return PixelFactory.createPixel(tempPoint.getX(), tempPoint.getY(), getColor());
  }
private IPixel createPixel ( MouseStatus mouseStatus ) { Objects . requireNonNull ( mouseStatus ) ; int x = model . getViewport ( ) . getTranslatedX ( mouseStatus . getX ( ) ) ; int y = model . getViewport ( ) . getTranslatedY ( mouseStatus . getY ( ) ) ; Point tempPoint = new Point ( x , y ) ; tempPoint = getRotatedPoint ( tempPoint ) ; return PixelFactory . createPixel ( tempPoint . getX ( ) , tempPoint . getY ( ) , getColor ( ) ) ; }
Creates a pixel based on the supplied mouse status.
Creates a pixel based on the supplied mouse status .