示例#1
0
 private void adjustTotalOverview(
     ILabelledAlotmentView alotmentView, int currentValue, int maxValue) {
   alotmentView.setValue(currentValue);
   alotmentView.setAlotment(maxValue);
   ValueLegalityState state =
       currentValue > maxValue ? ValueLegalityState.High : ValueLegalityState.Okay;
   alotmentView.setTextColor(new LegalityColorProvider().getTextColor(state));
 }
 private void setTotalViewColor() {
   boolean overspent = management.getTotalCosts() > getTotalXP();
   totalView.setTextColor(
       overspent ? LegalityColorProvider.COLOR_HIGH : LegalityColorProvider.COLOR_OKAY);
 }