public interface

Timeable

sun.misc.Timeable

Class Overview

This interface is used by the Timer class. A class that uses Timer objects must implement this interface.

See Also

Summary

Public Methods
abstract void tick(Timer timer)
This method is executed every time a timer owned by this object ticks.

Public Methods

public abstract void tick (Timer timer)

This method is executed every time a timer owned by this object ticks. An object can own more than one timer but all timers call this method when they tick; you can use the supplied timer parameter to determine which timer has ticked.

Parameters
timer a handle to the timer that has just ticked.