All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.ibm.eou.toolkit.gauge.LinearSynchronization

java.lang.Object
   |
   +----com.ibm.eou.toolkit.gauge.ImmediateSynchronization
           |
           +----com.ibm.eou.toolkit.gauge.LinearSynchronization

public class LinearSynchronization
extends ImmediateSynchronization
This class provides a linear behaviour which is suitable for gauges requiring a smooth value transition but with no inertial effect, such as progress indicators, fluid-filled meters and LED displays.


Constructor Index

 o LinearSynchronization()
Create a Continuous behaviour with a step size of 1.
 o LinearSynchronization(int)
Create a Continuous behaviour with the given step size.
 o LinearSynchronization(int, long, long)
Create a Continuous behaviour with the given step size and delay values 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.

Constructors

 o LinearSynchronization
 public LinearSynchronization(int step,
                              long synchronizedDelay,
                              long nonsynchronizedDelay)
Create a Continuous behaviour with the given step size and delay values when synchronized and when not synchronized. Display values are generated in steps of the specified size until the next step would overshoot, at which point the gauge value is returned directly and the gauge is synchronized.

 o LinearSynchronization
 public LinearSynchronization(int step)
Create a Continuous behaviour with the given step size. Display values are generated in steps of the specified size until the next step would overshoot, at which point the gauge value is returned directly and the gauge is synchronized.

 o LinearSynchronization
 public LinearSynchronization()
Create a Continuous behaviour with a step size of 1. Display values are generated in steps of the specified size until the next step would overshoot, at which point the gauge value is returned directly and the gauge is synchronized.

Methods

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

Overrides:
getNextValue in class ImmediateSynchronization

All Packages  Class Hierarchy  This Package  Previous  Next  Index