code: @Override
      public int getIconHeight(SynthContext context) {
          if (context == null) {
              return height;
          }
  
          JComponent c = context.getComponent();
  
          if (c instanceof JToolBar) {
              JToolBar toolbar = (JToolBar) c;
  
              if (toolbar.getOrientation() == JToolBar.HORIZONTAL) {
  
                  // we only do the -1 hack for UIResource borders, assuming
                  // that the border is probably going to be our border
                  if (toolbar.getBorder() instanceof UIResource) {
                      return c.getHeight() - 1;
                  } else {
                      return c.getHeight();
                  }
              } else {
                  return scale(context, width);
              }
          } else {
              return scale(context, height);
          }
      }
docs: Returns the icon's height. This is a cover method for <code>
  getIconHeight(null)</code>.
  
  @param  context the SynthContext describing the component/region, the
  style, and the state.
  
  @return an int specifying the fixed height of the icon.