|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectucar.unidata.idv.control.ValueSliderWidget
public class ValueSliderWidget
A class for holding a text field and a slider for setting the some integer value
| Constructor Summary | |
|---|---|
ValueSliderWidget(DisplayControlImpl dc,
int min,
int max,
String property,
String label)
Create a ValueSliderWidget |
|
ValueSliderWidget(DisplayControlImpl dc,
int min,
int max,
String property,
String label,
float scale)
Create a ValueSliderWidget |
|
| Method Summary | |
|---|---|
void |
doRemove()
Remove the reference to the displayControl |
JComponent |
getContents(boolean withLabel)
Get the GUI contents |
void |
setEnabled(boolean enable)
Enable or disable the widget. |
void |
setPaintLabels(boolean value)
Set the property on the slider |
void |
setPaintTicks(boolean value)
Set the property on the slider |
void |
setSnapToTicks(boolean value)
Set the property on the slider |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ValueSliderWidget(DisplayControlImpl dc,
int min,
int max,
String property,
String label)
dc - the display control to usemin - minimum slider valuemax - maximum slider valueproperty - DisplayControl property to setlabel - label for the widget
public ValueSliderWidget(DisplayControlImpl dc,
int min,
int max,
String property,
String label,
float scale)
dc - the display control to usemin - minimum slider valuemax - maximum slider valueproperty - DisplayControl property to setlabel - label for the widgetscale - _more_| Method Detail |
|---|
public JComponent getContents(boolean withLabel)
withLabel - true if the component should include the label
public void setEnabled(boolean enable)
enable - true to enablepublic void doRemove()
public void setSnapToTicks(boolean value)
value - true to snap slider to tickspublic void setPaintTicks(boolean value)
value - true to paint slider tickspublic void setPaintLabels(boolean value)
value - true to paint slider labels
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||