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.


Constructor Index

 o ImmediateSynchronization()
Create an ImmediateSynchronization which updates without delay to each new value, and waits indefinitely between changes of value.
 o ImmediateSynchronization(long, long)
Create an ImmediateSynchronization with the specified delay interval between updates when synchronized and when not synchronized.

Method Index

 o copyright()
 o getNextValue(int, int, int, int, int, int)
Return the next value for the gauge to show to achieve the required synchronization.
 o 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.
 o isSynchronized(int, int, int, int, int, int)
Return true if the gauge display is now synchronized.
 o resetSynchronization()

Constructors

 o ImmediateSynchronization
 public ImmediateSynchronization(long synchronizedDelay,
                                 long nonsynchronizedDelay)
Create an ImmediateSynchronization with the specified delay interval between updates when synchronized and when not synchronized.

 o ImmediateSynchronization
 public ImmediateSynchronization()
Create an ImmediateSynchronization which updates without delay to each new value, and waits indefinitely between changes of value.

Methods

 o copyright
 public static String copyright()
 o resetSynchronization
 public void resetSynchronization()
 o 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.

 o 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.

 o 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