code: private void init(final int WIDTH) {
          if (WIDTH <= 1) {
              return;
          }
  
          if (ledImageOff != null) {
              ledImageOff.flush();
          }
          ledImageOff = create_LED_Image(WIDTH, 0, ledColor, ledType);
  
          if (ledImageOn != null) {
              ledImageOn.flush();
          }
          ledImageOn = create_LED_Image(WIDTH, 1, ledColor, ledType);
  
          if (ledOn) {
              setCurrentLedImage(ledImageOn);
          } else {
              setCurrentLedImage(ledImageOff);
          }
      }
docs: <editor-fold defaultstate="collapsed" desc="Initialization">