All Packages Class Hierarchy This Package Previous Next Index
Class COM.ibm.beans.gauge.RollingCounter
java.lang.Object
|
+----java.awt.Component
|
+----COM.ibm.beans.gauge.BaseGauge
|
+----COM.ibm.beans.gauge.RollingCounter
- public class RollingCounter
- extends BaseGauge
- implements PropertyChangeListener, Serializable
This gauge displays a number representing the current display
value using digit images. The value can be displayed in any base,
using any number of digits. Negative values and overflow values
cause the display to wrap.
RollingCounter()
- Default constructor
areImagesReady()
- Return true if all images registered to be monitored
during loading are now ready.
copyright()
-
getBase()
- 'get' accessor method for base property
getImmediate()
- 'get' accessor method for immediate property
getMinimumSize()
- Return minimum size for the gauge
getNumberOfDigits()
- 'get' accessor method for numberOfDigits property
getSlide()
- 'get' accessor method for slide property
isSynchronized(long,
long, long, long, long, long)
- Return true if the gauge considers the current display to
be fully synchronized.
nextValue(long,
long, long, long, long, long)
- Return the next value which the gauge display will show.
paint(Graphics,
Dimension, long, long, long, boolean, long, long, long)
- Paint the gauge.
propertyChange(PropertyChangeEvent)
- PropertyChangeListener implementation: used so that
Counter can listen to BaseGauge properties to update the
number of digits
setBase(int)
- 'set' accessor method for base property
setImmediate(boolean)
- 'set' accessor method for immediate property
setNumberOfDigits(int)
- 'set' accessor method for numberOfDigits property
setSlide(boolean)
- 'set' accessor method for slide property
RollingCounter
public RollingCounter()
- Default constructor
copyright
public static String copyright()
propertyChange
public void propertyChange(PropertyChangeEvent evt)
- PropertyChangeListener implementation: used so that
Counter can listen to BaseGauge properties to update the
number of digits
setSlide
public void setSlide(boolean bool)
- 'set' accessor method for slide property
getSlide
public boolean getSlide()
- 'get' accessor method for slide property
setImmediate
public void setImmediate(boolean bool)
- 'set' accessor method for immediate property
getImmediate
public boolean getImmediate()
- 'get' accessor method for immediate property
setBase
public void setBase(int newbase)
- 'set' accessor method for base property
getBase
public int getBase()
- 'get' accessor method for base property
setNumberOfDigits
public void setNumberOfDigits(int newNumber)
- 'set' accessor method for numberOfDigits property
getNumberOfDigits
public int getNumberOfDigits()
- 'get' accessor method for numberOfDigits property
getMinimumSize
public Dimension getMinimumSize()
- Return minimum size for the gauge
- Overrides:
- getMinimumSize
in class Component
nextValue
public synchronized long nextValue(long value,
long minimum,
long maximum,
long previousDisplayValue,
long previousMinimum,
long previousMaximum)
- Return the next value which the gauge display will show.
- Overrides:
- nextValue
in class BaseGauge
isSynchronized
public boolean isSynchronized(long gaugeValue,
long gaugeMinimum,
long gaugeMaximum,
long currentDisplayValue,
long currentDisplayMinimum,
long currentDisplayMaximum)
- Return true if the gauge considers the current display to
be fully synchronized.
- Overrides:
- isSynchronized
in class BaseGauge
paint
public synchronized void paint(Graphics g,
Dimension s,
long value,
long min,
long max,
boolean incremental,
long previousdisplayvalue,
long previousmin,
long previousmax)
- Paint the gauge.
- Overrides:
- paint
in class BaseGauge
areImagesReady
public boolean areImagesReady()
- Return true if all images registered to be monitored
during loading are now ready.
- Overrides:
- areImagesReady
in class BaseGauge
All Packages Class Hierarchy This Package Previous Next Index
Copyright ©
Taligent, Inc. 1996 - 1997.
Copyright © IBM Corporation 1996 - 1997.
All Rights Reserved.