FileDocCategorySizeDatePackage
TestWindow.javaAPI DocAzureus 3.0.3.42447Tue Oct 19 03:29:08 BST 2004org.gudy.azureus2.ui.swt.animations.shell

TestWindow

public class TestWindow extends org.gudy.azureus2.ui.swt.shells.PopupShell implements AnimableShell
author
Olivier Chalouhi

Fields Summary
int
nbAnimation
int
x0
int
y0
int
x1
int
y1
Constructors Summary
public TestWindow(org.eclipse.swt.widgets.Display display)

  
     
    super(display);    
    
    layout();
    
    Rectangle bounds = display.getClientArea();    
    x0 = bounds.x + bounds.width - 250;
    x1 = bounds.x + bounds.width;

    y0 = bounds.y + bounds.height;
    y1 = bounds.y + bounds.height - 150;
    
    shell.setLocation(x0,y0);
    shell.open();
    new LinearAnimator(this,new Point(x0,y0),new Point(x0,y1),30,30).start();
  
Methods Summary
public voidanimationEnded(org.gudy.azureus2.ui.swt.animations.Animator source)

    if(nbAnimation == 0) {
      nbAnimation++;
      new LinearAnimator(this,new Point(x0,y1),new Point(x0,y1),1,3000).start();
      return;
    }
    if(nbAnimation == 1) {
      nbAnimation++;
      new LinearAnimator(this,new Point(x0,y1),new Point(x1,y1),50,30).start();
      return;
    }
    if(nbAnimation == 2) {
     shell.getDisplay().asyncExec(new AERunnable() {
      public void runSupport() {
        shell.dispose();
      }
    });
   }
  
public voidanimationStarted(org.gudy.azureus2.ui.swt.animations.Animator source)

    
  
public org.eclipse.swt.widgets.ShellgetShell()

   return shell;
  
public voidreportPercent(int percent)