All Packages Class Hierarchy This Package Previous Next Index
Class observable.ObservableLabel
java.lang.Object
|
+----java.awt.Component
|
+----java.awt.Label
|
+----observable.ObservableLabel
- public class ObservableLabel
- extends Label
- implements Observer
Just a simple-minded class to make a label out of the value of
an ObservableDbl.
- Version:
- $Revision: 1.1.1.1 $, $Date: 1999/11/15 20:37:49 $.
- Author:
- Daren Stotler
- See Also:
- ObservableDbl, ObservableTest
-
precision_
-
-
ObservableLabel(ObservableDbl)
- Simplest constructor: just the double and no other text
-
ObservableLabel(ObservableDbl, String)
- Another constructor, this time with just one string.
-
ObservableLabel(ObservableDbl, String, int)
- Another constructor, this time with one string and an
alignment flag.
-
ObservableLabel(ObservableDbl, String, String, int)
- Last (for now) constructor.
-
update(Observable, Object)
- The one and only method of the Observer interface.
precision_
protected int precision_
ObservableLabel
public ObservableLabel(ObservableDbl od)
- Simplest constructor: just the double and no other text
- Parameters:
- od - an ObservableDbl
ObservableLabel
public ObservableLabel(ObservableDbl od,
String s1)
- Another constructor, this time with just one string.
- Parameters:
- od - an ObservableDbl
- s1 - string to appear before the double in the label
ObservableLabel
public ObservableLabel(ObservableDbl od,
String s1,
int align)
- Another constructor, this time with one string and an
alignment flag.
- Parameters:
- od - an ObservableDbl
- s1 - string to appear before the double in the label
- align - alignment flag (as in Label class)
- See Also:
- Label
ObservableLabel
public ObservableLabel(ObservableDbl od,
String s1,
String s2,
int align)
- Last (for now) constructor. Have two strings and an
alignment flag.
- Parameters:
- od - an ObservableDbl
- s1 - string to appear before the double in the label
- s2 - string to appear after the double in the label
- align - alignment flag (as in Label class)
- See Also:
- Label
update
public void update(Observable obs,
Object arg)
- The one and only method of the Observer interface. This will be
called when the ObservableDbl gets called. This method will update
the Label accordingly.
- Parameters:
- obs - observable which was updated
- arg - what is being updated
All Packages Class Hierarchy This Package Previous Next Index