📄 ad.java
字号:
// Decompiled by DJ v3.9.9.91 Copyright 2005 Atanas Neshkov Date: 2006-5-1 19:31:40
// Home Page : http://members.fortunecity.com/neshkov/dj.html - Check often for new version!
// Decompiler options: packimports(3)
import javax.microedition.lcdui.*;
public final class ad extends Canvas
{
public ad(int k, bd bd1, CommandListener commandlistener, Command command, Image image)
{
a_int_fld = 0;
c = 0;
a_javax_microedition_lcdui_Font_fld = null;
a_java_lang_String_fld = null;
a_int_fld = getWidth();
b = getHeight();
h = a_int_fld / 2;
i = b / 2;
d = k;
a_bd_fld = bd1;
a_javax_microedition_lcdui_CommandListener_fld = commandlistener;
a_javax_microedition_lcdui_Command_fld = command;
a_javax_microedition_lcdui_Image_fld = image;
if(image != null)
{
f = image.getWidth();
g = image.getHeight();
}
e = 0;
a_boolean_fld = false;
a_javax_microedition_lcdui_Font_fld = Font.getFont(0, 0, 0);
c = a_javax_microedition_lcdui_Font_fld.getHeight();
}
public final void a(boolean flag)
{
a_boolean_fld = flag;
if(flag)
repaint();
}
public final void paint(Graphics g1)
{
g1.setColor(0xbad0fc);
g1.fillRect(0, 0, a_int_fld, b);
g1.setFont(a_javax_microedition_lcdui_Font_fld);
g1.setColor(0);
if(a_javax_microedition_lcdui_Image_fld == null)
{
if(d == 1)
{
if(a_boolean_fld)
{
g1.setColor(0xff0000);
g1.drawString("Has new message", a_int_fld / 2, 5, 17);
}
g1.setColor(0);
String s = "Press '2' then '*' to UNLOCK";
if(a_javax_microedition_lcdui_Font_fld.stringWidth(s) > a_int_fld)
{
g1.drawString("Press '2' then", a_int_fld / 2, 10 + c, 17);
g1.drawString("'*' to UNLOCK", a_int_fld / 2, 10 + c * 2 + 2, 17);
return;
} else
{
g1.drawString(s, a_int_fld / 2, 10 + c, 17);
return;
}
}
if(d == 0)
{
g1.drawString("No image to display", a_int_fld / 2, 5, 17);
return;
}
if(d == 2)
{
int k = (b - c * 2 - 2) / 2;
g1.drawString("Please select a", a_int_fld / 2, k, 17);
g1.drawString("photo or file to send", a_int_fld / 2, k + c + 2, 17);
}
return;
}
int l = 0;
if(a_java_lang_String_fld != null)
{
g1.setColor(0);
g1.drawString(a_java_lang_String_fld, 2, 2, 20);
l = c;
}
g1.setColor(0x4e6ba0);
g1.drawRect(h - f / 2 - 2, (i + l) - g / 2 - 2, f + 3, g + 3);
g1.drawRect(h - f / 2 - 1, (i + l) - g / 2 - 1, f + 1, g + 1);
g1.drawImage(a_javax_microedition_lcdui_Image_fld, h, i + l, 3);
}
public final void keyPressed(int k)
{
switch(k)
{
default:
break;
case -20:
case -5:
if(d != 1)
{
a_javax_microedition_lcdui_CommandListener_fld.commandAction(a_javax_microedition_lcdui_Command_fld, this);
return;
}
break;
case 50: // '2'
if(d == 1)
{
e = 1;
a();
return;
}
break;
case 42: // '*'
if(d == 1 && e == 1)
UltraIMPro.a_javax_microedition_lcdui_Display_static_fld.setCurrent(a_bd_fld);
break;
}
}
public final void a()
{
(new Thread(new j(this))).start();
}
public int a_int_fld;
public int b;
public int c;
public Font a_javax_microedition_lcdui_Font_fld;
public CommandListener a_javax_microedition_lcdui_CommandListener_fld;
public Command a_javax_microedition_lcdui_Command_fld;
public Image a_javax_microedition_lcdui_Image_fld;
public bd a_bd_fld;
public int d;
public int e;
public String a_java_lang_String_fld;
public int f;
public int g;
public int h;
public int i;
public boolean a_boolean_fld;
// Unreferenced inner class j
class j_inner_class
implements Runnable
{
public final void run()
{
try
{
Thread.sleep(60000L);
}
catch(Exception _ex) { }
a.e = 0;
}
private final ad a;
public j_inner_class()
{
a = ad.this;
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -