Class FlatTabbedPaneUI

  • All Implemented Interfaces:
    FlatStylingSupport.StyleableUI, SwingConstants

    public class FlatTabbedPaneUI
    extends BasicTabbedPaneUI
    implements FlatStylingSupport.StyleableUI
    Provides the Flat LaF UI delegate for JTabbedPane.
    UiDefault:
    TabbedPane.font Font, TabbedPane.background Color, TabbedPane.foreground Color, TabbedPane.shadow Color used for cropped line, TabbedPane.textIconGap int, TabbedPane.tabInsets Insets, TabbedPane.selectedTabPadInsets Insets unused, TabbedPane.tabAreaInsets Insets, TabbedPane.tabsOverlapBorder boolean, TabbedPane.tabRunOverlay int, TabbedPane.tabsOpaque boolean, TabbedPane.contentOpaque boolean unused, TabbedPane.opaque boolean, TabbedPane.selectionFollowsFocus boolean default is true , TabbedPane.disabledForeground Color, TabbedPane.selectedBackground Color optional, TabbedPane.selectedForeground Color, TabbedPane.underlineColor Color, TabbedPane.inactiveUnderlineColor Color, TabbedPane.disabledUnderlineColor Color, TabbedPane.hoverColor Color, TabbedPane.focusColor Color, TabbedPane.tabSeparatorColor Color optional; defaults to TabbedPane.contentAreaColor, TabbedPane.contentAreaColor Color, TabbedPane.minimumTabWidth int optional, TabbedPane.maximumTabWidth int optional, TabbedPane.tabHeight int, TabbedPane.tabSelectionHeight int, TabbedPane.cardTabSelectionHeight int, TabbedPane.contentSeparatorHeight int, TabbedPane.showTabSeparators boolean, TabbedPane.tabSeparatorsFullHeight boolean, TabbedPane.hasFullBorder boolean, TabbedPane.rotateTabRuns boolean, TabbedPane.tabLayoutPolicy String wrap (default) or scroll, TabbedPane.tabType String underlined (default) or card, TabbedPane.tabsPopupPolicy String never or asNeeded (default), TabbedPane.scrollButtonsPolicy String never, asNeeded or asNeededSingle (default), TabbedPane.scrollButtonsPlacement String both (default) or trailing, TabbedPane.tabAreaAlignment String leading (default), center, trailing or fill, TabbedPane.tabAlignment String leading, center (default) or trailing, TabbedPane.tabWidthMode String preferred (default), equal or compact, ScrollPane.smoothScrolling boolean, TabbedPane.closeIcon Icon, TabbedPane.arrowType String chevron (default) or triangle, TabbedPane.buttonInsets Insets, TabbedPane.buttonArc int, TabbedPane.buttonHoverBackground Color, TabbedPane.buttonPressedBackground Color, TabbedPane.moreTabsButtonToolTipText String, TabbedPane.tabCloseToolTipText String
    ClientProperty:
    JTabbedPane.showTabSeparators boolean, JTabbedPane.hasFullBorder boolean
    • Field Detail

      • TAB_TYPE_UNDERLINED

        protected static final int TAB_TYPE_UNDERLINED
        Since:
        2
        See Also:
        Constant Field Values
      • foreground

        protected Color foreground
      • disabledForeground

        protected Color disabledForeground
      • selectedBackground

        protected Color selectedBackground
      • selectedForeground

        protected Color selectedForeground
      • underlineColor

        protected Color underlineColor
      • inactiveUnderlineColor

        protected Color inactiveUnderlineColor
        Since:
        2.2
      • disabledUnderlineColor

        protected Color disabledUnderlineColor
      • hoverColor

        protected Color hoverColor
      • focusColor

        protected Color focusColor
      • tabSeparatorColor

        protected Color tabSeparatorColor
      • contentAreaColor

        protected Color contentAreaColor
      • minimumTabWidth

        protected int minimumTabWidth
      • maximumTabWidth

        protected int maximumTabWidth
      • tabHeight

        protected int tabHeight
      • tabSelectionHeight

        protected int tabSelectionHeight
      • cardTabSelectionHeight

        protected int cardTabSelectionHeight
        Since:
        2
      • contentSeparatorHeight

        protected int contentSeparatorHeight
      • showTabSeparators

        protected boolean showTabSeparators
      • tabSeparatorsFullHeight

        protected boolean tabSeparatorsFullHeight
      • hasFullBorder

        protected boolean hasFullBorder
      • tabsOpaque

        protected boolean tabsOpaque
      • rotateTabRuns

        protected boolean rotateTabRuns
        Since:
        2.5
      • closeIcon

        protected Icon closeIcon
      • arrowType

        protected String arrowType
      • buttonInsets

        protected Insets buttonInsets
      • buttonArc

        protected int buttonArc
      • buttonHoverBackground

        protected Color buttonHoverBackground
      • buttonPressedBackground

        protected Color buttonPressedBackground
      • moreTabsButtonToolTipText

        protected String moreTabsButtonToolTipText
      • tabCloseToolTipText

        protected String tabCloseToolTipText
        Since:
        2
      • showContentSeparator

        protected boolean showContentSeparator
        Since:
        2
      • hideTabAreaWithOneTab

        protected boolean hideTabAreaWithOneTab
        Since:
        2
      • tabClosable

        protected boolean tabClosable
        Since:
        2
      • tabIconPlacement

        protected int tabIconPlacement
        Since:
        2
      • tabViewport

        protected JViewport tabViewport
    • Constructor Detail

      • FlatTabbedPaneUI

        public FlatTabbedPaneUI()