sample
Class ColorChangeSample.ColorChanger

java.lang.Object
  extended by java.util.TimerTask
      extended by sample.ColorChangeSample.ColorChanger
All Implemented Interfaces:
Runnable
Enclosing class:
ColorChangeSample

public static class ColorChangeSample.ColorChanger
extends TimerTask

Luokka aiheuttamaan "tapahtumia".

Author:
vesal

Constructor Summary
ColorChangeSample.ColorChanger(Drawable shape, long dt)
          Alustetaan uusi värinvaihta-olio
 
Method Summary
 void run()
          Kun vaihtaja lähtee käyntiin, ajetaan tätä metodia valitun aikavälin tahtiin.
 
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

ColorChangeSample.ColorChanger

public ColorChangeSample.ColorChanger(Drawable shape,
                                      long dt)
Alustetaan uusi värinvaihta-olio

Parameters:
shape - kuvion, jonka väriä vaihdetaan
dt - aikaväli jolloin vaihtamsita tehdään
Method Detail

run

public void run()
Kun vaihtaja lähtee käyntiin, ajetaan tätä metodia valitun aikavälin tahtiin. Arvotaan kohdeoliolle uusi väri.

Specified by:
run in interface Runnable
Specified by:
run in class TimerTask