public class GridRenderer
extends java.lang.Object
Constructor and Description |
---|
GridRenderer() |
Modifier and Type | Method and Description |
---|---|
void |
clear() |
int |
findLevelCoordElement(double pos)
find the level (z) index that is represented by this point
|
int |
findSliceFromPoint(ProjectionPoint pp) |
ColorScale |
getColorScale()
get the current ColorScale
|
Array |
getCurrentHorizDataSlice() |
ProjectionImpl |
getDataProjection()
get the current GridDatatype data projection
|
boolean |
getDrawContourLabels() |
boolean |
getDrawContours() |
boolean |
getDrawGrid() |
int |
getEnsemble() |
GridDatatype |
getGeoGrid()
get the current GridDatatype
|
int |
getHorizStride() |
int |
getLevel() |
ProjectionImpl |
getProjection()
get the current display projection
|
int |
getRunTime() |
int |
getSlice() |
int |
getTime() |
java.lang.String |
getXYvalueStr(ProjectionPoint loc)
Get the data value at this projection (x,y) point.
|
java.lang.String |
getYZpositionStr(java.awt.geom.Point2D loc)
Get the (y,z) position from the vertical view coordinates.
|
java.lang.String |
getYZvalueStr(java.awt.geom.Point2D loc)
find the data value at this point
|
void |
renderPlanView(java.awt.Graphics2D g,
java.awt.geom.AffineTransform dFromN)
Do the rendering to the given Graphics2D object.
|
void |
renderVertView(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 |
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 |
setGeoGrid(GridDatatype grid)
set the Grid
|
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 ColorScale getColorScale()
public void setColorScale(ColorScale cs)
public void setDataMinMaxType(ColorScale.MinMaxType type)
type
- MinMaxTypepublic GridDatatype getGeoGrid()
public void clear()
public void setGeoGrid(GridDatatype grid)
public Array getCurrentHorizDataSlice()
public ProjectionImpl getDataProjection()
public ProjectionImpl getProjection()
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 int findLevelCoordElement(double pos)
pos
- coord in data z coordinate space.public int findSliceFromPoint(ProjectionPoint pp)
pp
- public java.lang.String getXYvalueStr(ProjectionPoint loc)
loc
- : point in display projection coordinates (plan view)public java.lang.String getYZpositionStr(java.awt.geom.Point2D loc)
loc
- : point in display projection coordinates (vertical view)public java.lang.String getYZvalueStr(java.awt.geom.Point2D loc)
loc
- : point in display projection coordinates (vertical view)public void renderVertView(java.awt.Graphics2D g, java.awt.geom.AffineTransform dFromN)
g
- Graphics2D object: has clipRect and AffineTransform set.dFromN
- transforms "Normalized Device" to Device coordinatespublic void renderPlanView(java.awt.Graphics2D g, java.awt.geom.AffineTransform dFromN) throws java.io.IOException
g
- Graphics2D object: has clipRect and AffineTransform set.dFromN
- transforms "Normalized Device" to Device coordinatesjava.io.IOException