📄 testwindow.java
字号:
// Decompiled by Jad v1.5.8e2. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://kpdus.tripod.com/jad.html
// Decompiler options: packimports(3) fieldsfirst ansi space
// Source File Name: TestWindow.java
package org.gudy.azureus2.ui.swt.animations.shell;
import org.eclipse.swt.graphics.Point;
import org.eclipse.swt.graphics.Rectangle;
import org.eclipse.swt.widgets.Display;
import org.eclipse.swt.widgets.Shell;
import org.gudy.azureus2.core3.util.AERunnable;
import org.gudy.azureus2.ui.swt.animations.Animator;
import org.gudy.azureus2.ui.swt.shells.PopupShell;
// Referenced classes of package org.gudy.azureus2.ui.swt.animations.shell:
// AnimableShell, LinearAnimator
public class TestWindow extends PopupShell
implements AnimableShell
{
int nbAnimation;
int x0;
int y0;
int x1;
int y1;
public TestWindow(Display display)
{
super(display);
nbAnimation = 0;
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();
}
public void animationEnded(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 animationStarted(Animator animator)
{
}
public Shell getShell()
{
return shell;
}
public void reportPercent(int i)
{
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -