code: public static AffineTransform getWorldToScreenTransform(final MapfishMapContext mapContext) {
          return RendererUtilities.worldToScreenTransform(mapContext.toReferencedEnvelope(),
                                                          mapContext.getPaintArea());
      }
docs: Create the affine transform that maps from the world (map) projection to the pixel on the printed map.
  
  @param mapContext the map context