code: @Override protected void handleEvents(final String EVENT_TYPE) {
          if ("RESIZE".equals(EVENT_TYPE)) {
              resize();
              redraw();
          }else if ("REDRAW".equals(EVENT_TYPE)) {
              redraw();
          } else if ("VISIBILITY".equals(EVENT_TYPE)) {
              Helper.enableNode(titleText, !gauge.getTitle().isEmpty());
              Helper.enableNode(unitText, !gauge.getUnit().isEmpty());
              redraw();
          } else if ("RESIZE".equals(EVENT_TYPE)) {
              resize();
          } else if ("RECALC".equals(EVENT_TYPE)) {
              if (Orientation.VERTICAL == orientation) {
                  width    = height / aspectRatio;
                  stepSize = (0.79699248 * height) / gauge.getRange();
              } else {
                  height   = width / aspectRatio;
                  stepSize = (0.79699248 * width) / gauge.getRange();
              }
              resize();
              redraw();
              updateBar();
          } else if ("FINISHED".equals(EVENT_TYPE)) {
              barTooltip.setText(formatNumber(gauge.getLocale(), gauge.getFormatString(), gauge.getDecimals(), gauge.getValue()));
          }
      }
docs: ******************** Methods *******************************************