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

📄 ab.java

📁 现在非常流行的手机网游的源码,可以下载来学习学习.
💻 JAVA
字号:
import javax.microedition.lcdui.Font;
import javax.microedition.lcdui.Graphics;

public final class ab extends n
{
  public String a = null;
  private int i = 0;
  private int j = 2;
  public byte b = 1;

  public ab(int paramInt1, int paramInt2, int paramInt3, int paramInt4, String paramString, byte paramByte)
  {
    super(paramInt1, paramInt2, paramInt3, paramInt4);
    this.b = paramByte;
    this.a = paramString;
    this.jdField_a_of_type_Int = (n.jdField_a_of_type_JavaxMicroeditionLcduiFont.stringWidth(paramString) + 4);
    this.b = (n.f + 2);
    this.i = 0;
  }

  public final void a(Graphics paramGraphics)
  {
    if ((this.jdField_a_of_type_Boolean) || (this.b != 0))
    {
      if (this.j < 2)
        paramGraphics.setColor(15653280);
      else
        paramGraphics.setColor(0);
      paramGraphics.fillRect(this.c, this.d, this.jdField_a_of_type_Int + 1, this.b + 1);
    }
    paramGraphics.setColor(15653280);
    if (this.b == 1)
    {
      if (this.jdField_a_of_type_Boolean)
      {
        if (++this.i > 3)
          this.i = 0;
        if ((this.i < 2) && (this.j >= 2))
          paramGraphics.drawRect(this.c + 1, this.d + 1, this.jdField_a_of_type_Int, this.b);
        else
          paramGraphics.drawRect(this.c, this.d, this.jdField_a_of_type_Int + 2, this.b + 2);
      }
      else
      {
        paramGraphics.drawRect(this.c + 1, this.d + 1, this.jdField_a_of_type_Int, this.b);
      }
    }
    else if (this.jdField_a_of_type_Boolean)
    {
      paramGraphics.setColor(16573497);
      paramGraphics.drawRect(this.c + 1, this.d + 3, this.jdField_a_of_type_Int, this.b + 1);
    }
    if (this.j < 2)
      paramGraphics.setColor(8487297);
    else
      paramGraphics.setColor(15653280);
    paramGraphics.drawString(this.a, this.c + 4, this.d + 4, 20);
  }

  public final void a(boolean paramBoolean)
  {
    super.a(paramBoolean);
    if (paramBoolean)
      this.i = 0;
  }
}

⌨️ 快捷键说明

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