private int xToScreenCoords(int mapCoord){
  return (int)(mapCoord * map.getScale() - map.getScrollX());
}

private int xToScreenCoords ( int mapCoord ) { return ( int ) ( mapCoord * map . getScale ( ) - map . getScrollX ( ) ) ; }
transforms coordinate in map coordinate system to screen coordinate system
