nl.tudelft.simulation.introspection.gui
Class UpdateTimer

java.lang.Object
  extended by java.util.TimerTask
      extended by nl.tudelft.simulation.introspection.gui.UpdateTimer
All Implemented Interfaces:
Runnable

public class UpdateTimer
extends TimerTask

provides a timed update mechanism for components

(c) copyright 2002-2005 Delft University of Technology , the Netherlands.
See for project information www.simulation.tudelft.nl
License of use: Lesser General Public License (LGPL) , no warranty.

Since:
1.2
Version:
1.2 Apr 16, 2004
Author:
Peter Jacobs

Constructor Summary
UpdateTimer(long period)
          constructs a new UpdateTimer
 
Method Summary
 void add(Component component)
          adds a component to the list.
 void remove(Component component)
          removes a component from a list
 void run()
           
 
Methods inherited from class java.util.TimerTask
cancel, scheduledExecutionTime
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UpdateTimer

public UpdateTimer(long period)
constructs a new UpdateTimer

Parameters:
period - the period in milliseconds
Method Detail

add

public void add(Component component)
adds a component to the list.

Parameters:
component - the component

remove

public void remove(Component component)
removes a component from a list

Parameters:
component - the component

run

public void run()
Specified by:
run in interface Runnable
Specified by:
run in class TimerTask
See Also:
Runnable.run()


Copyright © 2002-2011 Delft University of Technology, the Netherlands. All Rights Reserved.