📄 xcanvas.java
字号:
// Decompiled by Jad v1.5.7g. Copyright 2000 Pavel Kouznetsov.
// Jad home page: http://www.geocities.com/SiliconValley/Bridge/8617/jad.html
// Decompiler options: packimports(3) fieldsfirst ansi
package mmae.ui;
import com.nokia.mid.ui.FullCanvas;
import java.io.PrintStream;
import javax.microedition.lcdui.Graphics;
public class XCanvas extends FullCanvas
implements Runnable
{
public static int left;
public static int top;
public static int width;
public static int height;
public static final int SOFTKEY1 = -6;
public static final int SOFTKEY2 = -7;
public static final int CLR = -8;
public static final int MOTO_SOFTKEY1 = -20;
public static final int MOTO_SOFTKEY2 = -21;
public static String STR_COPYRIGHT = "(c)2003 Move2008";
private Thread a;
private int b;
private boolean c;
private boolean d;
public XCanvas()
{
c = true;
d = true;
left = 0;
top = 0;
width = getWidth();
height = getHeight();
b = 1000;
}
public XCanvas(int i, int j, int k, int l)
{
c = true;
d = true;
setRect(i, j, k, l);
}
public void setPosition(int i, int j)
{
left = i;
top = j;
}
public void setRect(int i, int j, int k, int l)
{
left = i;
top = j;
width = k;
height = l;
}
public void paint(Graphics g)
{
}
public void update()
{
}
public void run()
{
if(b != 0) goto _L2; else goto _L1
_L1:
update();
goto _L3
_L4:
a;
Thread.sleep(b);
if(c)
return;
try
{
update();
}
catch(InterruptedException interruptedexception)
{
System.out.println("XCanvas Thread Error:" + interruptedexception.getMessage());
}
_L5:
if(!d) goto _L4; else goto _L2
_L2:
if(!c) goto _L5; else goto _L3
_L3:
kill();
return;
}
public void start(int i)
{
b = i;
c = false;
d = false;
a = new Thread(this);
a.start();
}
public void start()
{
start(0);
}
public void setInterval(int i)
{
b = i;
}
public int getInterval()
{
return b;
}
public void stop()
{
d = true;
}
public void sleep(int i)
{
try
{
wait(i);
}
catch(Exception exception) { }
}
public void kill()
{
d = true;
c = true;
}
public void resume()
{
d = false;
}
public boolean isKill()
{
return c;
}
public boolean isStop()
{
return d;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -