|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.awt.Component java.awt.Container java.awt.Panel visad.browser.Widget visad.browser.ContourWidget
public class ContourWidget
A widget that allows users to control graphics mode parameters.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class java.awt.Panel |
---|
Panel.AccessibleAWTPanel |
Nested classes/interfaces inherited from class java.awt.Container |
---|
Container.AccessibleAWTContainer |
Nested classes/interfaces inherited from class java.awt.Component |
---|
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy |
Field Summary |
---|
Fields inherited from class visad.browser.Widget |
---|
DEBUG, FALSE, PALE_GRAY, TRUE |
Fields inherited from class java.awt.Component |
---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface java.awt.image.ImageObserver |
---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
---|---|
ContourWidget()
Constructs a new ContourWidget. |
Method Summary | |
---|---|
void |
actionPerformed(ActionEvent e)
Handles TextField changes. |
float |
getBase()
Gets the value of the base text field. |
float |
getContourInterval()
Gets the value of the interval text field. |
float |
getHiLimit()
Gets the hi value of the contour range slider. |
boolean |
getLabels()
Gets the value of the labels checkbox. |
float |
getLowLimit()
Gets the low value of the contour range slider. |
boolean |
getMainContours()
Gets the value of the contours checkbox. |
double |
getMaxValue()
Gets the maximum contouring value. |
double |
getMinValue()
Gets the minimum contouring value. |
String |
getName()
Gets the name of the variable. |
String |
getSaveString()
Gets a string representing this widget's current state. |
float |
getSurfaceValue()
Gets the value of the surface value slider. |
void |
itemStateChanged(ItemEvent e)
Handles Checkbox changes. |
static void |
main(String[] args)
Tests ContourWidget. |
void |
setBase(float bs)
Sets the value of the base text field. |
void |
setContourInterval(float ci)
Sets the value of the interval text field. |
void |
setLabels(boolean lb)
Sets the value of the labels checkbox. |
void |
setLimits(float lo,
float hi)
Sets the range of the contour range slider. |
void |
setMainContours(boolean mc)
Sets the value of the contours checkbox. |
void |
setName(String name)
Sets the name of the variable. |
void |
setRange(float min,
float max)
Sets the minimum and maximum contouring values. |
void |
setSaveString(String save)
Reconstructs this widget's state using the specified save string. |
void |
setSurfaceValue(float sv)
Sets the value of the surface value slider. |
Methods inherited from class visad.browser.Widget |
---|
addComponent, addWidgetListener, containedIn, notifyListeners, removeWidgetListener, testWidget |
Methods inherited from class java.awt.Panel |
---|
addNotify, getAccessibleContext |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ContourWidget()
Method Detail |
---|
public String getName()
getName
in class Component
public void setName(String name)
setName
in class Component
public double getMinValue()
public double getMaxValue()
public void setRange(float min, float max)
public boolean getMainContours()
public void setMainContours(boolean mc)
public boolean getLabels()
public void setLabels(boolean lb)
public float getSurfaceValue()
public void setSurfaceValue(float sv)
public float getContourInterval()
public void setContourInterval(float ci)
public float getLowLimit()
public float getHiLimit()
public void setLimits(float lo, float hi)
public float getBase()
public void setBase(float bs)
public String getSaveString()
getSaveString
in class Widget
public void setSaveString(String save)
setSaveString
in class Widget
public void actionPerformed(ActionEvent e)
actionPerformed
in interface ActionListener
public void itemStateChanged(ItemEvent e)
itemStateChanged
in interface ItemListener
public static void main(String[] args)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |