public class ScalarFieldDrawing
extends usf.saav.common.mvc.ViewComponent.Default
implements usf.saav.common.mvc.ViewComponent
| Constructor and Description |
|---|
ScalarFieldDrawing(usf.saav.common.mvc.swing.TGraphics papplet)
Instantiates a new scalar field drawing.
|
| Modifier and Type | Method and Description |
|---|---|
void |
draw(usf.saav.common.mvc.swing.TGraphics g) |
void |
drawLegend(usf.saav.common.mvc.swing.TGraphics g) |
void |
setColormap(usf.saav.common.colormap.DivergentColormap cm)
Sets the colormap.
|
void |
setScalarField(ScalarField2D _sf)
Sets the scalar field.
|
void |
setTranslation(int tx,
int ty)
Sets the translation.
|
void |
update() |
getHeight, getPosition, getU0, getV0, getWidth, inRange, setPosition, setPositiondisable, enable, isEnabled, setEnabled, setupequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpublic ScalarFieldDrawing(usf.saav.common.mvc.swing.TGraphics papplet)
papplet - the pappletpublic void setColormap(usf.saav.common.colormap.DivergentColormap cm)
cm - the new colormappublic void setTranslation(int tx,
int ty)
tx - the txty - the typublic void setScalarField(ScalarField2D _sf)
_sf - the new scalar fieldpublic void update()
update in interface usf.saav.common.mvc.BasicComponentupdate in class usf.saav.common.mvc.BasicComponent.Defaultpublic void draw(usf.saav.common.mvc.swing.TGraphics g)
draw in interface usf.saav.common.mvc.ViewComponentdraw in class usf.saav.common.mvc.ViewComponent.Defaultpublic void drawLegend(usf.saav.common.mvc.swing.TGraphics g)
drawLegend in interface usf.saav.common.mvc.ViewComponentdrawLegend in class usf.saav.common.mvc.ViewComponent.Default