Creates a new instance of progress
(int x, int y, int width)
| 59 | |
| 60 | /** Creates a new instance of progress */ |
| 61 | public Progress(int x, int y, int width) { |
| 62 | this.x=x; |
| 63 | this.width=width; |
| 64 | this.font=FontCache.getFont(false, FontCache.bar); |
| 65 | this.height=font.getHeight(); |
| 66 | this.y=y-height; |
| 67 | this.topColor=ColorTheme.getColor(ColorTheme.PGS_COMPLETE_TOP); |
| 68 | //#ifdef GRADIENT |
| 69 | this.bottomColor=ColorTheme.getColor(ColorTheme.PGS_COMPLETE_BOTTOM); |
| 70 | if (topColor!=bottomColor) |
| 71 | this.gr=new Gradient(x, y-height, x+width, y, topColor, bottomColor, false); |
| 72 | //#endif |
| 73 | } |
| 74 | |
| 75 | public void draw(Graphics g, int filled, String text) { |
| 76 | g.setColor(ColorTheme.getColor(ColorTheme.PGS_REMAINED)); |