protected boolean applyTabLayout(SingleRowPassInfo data, TabLabel label, int length) {
    TabLabel.TabLabelLayout layout = ObjectUtils.tryCast(label.getLayout(), TabLabel.TabLabelLayout.class);
    if (layout != null) {
      layout.setRightAlignment(false);
    }
    final Rectangle rec = getStrategy().getLayoutRect(data, data.position, length);
    if (data.hfToolbar.get() != null) {
      int startPosition = getStrategy().getStartPosition(data);
      if (rec.x < startPosition) {
        rec.width -= startPosition - rec.x;
        rec.x = startPosition;
        if (layout != null) {
          layout.setRightAlignment(true);
        }
      }
    }
    tabs.layout(label, rec);

    label.setAlignmentToCenter(tabs.isEditorTabs() && getStrategy().isToCenterTextWhenStretched());
    return true;
  }
protected boolean applyTabLayout(SingleRowPassInfo data, TabLabel label, int length)