All Packages Class Hierarchy This Package Previous Next Index
Class com.ibm.eou.toolkit.gauge.ImmediateSynchronization
java.lang.Object
|
+----com.ibm.eou.toolkit.gauge.ImmediateSynchronization
- public class ImmediateSynchronization
- extends Object
- implements GaugeSynchronization, Serializable
This class provides immediate update behaviour which
is an appropriate default for many gauge types.
-
ImmediateSynchronization()
- Create an ImmediateSynchronization which updates
without delay to each new value, and waits
indefinitely between changes of value.
-
ImmediateSynchronization(long, long)
- Create an ImmediateSynchronization with the
specified delay interval between updates
when synchronized and when not synchronized.
-
copyright()
-
-
getNextValue(int, int, int, int, int, int)
- Return the next value for the gauge to show
to achieve the required synchronization.
-
getNextValueDelay(boolean)
- Return the time interval in milliseconds after
which the next value is to be displayed by the
gauge to achieve the required synchronization.
-
isSynchronized(int, int, int, int, int, int)
- Return true if the gauge display is now synchronized.
-
resetSynchronization()
-
ImmediateSynchronization
public ImmediateSynchronization(long synchronizedDelay,
long nonsynchronizedDelay)
- Create an ImmediateSynchronization with the
specified delay interval between updates
when synchronized and when not synchronized.
ImmediateSynchronization
public ImmediateSynchronization()
- Create an ImmediateSynchronization which updates
without delay to each new value, and waits
indefinitely between changes of value.
copyright
public static String copyright()
resetSynchronization
public void resetSynchronization()
getNextValueDelay
public long getNextValueDelay(boolean isSynchronized)
- Return the time interval in milliseconds after
which the next value is to be displayed by the
gauge to achieve the required synchronization.
This implementation returns INDEFINITE_WAIT if
the display is synchronized and NO_WAIT otherwise.
isSynchronized
public boolean isSynchronized(int value,
int minimum,
int maximum,
int displayValue,
int displayMinimum,
int displayMaximum)
- Return true if the gauge display is now synchronized.
This implementation considers the gauge to be
synchronized if and only if the current and gauge values
match, together with the corresponding ranges.
getNextValue
public int getNextValue(int value,
int min,
int max,
int previousdisplayvalue,
int previousmin,
int previousmax)
- Return the next value for the gauge to show
to achieve the required synchronization.
This implementation always returns the
gauge value directly.
All Packages Class Hierarchy This Package Previous Next Index