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

📄 a.java

📁 牛人写的java版的中国移动飞信的源代码
💻 JAVA
字号:
import java.util.Vector;
import javax.microedition.lcdui.Graphics;

final class a
{

    int a;
    int b;
    int c;
    Vector d;
    private int g;
    boolean e;
    boolean f;

    a()
    {
        a = 0;
        b = 0;
        c = 0;
        d = new Vector(1, 1);
        e = true;
        f = true;
    }

    public final int a()
    {
        return g;
    }

    public final void a(int i1)
    {
        g = i1;
    }

    public final void a(Graphics g1)
    {
        if(!e)
        {
            return;
        }
        if(d.size() == 0)
        {
            b = c = a = 0;
            return;
        }
        if(c < 0)
        {
            c = 0;
        }
        int i1;
        if((i1 = c + (e.n - 1)) > d.size() - 1)
        {
            i1 = d.size() - 1;
            c = i1 - (e.n - 1);
            if(c < 0)
            {
                c = 0;
            }
        }
        int j1 = g + 1 + b * (e.l + 1);
        if(f)
        {
            g1.setColor(0x899bff);
            g1.fillRect(1, j1, 174, e.m);
        }
        int k1 = g + 1 + 1;
        Object obj = null;
        h h2 = h();
        if(f)
        {
            h2.f = true;
        }
        for(int l1 = c; l1 <= i1; l1++)
        {
            h h1;
            (h1 = (h)d.elementAt(l1)).a(1, k1, g1);
            k1 = k1 + e.l + 1;
        }

        h2.f = false;
    }

    public final void a(Vector vector)
    {
        d.ensureCapacity(vector.size() + d.size());
        for(int i1 = 0; i1 < vector.size(); i1++)
        {
            d.addElement(vector.elementAt(i1));
        }

    }

    public final void a(h h1)
    {
        d.insertElementAt(h1, 0);
        c = b = a = 0;
    }

    public final void b(h h1)
    {
        d.addElement(h1);
    }

    public final void b()
    {
        if(a > 0)
        {
            a--;
        }
        if(b > 0)
        {
            b--;
            return;
        }
        if(b == 0)
        {
            c--;
        }
    }

    public final void c()
    {
        if(a < d.size() - 1)
        {
            a++;
        }
        if(b < e.n - 1)
        {
            b++;
        } else
        if(b == e.n - 1)
        {
            c++;
        }
        if(d.size() < e.n && a == d.size() - 1)
        {
            b = a;
        }
    }

    public final void d()
    {
        if(d.size() < e.n)
        {
            return;
        }
        a = a + e.n;
        c = c + e.n;
        if(c > d.size() - e.n)
        {
            c = d.size() - e.n;
            a = d.size() - 1;
            b = e.n - 1;
        }
    }

    public final void e()
    {
        if(d.size() < e.n)
        {
            return;
        }
        a = a - e.n;
        c = c - e.n;
        if(c < 0)
        {
            f();
        }
    }

    public final void f()
    {
        c = 0;
        a = 0;
        b = 0;
    }

    public final void g()
    {
        a = d.size() - 1;
        if(d.size() >= e.n) goto _L2; else goto _L1
_L1:
        b = a;
        this;
        0;
          goto _L3
_L2:
        b = e.n - 1;
        this;
        d.size() - e.n;
_L3:
        c;
    }

    public final h h()
    {
        if(d.size() == 0)
        {
            return null;
        } else
        {
            return (h)d.elementAt(a);
        }
    }

    public final h i()
    {
        Object obj = d.lastElement();
        d.removeElementAt(d.size() - 1);
        c = b = a = 0;
        return (h)obj;
    }

    public final boolean c(h h1)
    {
        c = b = a = 0;
        return d.removeElement(h1);
    }

    public final void a(h h1, int i1)
    {
        int j1;
        if((j1 = d.indexOf(h1)) != -1 && j1 != i1)
        {
            Object obj = d.elementAt(j1);
            d.removeElementAt(j1);
            d.insertElementAt(obj, i1);
            c = b = a = 0;
        }
    }

    public final int j()
    {
        return d.size();
    }

    public final boolean k()
    {
        return a == j() - 1 || j() == 0;
    }

    public final boolean l()
    {
        return a == 0 || j() == 0;
    }
}

⌨️ 快捷键说明

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