@Override protected int getTabLabelShiftX ( final int tabPlacement, final int tabIndex, final boolean isSelected ) { if ( tabbedPaneStyle.equals ( TabbedPaneStyle.standalone ) ) { return super.getTabLabelShiftX ( tabPlacement, tabIndex, isSelected ); } else { return 0; } }
@Override protected int getTabLabelShiftX(int tabPlacement, int tabIndex, boolean isSelected) { int delta = 0; if (SubstanceCoreUtilities.hasCloseButton(this.tabPane, tabIndex)) { if (this.tabPane.getComponentOrientation().isLeftToRight()) { delta = 5 - SubstanceCoreUtilities.getCloseButtonSize( this.tabPane, tabIndex); } else { delta = SubstanceCoreUtilities.getCloseButtonSize(this.tabPane, tabIndex) - 5; } } return delta + super.getTabLabelShiftX(tabPlacement, tabIndex, isSelected); }
@Override protected int getTabLabelShiftX(int tabPlacement, int tabIndex, boolean isSelected) { int delta = 0; if (SubstanceCoreUtilities.hasCloseButton(this.tabPane, tabIndex)) { if (this.tabPane.getComponentOrientation().isLeftToRight()) { delta = 5 - SubstanceCoreUtilities.getCloseButtonSize( this.tabPane, tabIndex); } else { delta = SubstanceCoreUtilities.getCloseButtonSize(this.tabPane, tabIndex) - 5; } } return delta + super.getTabLabelShiftX(tabPlacement, tabIndex, isSelected); }