Package ucar.nc2.ui.coverage2
Class CoverageRenderer
- java.lang.Object
-
- ucar.nc2.ui.coverage2.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 Summary
Constructors Constructor Description CoverageRenderer(ucar.util.prefs.PreferencesExt store)constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ColorScalegetColorScale()ucar.unidata.geoloc.ProjectionImplgetDataProjection()ucar.unidata.geoloc.ProjectionImplgetDisplayProjection()intgetLevel()intgetTime()StringgetXYvalueStr(ucar.unidata.geoloc.ProjectionPoint loc)voidrenderPlanView(Graphics2D g, AffineTransform dFromN)Do the rendering to the given Graphics2D object.voidsetColorScale(ColorScale cs)ucar.nc2.ui.coverage2.DataStatesetCoverage(ucar.nc2.ft2.coverage.CoverageCollection coverageDataset, ucar.nc2.ft2.coverage.Coverage grid)voidsetDataMinMaxType(ColorScale.MinMaxType type)voidsetDataProjection(ucar.unidata.geoloc.ProjectionImpl dataProjection)voidsetDrawBB(boolean drawBB)voidsetDrawContourLabels(boolean drawContourLabels)voidsetDrawContours(boolean drawContours)voidsetDrawGridLines(boolean drawGrid)voidsetEnsemble(int ensemble)voidsetHorizStride(int horizStride)voidsetLevel(int level)voidsetRunTime(int runtime)voidsetSlice(int slice)voidsetTime(int time)voidsetViewProjection(ucar.unidata.geoloc.ProjectionImpl project)
-
-
-
Method Detail
-
getColorScale
public ColorScale getColorScale()
-
setColorScale
public void setColorScale(ColorScale cs)
-
setDataMinMaxType
public void setDataMinMaxType(ColorScale.MinMaxType type)
-
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
-
-