public class CoverageRenderer
extends java.lang.Object
Constructor and Description |
---|
CoverageRenderer(PreferencesExt store)
constructor
|
Modifier and Type | Method and Description |
---|---|
ColorScale |
getColorScale()
get the current ColorScale
|
Array |
getCurrentHorizDataSlice() |
ProjectionImpl |
getDataProjection()
get the current GridDatatype data projection
|
ProjectionImpl |
getDisplayProjection()
get the current display projection
|
boolean |
getDrawContourLabels() |
boolean |
getDrawContours() |
boolean |
getDrawGrid() |
int |
getEnsemble() |
int |
getHorizStride() |
int |
getLevel() |
int |
getRunTime() |
int |
getSlice() |
int |
getTime() |
void |
renderPlanView(java.awt.Graphics2D g,
java.awt.geom.AffineTransform dFromN)
Do the rendering to the given Graphics2D object.
|
void |
setColorScale(ColorScale cs)
set the ColorScale to use
|
void |
setCoverage(Coverage grid)
set the Grid
|
void |
setDataMinMaxType(ColorScale.MinMaxType type)
set the ColorScale data min/max type
|
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 |
setProjection(ProjectionImpl project)
set the Projection to use for drawing
|
void |
setRunTime(int runtime) |
void |
setSlice(int slice) |
void |
setTime(int time) |
public CoverageRenderer(PreferencesExt store)
public ColorScale getColorScale()
public void setColorScale(ColorScale cs)
public void setDataMinMaxType(ColorScale.MinMaxType type)
type
- MinMaxTypepublic void setCoverage(Coverage grid)
public Array getCurrentHorizDataSlice()
public ProjectionImpl getDataProjection()
public ProjectionImpl getDisplayProjection()
public void setProjection(ProjectionImpl project)
public boolean getDrawGrid()
public void setDrawGridLines(boolean drawGrid)
public boolean getDrawContours()
public void setDrawContours(boolean drawContours)
public boolean getDrawContourLabels()
public void setDrawContourLabels(boolean drawContourLabels)
public int getLevel()
public void setLevel(int level)
public int getTime()
public void setTime(int time)
public int getRunTime()
public void setRunTime(int runtime)
public int getEnsemble()
public void setEnsemble(int ensemble)
public int getSlice()
public void setSlice(int slice)
public int getHorizStride()
public void setHorizStride(int horizStride)
public void renderPlanView(java.awt.Graphics2D g, java.awt.geom.AffineTransform dFromN)
g
- Graphics2D object: has clipRect and AffineTransform set.dFromN
- transforms "Normalized Device" to Device coordinates