All Packages Class Hierarchy This Package Previous Next Index
Interface com.ibm.eou.toolkit.gauge.Gauge
- public interface Gauge
This interface is designed to provide a common
protocol for display components which present
a single value from a numeric range to the user.
It includes methods to set and query the gauge
value and the current range, and to wait until
the display synchronizes. Many gauges will
not immediately display a new value when set,
but will commence some animation until the
display is synchronized with the value set.
-
copyright
- Ensures that the short copyright string appears
in the class file.
-
adjustValue(int)
- Adjust the value for the gauge to present
by a relative amount.
-
getMaximum()
- Return the maximum of the current range.
-
getMinimum()
- Return the minimum of the current range.
-
getValue()
- Return the current value of the gauge.
-
setMaximum(int)
- Set the maximum of the current range.
-
setMinimum(int)
- Set the minimum of the current range.
-
setValue(int)
- Set the value for the gauge to present.
-
synchronize()
- Wait until the gauge is synchronized.
copyright
public static final String copyright
- Ensures that the short copyright string appears
in the class file.
adjustValue
public abstract void adjustValue(int valueChange)
- Adjust the value for the gauge to present
by a relative amount.
setValue
public abstract void setValue(int value)
- Set the value for the gauge to present.
getValue
public abstract int getValue()
- Return the current value of the gauge. Note that
this may not be the value currently displayed to
the user, if the gauge display is not yet synchronized.
setMinimum
public abstract void setMinimum(int minimum)
- Set the minimum of the current range.
getMinimum
public abstract int getMinimum()
- Return the minimum of the current range.
setMaximum
public abstract void setMaximum(int maximum)
- Set the maximum of the current range.
getMaximum
public abstract int getMaximum()
- Return the maximum of the current range.
synchronize
public abstract void synchronize()
- Wait until the gauge is synchronized. The gauge
is synchronized when the value actually displayed
matches the current gauge value.
All Packages Class Hierarchy This Package Previous Next Index