package NonAWTBPEvents; import java.util.*; /** * This class encapsulates all the information for * when the blood pressure changes * * @author Stuart Hansen * @version February 2009 */ public class BloodPressureEvent extends EventObject { private int value; // the new value // This is the only constructor. public BloodPressureEvent (Object source, int newValue) { super(source); this.value = newValue; } // returns the value public int getValue() { return value; } }