public void draw(GOut g) { if (vis()) { int cx = (sflarp.sz().x / 2) - (schain.sz().x / 2); for (int y = 0; y < sz.y; y += schain.sz().y - 1) g.image(schain, new Coord(cx, y)); double a = (double) val / (double) (max - min); int fy = (int) ((sz.y - sflarp.sz().y) * a); g.image(sflarp, new Coord(0, fy)); } }
public void draw(GOut g) { super.draw(g); if (error != null) g.image( error.tex(), new Coord( CustomConfig.windowCenter.x - (error.sz().x / 2), CustomConfig.windowCenter.y + 200)); if (progress != null) g.image( progress.tex(), new Coord( CustomConfig.windowCenter.x + 20 - (progress.sz().x / 2), CustomConfig.windowCenter.y + 50)); }
public void draw(GOut g, Coord tl, Coord sz) { g.image( this.bt, tl.add(new Coord(this.ctl.sz().x, 0)), new Coord(sz.x - this.ctr.sz().x - this.ctl.sz().x, this.bt.sz().y)); g.image( this.bb, tl.add(new Coord(this.cbl.sz().x, sz.y - this.bb.sz().y)), new Coord(sz.x - this.cbr.sz().x - this.cbl.sz().x, this.bb.sz().y)); g.image( this.bl, tl.add(new Coord(0, this.ctl.sz().y)), new Coord(this.bl.sz().x, sz.y - this.cbl.sz().y - this.ctl.sz().y)); g.image( this.br, tl.add(new Coord(sz.x - this.br.sz().x, this.ctr.sz().y)), new Coord(this.br.sz().x, sz.y - this.cbr.sz().y - this.ctr.sz().y)); g.image(this.ctl, tl); g.image(this.ctr, tl.add(sz.x - this.ctr.sz().x, 0)); g.image(this.cbl, tl.add(0, sz.y - this.cbl.sz().y)); g.image(this.cbr, new Coord(sz.x - this.cbr.sz().x + tl.x, sz.y - this.cbr.sz().y + tl.y)); }
public void draw(GOut g) { g.image(label.tex(), new Coord((sz.x / 2) - (label.sz().x / 2), 0)); super.draw(g); }