00001 /* 00002 * Copyright 2006 Phidgets Inc. All rights reserved. 00003 */ 00004 00005 package com.phidgets.event; 00006 00007 import com.phidgets.Phidget; 00008 00014 public class WeightChangeEvent 00015 { 00016 Phidget source; 00017 double value; 00023 public WeightChangeEvent(Phidget source, double value) 00024 { 00025 this.source = source; 00026 this.value = value; 00027 } 00028 00036 public Phidget getSource() { 00037 return source; 00038 } 00039 00045 public double getValue() { 00046 return value; 00047 } 00048 00054 public String toString() { 00055 return source.toString() + " Weight changed to " 00056 + value; 00057 } 00058 }