@Override
  public float getLayoutAlignmentX(Container container) {
    Component component = getComponent(container);
    return component != null ? component.getAlignmentX() : Component.CENTER_ALIGNMENT;
  }
@Override
  public float getLayoutAlignmentX(Container container)