@Override
  public Dimension getPreferredSize() {
    if (myOrientation == SeparatorOrientation.HORIZONTAL) {
      return new Dimension(0, myVGap * 2 + 1);
    }
    else {
      return new Dimension(myHGap * 2 + 1, 1 + ((myShadow != null) ? 1 : 0));
    }
  }
@Override
  public Dimension getPreferredSize()