Code example for ScheduledFuture

Methods: cancel

0
    DrawableComposite theComposite = new DrawableComposite();
    theComposite.addDrawable( myBackGroundDrawable );
    if(aFontSize < myEndTextSize){
      theComposite.addDrawable( new WordDrawable( myText, aFontSize ) );
    } else { 
      myTask.cancel( false );
    } 
    return theComposite;
  } 
 
  public class ExplodingText implements Runnable {
    @Override 
    public void run() { 
      try{ 
        float theEllapsedTime = System.currentTimeMillis() - myStartTime;
         
        float theCurrentFontSize = myStartTextSize + (myEndTextSize * (float)Math.pow(theEllapsedTime/myDuration,6));
        
        myDrawableQueue.put( getDrawable( theCurrentFontSize ) );
         
        /*