📄 ae.java
字号:
import java.io.PrintStream;
import java.util.Enumeration;
import java.util.Vector;
import javax.microedition.lcdui.Canvas;
import javax.microedition.lcdui.Font;
import javax.microedition.lcdui.Graphics;
public final class ae extends n
{
public byte b;
public n e;
public Vector a;
public Enumeration a;
public byte c;
public boolean e;
private String jdField_b_of_type_JavaLangString;
private int j;
private byte d;
public String a;
public ae a;
private boolean g;
private ae jdField_b_of_type_Ae;
private boolean h;
public int i;
public boolean f;
public ae(int paramInt1, int paramInt2, int paramInt3, int paramInt4, String paramString)
{
super(paramInt1, paramInt2 - 1, paramInt3, paramInt4);
this.jdField_b_of_type_Byte = 7;
this.jdField_e_of_type_N = null;
this.jdField_a_of_type_JavaUtilVector = new Vector();
this.jdField_a_of_type_JavaUtilEnumeration = null;
this.c = 1;
this.jdField_e_of_type_Boolean = false;
this.jdField_b_of_type_JavaLangString = null;
this.j = 0;
this.d = 2;
this.jdField_a_of_type_Ae = null;
this.g = false;
this.jdField_b_of_type_Ae = null;
this.h = false;
this.i = 0;
this.f = true;
this.jdField_a_of_type_JavaLangString = paramString;
this.jdField_b_of_type_Boolean = false;
}
public final void a(n paramn)
{
int k = n.jdField_a_of_type_JavaxMicroeditionLcduiFont.getHeight();
d(paramn);
if (paramn instanceof am)
paramn.d = ((paramn.d == 0) ? paramn.d - k : paramn.d);
paramn.a(paramn.jdField_c_of_type_Int + this.jdField_c_of_type_Int, paramn.d + this.d + k);
this.jdField_a_of_type_JavaUtilVector.addElement(paramn);
}
private static void d(n paramn)
{
if (paramn != null)
{
paramn.jdField_c_of_type_Int *= n.g;
paramn.jdField_c_of_type_Int /= 176;
paramn.d *= n.h;
paramn.d /= 208;
}
}
public final void a(boolean paramBoolean)
{
n localn = null;
if (paramBoolean)
{
for (int k = 0; k < this.jdField_a_of_type_JavaUtilVector.size(); ++k)
{
localn = (n)this.jdField_a_of_type_JavaUtilVector.elementAt(k);
if ((this.jdField_e_of_type_N == null) && (localn != null) && (localn.jdField_b_of_type_Boolean))
{
this.jdField_e_of_type_N = localn;
this.jdField_e_of_type_N.a(true);
break;
}
}
if ((this.jdField_e_of_type_N == null) || (this.jdField_e_of_type_N instanceof am))
return;
this.jdField_a_of_type_JavaUtilVector.removeElement(this.jdField_e_of_type_N);
this.jdField_a_of_type_JavaUtilVector.addElement(this.jdField_e_of_type_N);
return;
}
if (this.jdField_e_of_type_N != null)
{
this.jdField_e_of_type_N.a(false);
this.jdField_e_of_type_N = null;
}
}
public final void a(Graphics paramGraphics)
{
if ((this.jdField_a_of_type_Ae == null) || (!(this.g)) || (this.jdField_a_of_type_Ae.jdField_a_of_type_Int != this.jdField_a_of_type_Int) || (this.jdField_a_of_type_Ae.jdField_b_of_type_Int != this.jdField_b_of_type_Int))
{
if (this.jdField_b_of_type_Byte != 9)
{
paramGraphics.setColor(2037253);
paramGraphics.fillRect(this.jdField_c_of_type_Int, this.d, this.jdField_a_of_type_Int, this.jdField_b_of_type_Int);
paramGraphics.setColor(0);
paramGraphics.drawRect(this.jdField_c_of_type_Int - 1, this.d - 1, this.jdField_a_of_type_Int + 2, this.jdField_b_of_type_Int + 2);
if (this.c == 1)
{
am.a(paramGraphics, this.jdField_c_of_type_Int, this.d, this.jdField_a_of_type_Int, this.jdField_b_of_type_Int, 2);
}
else
{
paramGraphics.setClip(0, 0, be.d, be.jdField_e_of_type_Int);
be.a(paramGraphics);
}
}
this.jdField_a_of_type_JavaUtilEnumeration = this.jdField_a_of_type_JavaUtilVector.elements();
while (this.jdField_a_of_type_JavaUtilEnumeration.hasMoreElements())
{
n localn;
if ((localn = (n)this.jdField_a_of_type_JavaUtilEnumeration.nextElement()).jdField_c_of_type_Boolean)
localn.a(paramGraphics);
}
}
if ((this.jdField_a_of_type_Ae != null) && (this.g))
this.jdField_a_of_type_Ae.a(paramGraphics);
if (this.jdField_e_of_type_Boolean)
{
paramGraphics.setClip(0, 0, this.jdField_a_of_type_Int, this.jdField_b_of_type_Int);
paramGraphics.setColor(0);
if (this.f)
this.i = (be.a.getHeight() - n.f - 2);
else
this.i = 0;
paramGraphics.fillRect(0, 0 + this.i, this.jdField_a_of_type_Int, n.f + 2);
paramGraphics.setColor(16711680);
paramGraphics.drawString(this.jdField_b_of_type_JavaLangString, this.jdField_a_of_type_Int - this.j, 1 + this.i, 20);
paramGraphics.setColor(16769185);
paramGraphics.drawLine(0, this.i, this.jdField_a_of_type_Int, this.i);
if (this.jdField_a_of_type_Int - this.j < -n.jdField_a_of_type_JavaxMicroeditionLcduiFont.stringWidth(this.jdField_b_of_type_JavaLangString))
{
this.j = 0;
ae tmp391_390 = this;
tmp391_390.d = (byte)(tmp391_390.d + 1);
if (this.d > 1)
{
this.jdField_b_of_type_JavaLangString = null;
this.jdField_e_of_type_Boolean = false;
this.j = 0;
this.d = 0;
this.h = false;
return;
}
}
this.j += 6;
}
}
public final n a()
{
if ((this.jdField_a_of_type_Ae != null) && (this.g))
return this.jdField_a_of_type_Ae.a();
return this.jdField_e_of_type_N;
}
public final void a(int paramInt)
{
n localn = null;
if ((this.jdField_a_of_type_Ae != null) && (this.g))
{
this.jdField_a_of_type_Ae.a(paramInt);
return;
}
if (this.jdField_e_of_type_N == null)
return;
switch (paramInt)
{
case 11:
localn = this.jdField_e_of_type_N.a(1);
break;
case 13:
localn = this.jdField_e_of_type_N.a(2);
break;
case 10:
localn = this.jdField_e_of_type_N.a(3);
break;
case 12:
localn = this.jdField_e_of_type_N.a(4);
}
if (localn == null)
return;
this.jdField_e_of_type_N.a(false);
this.jdField_e_of_type_N = localn;
this.jdField_e_of_type_N.a(true);
if (!(this.jdField_e_of_type_N instanceof am))
{
this.jdField_a_of_type_JavaUtilVector.removeElement(this.jdField_e_of_type_N);
this.jdField_a_of_type_JavaUtilVector.addElement(this.jdField_e_of_type_N);
}
}
public final void b(int paramInt)
{
n localn = null;
if ((this.jdField_a_of_type_Ae != null) && (this.g))
{
this.jdField_a_of_type_Ae.b(paramInt);
return;
}
if (this.jdField_e_of_type_N == null)
return;
switch (paramInt)
{
case 11:
localn = this.jdField_e_of_type_N.a(1);
break;
case 13:
localn = this.jdField_e_of_type_N.a(2);
break;
case 10:
localn = this.jdField_e_of_type_N.a(3);
break;
case 12:
localn = this.jdField_e_of_type_N.a(4);
}
if ((localn == null) || (!(localn.jdField_c_of_type_Boolean)))
return;
this.jdField_e_of_type_N.a(false);
this.jdField_e_of_type_N = localn;
this.jdField_e_of_type_N.a(true);
if (!(this.jdField_e_of_type_N instanceof am))
{
this.jdField_a_of_type_JavaUtilVector.removeElement(this.jdField_e_of_type_N);
this.jdField_a_of_type_JavaUtilVector.addElement(this.jdField_e_of_type_N);
}
}
public final void a(ae paramae)
{
if (paramae != null)
{
this.jdField_a_of_type_Ae = paramae;
paramae.jdField_b_of_type_Ae = this;
this.jdField_a_of_type_Ae.a(this.jdField_c_of_type_Int + (this.jdField_a_of_type_Int >> 1) - (this.jdField_a_of_type_Ae.jdField_a_of_type_Int >> 1), this.d + (this.jdField_b_of_type_Int >> 1) - (this.jdField_a_of_type_Ae.jdField_b_of_type_Int >> 1));
if (be.a() == 12)
this.jdField_a_of_type_Ae.d += n.jdField_a_of_type_JavaxMicroeditionLcduiFont.getHeight();
this.jdField_a_of_type_JavaUtilEnumeration = paramae.jdField_a_of_type_JavaUtilVector.elements();
while (this.jdField_a_of_type_JavaUtilEnumeration.hasMoreElements())
{
n localn;
(localn = (n)this.jdField_a_of_type_JavaUtilEnumeration.nextElement()).a(this.jdField_a_of_type_Ae.jdField_c_of_type_Int + localn.jdField_c_of_type_Int, this.jdField_a_of_type_Ae.d + localn.d);
}
this.g = true;
if (this.jdField_e_of_type_N != null)
this.jdField_e_of_type_N.a(false);
this.jdField_a_of_type_Ae.a(true);
return;
}
this.g = false;
if (this.jdField_e_of_type_N != null)
this.jdField_e_of_type_N.a(true);
this.jdField_a_of_type_Ae = null;
}
public final void b(n paramn, byte paramByte)
{
if (paramn == null)
return;
switch (paramByte)
{
case 2:
paramn.jdField_c_of_type_Int = (this.jdField_a_of_type_Int - paramn.jdField_a_of_type_Int >> 1);
paramn.d -= this.d;
paramn.d *= n.h;
paramn.d /= 208;
paramn.d += n.jdField_a_of_type_JavaxMicroeditionLcduiFont.getHeight();
paramn.jdField_a_of_type_Byte = 2;
break;
case 3:
paramn.jdField_c_of_type_Int = 0;
paramn.d = ((this.jdField_b_of_type_Int - paramn.jdField_b_of_type_Int >> 1) + paramn.d - this.d);
paramn.d += n.jdField_a_of_type_JavaxMicroeditionLcduiFont.getHeight();
paramn.jdField_a_of_type_Byte = 3;
break;
case 4:
paramn.jdField_c_of_type_Int = (this.jdField_a_of_type_Int - paramn.jdField_a_of_type_Int >> 1);
paramn.d = (this.jdField_b_of_type_Int - paramn.jdField_b_of_type_Int >> 1);
paramn.d += n.jdField_a_of_type_JavaxMicroeditionLcduiFont.getHeight();
paramn.jdField_a_of_type_Byte = 4;
break;
case 5:
paramn.jdField_c_of_type_Int = 5;
paramn.d = (this.d + 3);
paramn.jdField_a_of_type_Byte = 5;
break;
case 6:
paramn.jdField_c_of_type_Int = (this.jdField_a_of_type_Int - paramn.jdField_a_of_type_Int - 5 - 3);
paramn.d = (this.d + 3);
paramn.jdField_a_of_type_Byte = 6;
break;
case 11:
paramn.jdField_c_of_type_Int = (this.jdField_a_of_type_Int - paramn.jdField_a_of_type_Int - 5 - 3);
paramn.d = (this.jdField_b_of_type_Int - paramn.jdField_b_of_type_Int - 5 + 3);
paramn.jdField_a_of_type_Byte = 11;
break;
case 10:
paramn.jdField_c_of_type_Int = 5;
paramn.d = 2;
paramn.jdField_a_of_type_Byte = 10;
case 7:
case 8:
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -