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(PreferencesExt store)
constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ColorScale
getColorScale()
ProjectionImpl
getDataProjection()
ProjectionImpl
getDisplayProjection()
int
getLevel()
int
getTime()
String
getXYvalueStr(ProjectionPoint loc)
void
renderPlanView(Graphics2D g, AffineTransform dFromN)
Do the rendering to the given Graphics2D object.void
setColorScale(ColorScale cs)
ucar.nc2.ui.coverage2.DataState
setCoverage(CoverageCollection coverageDataset, Coverage grid)
void
setDataMinMaxType(ColorScale.MinMaxType type)
void
setDataProjection(ProjectionImpl dataProjection)
void
setDrawBB(boolean drawBB)
void
setDrawContourLabels(boolean drawContourLabels)
void
setDrawContours(boolean drawContours)
void
setDrawGridLines(boolean drawGrid)
void
setEnsemble(int ensemble)
void
setHorizStride(int horizStride)
void
setLevel(int level)
void
setRunTime(int runtime)
void
setSlice(int slice)
void
setTime(int time)
void
setViewProjection(ProjectionImpl project)
-
-
-
Constructor Detail
-
CoverageRenderer
public CoverageRenderer(PreferencesExt store)
constructor
-
-
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(CoverageCollection coverageDataset, Coverage grid)
-
getDataProjection
public ProjectionImpl getDataProjection()
-
setDataProjection
public void setDataProjection(ProjectionImpl dataProjection)
-
getDisplayProjection
public ProjectionImpl getDisplayProjection()
-
setViewProjection
public void setViewProjection(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(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
-
-