public class StatisticsDisplay extends java.lang.Object implements java.util.Observer, DisplayElement
Modifier and Type | Field and Description |
---|---|
private float |
maxTemp |
private float |
minTemp |
private int |
numReadings |
private float |
tempSum |
Constructor and Description |
---|
StatisticsDisplay(java.util.Observable observable) |
Modifier and Type | Method and Description |
---|---|
void |
display() |
void |
update(java.util.Observable observable,
java.lang.Object arg) |
private float maxTemp
private float minTemp
private float tempSum
private int numReadings
public StatisticsDisplay(java.util.Observable observable)
public void update(java.util.Observable observable, java.lang.Object arg)
update
in interface java.util.Observer
public void display()
display
in interface DisplayElement