Class CoverageRenderer


  • public class CoverageRenderer
    extends Object
    ft2.coverage widget for displaying using Java2D API. more or less the view in MVC
    Since:
    12/27/12
    • Constructor Detail

      • CoverageRenderer

        public CoverageRenderer​(ucar.util.prefs.PreferencesExt store)
        constructor
    • Method Detail

      • getColorScale

        public ColorScale getColorScale()
      • setColorScale

        public void setColorScale​(ColorScale cs)
      • setCoverage

        public ucar.nc2.ui.coverage2.DataState setCoverage​(ucar.nc2.ft2.coverage.CoverageCollection coverageDataset,
                                                           ucar.nc2.ft2.coverage.Coverage grid)
      • getDataProjection

        public ucar.unidata.geoloc.ProjectionImpl getDataProjection()
      • setDataProjection

        public void setDataProjection​(ucar.unidata.geoloc.ProjectionImpl dataProjection)
      • getDisplayProjection

        public ucar.unidata.geoloc.ProjectionImpl getDisplayProjection()
      • setViewProjection

        public void setViewProjection​(ucar.unidata.geoloc.ProjectionImpl project)
      • setDrawBB

        public void setDrawBB​(boolean drawBB)
      • setDrawGridLines

        public void setDrawGridLines​(boolean drawGrid)
      • setDrawContours

        public void setDrawContours​(boolean drawContours)
      • setDrawContourLabels

        public void setDrawContourLabels​(boolean drawContourLabels)
      • getLevel

        public int getLevel()
      • setLevel

        public void setLevel​(int level)
      • getTime

        public int getTime()
      • setTime

        public void setTime​(int time)
      • setRunTime

        public void setRunTime​(int runtime)
      • setEnsemble

        public void setEnsemble​(int ensemble)
      • setSlice

        public void setSlice​(int slice)
      • setHorizStride

        public void setHorizStride​(int horizStride)
      • getXYvalueStr

        public String getXYvalueStr​(ucar.unidata.geoloc.ProjectionPoint loc)
      • renderPlanView

        public void renderPlanView​(Graphics2D g,
                                   AffineTransform dFromN)
        Do the rendering to the given Graphics2D object.
        Parameters:
        g - Graphics2D object: has clipRect and AffineTransform set.
        dFromN - transforms "Normalized Device" to Device coordinates