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