⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 e.java

📁 2009-PICA最新j2ME源码
💻 JAVA
📖 第 1 页 / 共 2 页
字号:
			b(g1);
			d(g1);
			c(g1);
		}
		return;
//		JVM INSTR dup ;
//		Exception exception;
//		exception;
//		printStackTrace();
	}

	private void c(Graphics g1)
	{
		if (bd != null && S != null && bg != null)
		{
			g1.setFont(l);
			a(g1, S, bg, bm, bf, (byte)1);
			for (int i1 = 0; i1 < bd.length; i1++)
			{
				g1.setColor(0);
				g1.drawString(bd[i1], bm + 10, bf + i1 * be + 10, 0);
			}

			g1.setColor(0);
			int j1 = (bf + bl) - m - 5;
			if (bh != null)
				g1.drawString(bh, bm + 10, j1, 0);
			if (bi != null)
				g1.drawString(bi, (bm + bk) - 10, j1, 24);
		}
	}

	public final synchronized void a(String s1, String s2, String s3, int i1, Object obj)
	{
		if (s1 != null)
		{
			bp = System.currentTimeMillis();
			bo = i1;
			bd = null;
			bd = pica.ui.f.a(s1, super.g - 20, l);
			bh = s2;
			bi = s3;
			bq = obj;
			bl = (short)(be * bd.length + 20 + m + 5);
			bn = (short)((super.f + super.h) - bl - 5);
			if (pica.ui.h.g)
				bf = (short)(super.f + super.h);
			else
				bf = bn;
			bg = null;
			bg = a(P, 9, 6, bk, bl, 0xffffff, (byte)1);
			bj = true;
			return;
		} else
		{
			bd = null;
			bh = null;
			bi = null;
			return;
		}
	}

	private void x()
	{
		be = (byte)(m + 5);
		bm = 5;
		bk = (short)(super.g - 10);
	}

	private void y()
	{
		if (bd != null)
		{
			if (bj)
			{
				bf -= be;
				if (bf < bn)
				{
					bf = bn;
					bj = false;
				}
			}
			if (bo > 0 && bh == null && bi == null && System.currentTimeMillis() - bp >= (long)bo)
				a(((String) (null)), ((String) (null)), ((String) (null)), 0, null);
		}
	}

	public final void b(boolean flag)
	{
		if (!br || !flag)
		{
			br = flag;
			bu = 0;
		}
		if (!pica.ui.h.g)
			bu = bv;
	}

	private void d(Graphics g1)
	{
		if (br)
		{
			if (bt < 5)
			{
				bt++;
			} else
			{
				bt = 0;
				if (bu < bv)
					bu++;
			}
			if (bt > 0 || bu == bv)
				a(g1, bs, super.g / 2, G + H / 2, 2, 18, 18, 3);
		}
	}

	private void e(Graphics g1)
	{
		g1.setFont(l);
		if (aF)
		{
			g1.setClip(ax, av, az, aw);
			a(g1, S, aC, ax, ay, (byte)1);
			for (int i1 = 0; i1 < au; i1++)
			{
				if (i1 + aG == aB)
				{
					a(g1, T, aD, ax + 5, ay + R * i1 + 10, (byte)1);
					g1.setColor(0xffffff);
				} else
				{
					g1.setColor(0);
				}
				g1.drawString(aE[i1 + aG].toString(), ax + az / 2, ay + (R - m) / 2 + i1 * R + 10, 17);
			}

			if (au < aE.length)
			{
				if (aG + au < aE.length)
					g1.drawImage(U[1], ax + (az - U[1].getWidth()) / 2, (av + aA) - 9, 0);
				if (aG > 0)
					g1.drawImage(U[0], ax + (az - U[0].getWidth()) / 2, av + 2, 0);
			}
			g1.setClip(super.e, super.f, super.g, super.h);
		}
	}

	private void f(Graphics g1)
	{
		g1.setFont(l);
		if (X)
		{
			a(g1, S, ag, Z, ac - 10, (byte)0);
			for (int i1 = 0; i1 < V; i1++)
			{
				if (i1 + af == ae)
				{
					a(g1, T, ah, Z + 5, ac + R * i1, (byte)1);
					g1.setColor(0xffffff);
				} else
				{
					g1.setColor(0);
				}
				g1.drawString(Y[i1 + af][1].toString(), Z + 10, ac + (R - m) / 2 + i1 * R, 0);
				if (Y[i1 + af][0] == null)
					continue;
				Image image;
				if (i1 + af == ae)
					image = U[3];
				else
					image = U[2];
				g1.drawImage(image, (Z + ab) - 6, ac + R / 2 + i1 * R, 10);
			}

			if (V < Y.length)
			{
				if (af + V < Y.length)
					g1.drawImage(U[1], Z + (ab - U[1].getWidth()) / 2, ac + ad + 2, 0);
				if (af > 0)
					g1.drawImage(U[0], Z + (ab - U[0].getWidth()) / 2, ac - 7, 0);
			}
			if (at)
			{
				a(g1, S, ar, am, aj - 10, (byte)1);
				for (int j1 = 0; j1 < W; j1++)
				{
					if (j1 + ap == an)
					{
						a(g1, T, as, am + 5, aj + j1 * R, (byte)1);
						g1.setColor(0xffffff);
					} else
					{
						g1.setColor(0);
					}
					g1.drawString(aq[j1 + ap].toString(), am + 9, aj + (R - m) / 2 + j1 * R, 0);
				}

				if (W < aq.length)
				{
					if (ap + W < aq.length)
						g1.drawImage(U[1], am + (ak - U[1].getWidth()) / 2, aj + al + 2, 0);
					if (ap > 0)
						g1.drawImage(U[0], am + (ak - U[0].getWidth()) / 2, aj - 7, 0);
				}
			}
		}
	}

	private void g(Graphics g1)
	{
		g1.setFont(l);
		g1.drawImage(M, 0, G, 0);
		int i1 = G + (H - m);
		if (j != null)
			a(g1, j, 2, i1, 0, 3, 1, 0xffffff, 0);
		if (k != null)
			a(g1, k, super.g - 2, i1, 0, 3, 1, 0xffffff, 24);
	}

	private static void a(Graphics g1, String s1, int i1, int j1, int k1, int l1, int i2, int j2, 
			int k2)
	{
		g1.setColor(j2);
		switch (l1)
		{
		case 0: // '\0'
			g1.drawString(s1, i1 - i2, j1 - i2, k2);
			break;

		case 1: // '\001'
			g1.drawString(s1, i1 - i2, j1 + i2, k2);
			break;

		case 2: // '\002'
			g1.drawString(s1, i1 + i2, j1 - i2, k2);
			break;

		case 3: // '\003'
			g1.drawString(s1, i1 + i2, j1 + i2, k2);
			break;
		}
		g1.setColor(k1);
		g1.drawString(s1, i1, j1, k2);
	}

	private static void a(Graphics g1, Image aimage[], Image aimage1[], int i1, int j1, byte byte0)
	{
		g1.drawImage(aimage1[4], i1 + aimage1[2].getWidth(), j1 + aimage1[0].getHeight(), 0);
		g1.drawImage(aimage1[0], i1 + aimage1[2].getWidth(), j1, 0);
		if (byte0 == 1)
			g1.drawImage(aimage1[1], i1 + aimage1[3].getWidth(), j1 + aimage1[0].getHeight() + aimage1[2].getHeight(), 0);
		g1.drawImage(aimage1[2], i1, j1 + aimage1[0].getHeight(), 0);
		g1.drawImage(aimage1[3], i1 + aimage1[2].getWidth() + aimage1[0].getWidth(), j1 + aimage1[0].getHeight(), 0);
		g1.drawImage(aimage[0], i1, j1, 0);
		g1.drawImage(aimage[2], i1 + aimage1[2].getWidth() + aimage1[0].getWidth(), j1, 0);
		if (byte0 == 1)
		{
			g1.drawImage(aimage[1], i1, j1 + aimage1[0].getHeight() + aimage1[2].getHeight(), 0);
			g1.drawImage(aimage[3], i1 + aimage1[2].getWidth() + aimage1[0].getWidth(), j1 + aimage1[0].getHeight() + aimage1[2].getHeight(), 0);
		}
	}

	private Image[] a(Image image, int i1, int j1, int k1, int l1, int i2, byte byte0)
	{
		Image image2 = null;
		Image image1;
		Graphics g1 = (image1 = Image.createImage(k1 - i1 * 2, j1)).getGraphics();
		a(g1, image, 0, i1, j1, 0, 0, image1.getWidth(), image1.getHeight(), (byte)0);
		Image image3;
		Image image5;
		if (byte0 == 1)
		{
			Graphics g2 = (image2 = Image.createImage(image1.getWidth(), image1.getHeight())).getGraphics();
			a(g2, image, 1, i1, j1, 0, 0, image2.getWidth(), image2.getHeight(), (byte)0);
			image5 = Image.createImage(k1 - i1 * 2, l1 - j1 * 2);
			image3 = Image.createImage(i1, l1 - j1 * 2);
		} else
		{
			image5 = Image.createImage(k1 - i1 * 2, l1 - j1);
			image3 = Image.createImage(i1, l1 - j1);
		}
		Graphics g5;
		(g5 = image5.getGraphics()).setColor(i2);
		g5.fillRect(0, 0, image5.getWidth(), image5.getHeight());
		Graphics g3 = image3.getGraphics();
		a(g3, image, 2, i1, j1, 0, 0, image3.getWidth(), image3.getHeight(), (byte)1);
		Image image4;
		Graphics g4 = (image4 = Image.createImage(image3.getWidth(), image3.getHeight())).getGraphics();
		a(g4, image, 3, i1, j1, 0, 0, image4.getWidth(), image4.getHeight(), (byte)1);
		return (new Image[] {
			image1, image2, image3, image4, image5
		});
	}

	private void h(Graphics g1)
	{
		g1.drawImage(B, t, u, 0);
		if (x > 0)
		{
			a(g1, D, 2, 9, 4, t + 1, y + 4, 9, x - 8, (byte)1);
			a(g1, D, t + 1, y, 0, 9, 4, 0);
			a(g1, D, t + 1, (y + x) - 4, 1, 9, 4, 0);
		}
		a(g1, C, t, u - 9, 0, 11, 9, 0);
		a(g1, C, t, u + w, 1, 11, 9, 0);
	}

	private void i(Graphics g1)
	{
		g1.drawImage(aI, super.e, aK, 0);
		g1.drawImage(aM, super.e, (aK + aH) - aN, 0);
		if (aT != null)
		{
			if (aV)
			{
				g1.setColor(0xffffff);
				g1.fillRect(aP - 2, (aK + aQ) - 2, aR + 3, aS + 3);
				g1.setColor(0xa4c7ed);
				g1.drawRect(aP - 2, (aK + aQ) - 2, aR + 3, aS + 3);
			}
			a(g1, aT, aP, aK + aQ, aU, aR, aS, 0);
		}
		g1.setFont(l);
		g1.setColor(0);
		int i1 = 0;
		for (int j1 = 0; j1 < aY.size(); j1++)
		{
			Object aobj[] = (Object[])aY.elementAt(j1);
			int k1 = bb != j1 ? 0 : 1;
			Image image;
			int l1 = (image = ((Image[])aobj[1])[k1]).getWidth() + 8;
			int i2 = aZ + i1;
			a(g1, image, bc[k1], i2, aK + ba + (bb != j1 ? 3 : 2));
			g1.drawString(aobj[0].toString(), i2 + l1 / 2, aK + ba + (bb != j1 ? 3 : 1) + (image.getHeight() - o) / 2, 17);
			i1 += l1;
		}

		if (aJ != null)
		{
			g1.setColor(0);
			g1.drawString(aJ, super.e + super.g / 2, aK + (aH - aN - m) / 2, 17);
		}
	}

	private void a(Graphics g1, Image image, Image image1, int i1, int j1)
	{
		g1.drawImage(image, i1 + 4, j1, 0);
		a(g1, image1, i1, j1, 0, 4, image1.getHeight(), 0);
		a(g1, image1, i1 + image.getWidth() + 4, j1, 1, 4, image1.getHeight(), 0);
	}

	private void z()
	{
		if (aB > 0)
		{
			if (aG > 0 && aB <= aG)
				aG--;
			aB--;
			return;
		} else
		{
			aB = (short)(aE.length - 1);
			aG = (short)(aE.length - au);
			return;
		}
	}

	private void A()
	{
		if (aB < aE.length - 1)
		{
			if (aB >= (aG + au) - 1)
				aG++;
			aB++;
			return;
		} else
		{
			aG = aB = 0;
			return;
		}
	}

	private void B()
	{
		if (at)
			if (an > 0)
			{
				if (ap > 0 && an <= ap)
					ap--;
				an--;
				return;
			} else
			{
				an = (short)(ao - 1);
				ap = (short)(ao - W);
				return;
			}
		if (ae > 0)
		{
			if (af > 0 && ae <= af)
				af--;
			ae--;
			return;
		} else
		{
			ae = (short)(Y.length - 1);
			af = (short)(Y.length - V);
			return;
		}
	}

	private void C()
	{
		if (at)
			if (an < ao - 1)
			{
				if (an >= (ap + W) - 1)
					ap++;
				an++;
				return;
			} else
			{
				ap = an = 0;
				return;
			}
		if (ae < Y.length - 1)
		{
			if (ae >= (af + V) - 1)
				af++;
			ae++;
			return;
		} else
		{
			af = ae = 0;
			return;
		}
	}

	private void D()
	{
		if (super.a != null)
			super.a.aio(7, aE[aB]);
		a(false);
	}

	private void E()
	{
		if (!at)
		{
			if (!e(true))
			{
				if (super.a != null)
					super.a.aio(7, Y[ae][1]);
				c(false);
				return;
			}
		} else
		{
			if (super.a != null)
				super.a.aio(7, aq[an]);
			c(false);
		}
	}

	public final void b(String s1)
	{
		if (Y != null && s1 == null)
		{
			j = null;
			K = null;
			a((Object[][])null);
			return;
		}
		if (Y != null && s1 != null)
		{
			j = s1;
			a((Object[][])null);
			return;
		} else
		{
			j = s1;
			return;
		}
	}

	public final void c(String s1)
	{
		k = s1;
	}

	protected final boolean a(byte byte0, int i1)
	{
		boolean flag = false;
		if (byte0 == 0)
		{
			if (bd != null)
				flag = true;
			if (p())
			{
				flag = true;
				if (i1 != -1 && i1 != -2)
				{
					if (i1 == -5 && super.a != null)
						super.a.aio(7, aE[aB]);
					a(false);
					return true;
				}
			}
			if (i1 == -6)
			{
				if (bd != null)
				{
					if (bh != null)
					{
						Object obj = bq;
						a(((String) (null)), ((String) (null)), ((String) (null)), 0, null);
						if (super.a != null)
							super.a.aio(10, ((Object) (new Object[] {
								new Boolean(true), obj
							})));
					}
				} else
				if (I)
					if (j != null && !j.equals("选项") && !j.equals("选择"))
					{
						if (super.a != null)
							super.a.aio(7, j);
						flag = true;
					} else
					if (Y != null)
					{
						if (!o())
							c(true);
						else
							E();
						flag = true;
					}
			} else
			if (i1 == -7)
			{
				if (bd != null)
				{
					if (bi != null)
					{
						Object obj1 = bq;
						a(((String) (null)), ((String) (null)), ((String) (null)), 0, null);
						if (super.a != null)
							super.a.aio(10, ((Object) (new Object[] {
								new Boolean(false), obj1
							})));
					}
				} else
				if (I)
					if (o())
					{
						c(false);
						flag = true;
					} else
					if (k != null)
					{
						if (super.a != null)
							super.a.aio(7, k);
						flag = true;
					}
			} else
			if (i1 == -1 || i1 == 50)
			{
				if (bd == null)
					if (o())
					{
						B();
						flag = true;
					} else
					if (p())
					{
						z();
						flag = true;
					}
			} else
			if (i1 == -2 || i1 == 56)
			{
				if (bd == null)
					if (o())
					{
						C();
						flag = true;
					} else
					if (p())
					{
						A();
						flag = true;
					}
			} else
			if (i1 == -4 || i1 == 54)
			{
				if (bd == null)
					if (o())
					{
						e(true);
						flag = true;
					} else
					if (aL && aY.size() > 0)
					{
						G();
						flag = true;
					}
			} else
			if (i1 == -3 || i1 == 52)
			{
				if (bd == null)
					if (o())
					{
						e(false);
						flag = true;
					} else
					if (aL && aY.size() > 0)
					{
						F();
						flag = true;
					}
			} else
			if (i1 == -5 || i1 == 53)
			{
				if (bd == null)
					if (o())
					{
						E();
						flag = true;
					} else
					if (p())
					{
						D();
						flag = true;
					}
			} else
			if (i1 == 42 || i1 == 35)
				super.a.aio(16, new Integer(i1));
		}
		return flag;
	}

	private void F()
	{
		bb--;
		if (bb < 0)
			bb = (short)(aY.size() - 1);
		if (super.a != null)
			super.a.aio(8, ((Object[])aY.elementAt(bb))[0]);
	}

	private void G()
	{
		bb++;
		if (bb > aY.size() - 1)
			bb = 0;
		if (super.a != null)
			super.a.aio(8, ((Object[])aY.elementAt(bb))[0]);
	}

	private boolean e(boolean flag)
	{
		Object obj;
		if ((obj = Y[ae][0]) != null)
		{
			if (flag)
			{
				if (!at)
				{
					ap = an = 0;
					if (pica.ui.h.g)
						am = (short)super.g;
					else
						am = ai;
					a(aq = (Object[])obj);
				}
				at = true;
				O = true;
				return true;
			}
			at = false;
			aq = null;
		}
		at = false;
		return at;
	}

	private static int b(int i1, int j1)
	{
		if (i1 % j1 == 0)
			return i1 / j1;
		else
			return i1 / j1 + 1;
	}

	private void a(Graphics g1, Image image, int i1, int j1, int k1, int l1, int i2, 
			int j2, int k2, byte byte0)
	{
		if (byte0 == 0)
		{
			int l2 = b(j2, j1);
			for (int j3 = 0; j3 < l2; j3++)
				a(g1, image, l1 + j3 * j1, i2, i1, j1, k1, 0);

			return;
		}
		if (byte0 == 1)
		{
			int i3 = b(k2, k1);
			for (int k3 = 0; k3 < i3; k3++)
				a(g1, image, l1, i2 + k3 * k1, i1, j1, k1, 0);

		}
	}

	private void a(Graphics g1, Image image, int i1, int j1, int k1, int l1, int i2, 
			int j2)
	{
		if ((j2 & 8) == 8)
			i1 -= l1;
		if ((j2 & 0x20) == 32)
			j1 -= i2;
		if ((j2 & 1) == 1)
			i1 -= l1 / 2;
		if ((j2 & 2) == 2)
			j1 -= i2 / 2;
		int k2 = image.getWidth() / l1;
		int l2 = k1 % k2;
		int i3 = (k1 - l2) / k2;
		g1.setClip(i1, j1, l1, i2);
		g1.drawImage(image, i1 - l2 * l1, j1 - i3 * i2, 0);
		g1.setClip(super.e, super.f, super.g, super.h);
	}

	public final void j()
	{
		b(((String) (null)));
		c(((String) (null)));
		c(false, false);
		b(((String []) (null)));
		b(0);
		a(((String) (null)));
		a(((Image) (null)), 0, 0, 0, false);
		a(false, false);
		a(((String []) (null)));
		a(false);
		a(((String) (null)), ((String) (null)), ((String) (null)), 0, null);
		b(false, false);
	}
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -