Rectangle (SingleRowPassInfo data) { return new Rectangle(data.layoutSize.width - myTabs.getHeaderFitSize().width, 0, myTabs.getHeaderFitSize().width, myTabs.getTitleWrapper().getPreferredSize().height); }