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, setPosition
disable, enable, isEnabled, setEnabled, setup
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public 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.BasicComponent
update
in class usf.saav.common.mvc.BasicComponent.Default
public void draw(usf.saav.common.mvc.swing.TGraphics g)
draw
in interface usf.saav.common.mvc.ViewComponent
draw
in class usf.saav.common.mvc.ViewComponent.Default
public void drawLegend(usf.saav.common.mvc.swing.TGraphics g)
drawLegend
in interface usf.saav.common.mvc.ViewComponent
drawLegend
in class usf.saav.common.mvc.ViewComponent.Default