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

📄 progress.java

📁 一个j2me游戏开发引擎
💻 JAVA
字号:
// Decompiled by Jad v1.5.7g. Copyright 2000 Pavel Kouznetsov.
// Jad home page: http://www.geocities.com/SiliconValley/Bridge/8617/jad.html
// Decompiler options: packimports(3) fieldsfirst ansi 

package mmae.ui;

import javax.microedition.lcdui.Graphics;

// Referenced classes of package mmae.ui:
//            Base

public class Progress extends Base
{

    int b;

    public Progress(int i, int j, int k, int l)
    {
        super(i, j, k, l);
        b = 0;
    }

    public void setValue(int i)
    {
        b = i;
    }

    public int getValue()
    {
        return b;
    }

    public void draw(Graphics g)
    {
        if(visible)
        {
            g.setColor(0);
            g.drawRect(left, top, width, height);
            g.setColor(255, 255, 255);
            g.fillRect(left + 1, top + 1, width - 1, height - 1);
            if(colorBackR != -1)
                g.setColor(colorBackR, colorBackG, colorBackB);
            else
                g.setColor(0);
            int i;
            if(b > width - 2)
                i = b;
            else
                i = width - 2;
            g.fillRect(left + 1, top + 1, b, height - 1);
        }
    }
}

⌨️ 快捷键说明

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