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.


Constructor Index

 o RollingCounter()
Default constructor

Method Index

 o areImagesReady()
Return true if all images registered to be monitored during loading are now ready.
 o copyright()
 
 o getBase()
'get' accessor method for base property
 o getImmediate()
'get' accessor method for immediate property
 o getMinimumSize()
Return minimum size for the gauge
 o getNumberOfDigits()
'get' accessor method for numberOfDigits property
 o getSlide()
'get' accessor method for slide property
 o isSynchronized(long, long, long, long, long, long)
Return true if the gauge considers the current display to be fully synchronized.
 o nextValue(long, long, long, long, long, long)
Return the next value which the gauge display will show.
 o paint(Graphics, Dimension, long, long, long, boolean, long, long, long)
Paint the gauge.
 o propertyChange(PropertyChangeEvent)
PropertyChangeListener implementation: used so that Counter can listen to BaseGauge properties to update the number of digits
 o setBase(int)
'set' accessor method for base property
 o setImmediate(boolean)
'set' accessor method for immediate property
 o setNumberOfDigits(int)
'set' accessor method for numberOfDigits property
 o setSlide(boolean)
'set' accessor method for slide property

Constructors

 o RollingCounter

 public RollingCounter()
Default constructor

Methods

 o copyright

 public static String copyright()

 o propertyChange

 public void propertyChange(PropertyChangeEvent evt)
PropertyChangeListener implementation: used so that Counter can listen to BaseGauge properties to update the number of digits

 o setSlide

 public void setSlide(boolean bool)
'set' accessor method for slide property

 o getSlide

 public boolean getSlide()
'get' accessor method for slide property

 o setImmediate

 public void setImmediate(boolean bool)
'set' accessor method for immediate property

 o getImmediate

 public boolean getImmediate()
'get' accessor method for immediate property

 o setBase

 public void setBase(int newbase)
'set' accessor method for base property

 o getBase

 public int getBase()
'get' accessor method for base property

 o setNumberOfDigits

 public void setNumberOfDigits(int newNumber)
'set' accessor method for numberOfDigits property

 o getNumberOfDigits

 public int getNumberOfDigits()
'get' accessor method for numberOfDigits property

 o getMinimumSize

 public Dimension getMinimumSize()
Return minimum size for the gauge
Overrides:
getMinimumSize in class Component

 o 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

 o 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

 o 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

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