📄 h.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
package pica.ui;
import mainn.cm;
import java.util.Enumeration;
import java.util.Vector;
import javax.microedition.lcdui.*;
// Referenced classes of package pica.ui:
// b
public class h extends Canvas
implements Runnable
{
public static Display d;
private Vector a;
private cm b;
private long c;
private boolean j;
private boolean k;
protected int e;
protected int f;
public static boolean g = false;
public static boolean h = true;
public static StringBuffer i = new StringBuffer();
public h(Display display)
{
setFullScreenMode(true);
d = display;
a = new Vector();
repaint();
e = getHeight();
f = getWidth();
c = System.currentTimeMillis();
j = true;
}
public final void b()
{
j = false;
}
public static Display c()
{
return d;
}
public final void a(cm c1)
{
b = c1;
}
public final void a(b b1)
{
System.out.println("add list:--");
a.addElement(b1);
}
public final void d()
{
System.out.println("clear list:--");
a.removeAllElements();
}
public final b ab(String s)
{
b b1;
for (Enumeration enumeration = a.elements(); enumeration.hasMoreElements();)
if ((b1 = (b)enumeration.nextElement()).c != null && b1.c.equals(s))
return b1;
return null;
}
public final void a(b b1, String s)
{
for (int l = 0; l < a.size(); l++)
{
b b2;
if ((b2 = (b)a.elementAt(l)).c != null && b2.c.equals(s))
a.setElementAt(b1, l);
}
}
public final void run()
{
for (; j; c = System.currentTimeMillis())
{
if (h)
repaint();
long l;
if ((l = System.currentTimeMillis() - c) >= 120L)
continue;
try
{
Thread.sleep(120L - l);
}
catch (Exception e) { }
}
}
private void a(byte byte0, int l)
{
boolean flag = false;
boolean flag1;
b b1;
for (int ii1 = 0; ii1 < a.size() && (!(b1 = (b)a.elementAt(ii1)).d || !(flag1 = b1.a(byte0, l))); ii1++);
if (b != null)
{
if (byte0 == 0)
{
b.aio(0, new Integer(l));
return;
}
if (byte0 == 1)
{
b.aio(2, new Integer(l));
return;
}
if (byte0 == 2)
b.aio(1, new Integer(l));
}
}
protected final void paint(Graphics g1)
{
if (!k)
{
g1.setColor(0xffff00);
g1.fillRect(0, 0, f, e);
k = true;
f = getWidth();
e = getHeight();
return;
}
for (int l = a.size() - 1; l >= 0; l--)
((b)a.elementAt(l)).agp(g1);//((b)a.elementAt(l)).a(g1);
g1.setColor(0xff0000);
}
protected final void keyPressed(int l)//按下
{
//System.out.println("pkey:"+l);
a((byte)0, l);
repaint();
}
protected final void keyReleased(int l)//弹起
{
//System.out.println("key:"+l);
a((byte)2, l);
}
protected final void keyRepeated(int l)//指针
{
a((byte)1, l);
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -