public void renderPlanView ( java . awt . Graphics2D g , AffineTransform dFromN ) { if ( ( dataState . grid == null ) || ( colorScale == null ) || ( drawProjection == null ) ) return ; if ( ! drawGrid && ! drawContours ) return ; // no anitaliasing g . setRenderingHint ( RenderingHints . KEY_ANTIALIASING , RenderingHints . VALUE_ANTIALIAS_OFF ) ; dataH = readHSlice ( wantLevel , wantTime , wantEnsemble , wantRunTime ) ; if ( dataH == null ) return ; setColorScaleParams ( ) ; if ( drawGrid ) drawGridHoriz ( g , dataH ) ; //if (drawContours) // drawContours(g, dataH.transpose(0, 1), dFromN); if ( drawGridLines ) drawGridLines ( g , dataH ) ; if ( drawBB ) drawGridBB ( g , this . dataState . coverageDataset . getLatlonBoundingBox ( ) ) ; }
Do the rendering to the given Graphics2D object .