use of main.swing.generic.misc.ValueBar in project Eidolons by IDemiurge.
the class BarPanel method refresh.
public void refresh() {
for (ValueBar bar : bars.values()) {
bar.setObj(getObj());
bar.refresh();
}
}
use of main.swing.generic.misc.ValueBar in project Eidolons by IDemiurge.
the class BarPanel method initBars.
public void initBars() {
panel = new G_Panel("flowy");
int i = 0;
for (PARAMETER v : vals) {
ValueBar valueBar = new ValueBar(v, colors.get(i)) {
public void refresh() {
super.refresh();
c_val = max_val;
max_val = 100;
percentage = c_val * MathMaster.MULTIPLIER / max_val;
}
protected PARAMETER getPercentageParameter(PARAMETER param) {
return null;
}
};
bars.put(v, valueBar);
panel.add(valueBar, "w " + getWidth() + ",h " + getHeight());
i++;
}
}