Class FlatTabbedPaneUI
java.lang.Object
javax.swing.plaf.ComponentUI
javax.swing.plaf.TabbedPaneUI
javax.swing.plaf.basic.BasicTabbedPaneUI
com.formdev.flatlaf.ui.FlatTabbedPaneUI
- All Implemented Interfaces:
FlatStylingSupport.StyleableUI, FlatTitlePane.TitleBarCaptionHitTest, SwingConstants
public class FlatTabbedPaneUI
extends BasicTabbedPaneUI
implements FlatStylingSupport.StyleableUI, FlatTitlePane.TitleBarCaptionHitTest
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 optional, TabbedPane.underlineColor Color, TabbedPane.inactiveUnderlineColor Color, TabbedPane.disabledUnderlineColor Color, TabbedPane.hoverColor Color optional, TabbedPane.hoverForeground Color optional, TabbedPane.focusColor Color optional, TabbedPane.focusForeground Color optional, 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.tabArc int, TabbedPane.tabSelectionArc int, TabbedPane.cardTabArc int, TabbedPane.selectedInsets Insets, TabbedPane.tabSelectionInsets Insets, 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, TabbedPane.tabRotation String none (default), auto, left or right, 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
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected classprotected classprotected classprotected classLayout manager for wrap tab layout policy (and base class for scroll tab layout policy).protected classLayout manager used for scroll tab layout policy.protected classNested classes/interfaces inherited from class BasicTabbedPaneUI
BasicTabbedPaneUI.FocusHandler, BasicTabbedPaneUI.MouseHandler, BasicTabbedPaneUI.PropertyChangeHandler, BasicTabbedPaneUI.TabbedPaneLayout, BasicTabbedPaneUI.TabSelectionHandler -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Stringprotected static final intprotected static final intprotected static final intprotected static final intprotected intprotected Colorprotected Insetsprotected Colorprotected intprotected intprotected Iconprotected Colorprotected intprotected Colorprotected Colorprotected static final intprotected Colorprotected Colorprotected Colorprotected booleanprotected booleanprotected Colorprotected Colorprotected Colorprotected intprotected intprotected Stringprotected static final intprotected static final intprotected booleanprotected Colorprotected Colorprotected Insetsprotected booleanprotected booleanprotected static final intprotected static final intprotected intprotected booleanprotected Stringprotected intprotected intprotected intprotected intprotected Insetsprotected Colorprotected booleanprotected booleanprotected JViewportprotected Colorprotected FlatTabbedPaneUI.FlatWheelTabScrollerprotected static final intprotected static final intprotected static final intprotected static final intFields inherited from class BasicTabbedPaneUI
calcRect, contentBorderInsets, darkShadow, downKey, focus, focusListener, highlight, leftKey, lightHighlight, maxTabHeight, maxTabWidth, mouseListener, propertyChangeListener, rects, rightKey, runCount, selectedRun, selectedTabPadInsets, shadow, tabAreaInsets, tabChangeListener, tabInsets, tabPane, tabRunOverlay, tabRuns, textIconGap, upKeyFields inherited from interface SwingConstants
BOTTOM, CENTER, EAST, HORIZONTAL, LEADING, LEFT, NEXT, NORTH, NORTH_EAST, NORTH_WEST, PREVIOUS, RIGHT, SOUTH, SOUTH_EAST, SOUTH_WEST, TOP, TRAILING, VERTICAL, WEST -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidapplyStyle(Object style) protected ObjectapplyStyleProperty(String key, Object value) protected intcalculateMaxTabHeight(int tabPlacement) protected intcalculateMaxTabWidth(int tabPlacement) protected intcalculateTabAreaHeight(int tabPlacement, int horizRunCount, int maxTabHeight) protected intcalculateTabAreaWidth(int tabPlacement, int vertRunCount, int maxTabWidth) protected intcalculateTabHeight(int tabPlacement, int tabIndex, int fontHeight) protected intcalculateTabWidth(int tabPlacement, int tabIndex, FontMetrics metrics) protected voidcloseTab(int tabIndex) protected ShapecreateCardTabInnerPath(int tabPlacement, int x, int y, int w, int h) protected ShapecreateCardTabOuterPath(int tabPlacement, int x, int y, int w, int h) protected ChangeListenerprotected FocusListenerprotected LayoutManagerprotected JButtonprotected MouseListenerprotected PropertyChangeListenerprotected JButtoncreateScrollButton(int direction) protected LayoutManagerstatic ComponentUIprotected FlatTabbedPaneUI.FlatWheelTabScrollerprotected voidprotected voidprotected voidprotected InsetsgetContentBorderInsets(int tabPlacement) The content border insets are used to create a separator between tabs and content.protected InsetsgetRealTabAreaInsets(int tabPlacement) protected intgetRealTabRotation(int tabPlacement) protected intprotected intprotected InsetsgetSelectedTabPadInsets(int tabPlacement) getStyleableValue(JComponent c, String key) protected intgetTabAlignment(int tabIndex) protected intprotected InsetsgetTabAreaInsets(int tabPlacement) protected ColorgetTabBackground(int tabPlacement, int tabIndex, boolean isSelected) protected RectanglegetTabBounds(int tabIndex, Rectangle dest) protected ObjectgetTabClientProperty(int tabIndex, String key) protected intgetTabClientPropertyInt(int tabIndex, String key, int defaultValue) protected RectanglegetTabCloseBounds(int tabIndex, int x, int y, int w, int h, Rectangle dest) protected RectanglegetTabCloseHitArea(int tabIndex) protected ColorgetTabForeground(int tabPlacement, int tabIndex, boolean isSelected) protected InsetsgetTabInsets(int tabPlacement, int tabIndex) protected InsetsgetTabInsetsRotated(int tabPlacement, int tabIndex, int rotation) protected intgetTabLabelShiftX(int tabPlacement, int tabIndex, boolean isSelected) protected intgetTabLabelShiftY(int tabPlacement, int tabIndex, boolean isSelected) protected intprotected intprotected intprotected intprotected booleanprotected voidprotected voidprotected voidprotected voidprotected voidprotected voidprotected voidprotected voidvoidprotected booleanisHorizontalTabPlacement(int tabPlacement) protected booleanprotected booleanprotected booleanprotected booleanprotected booleanisTabClosable(int tabIndex) isTitleBarCaptionAt(int x, int y) Invoked for a component that is enabled and has mouse listeners, to check whether it processes mouse input at the given x/y location.protected StringlayoutAndClipLabel(int tabPlacement, FontMetrics metrics, int tabIndex, String title, Icon icon, Rectangle tabRect, Rectangle iconRect, Rectangle textRect, boolean isSelected) voidpaint(Graphics g, JComponent c) protected voidpaintCardTabBorder(Graphics g, int tabPlacement, int tabIndex, int x, int y, int w, int h) protected voidpaintContentBorder(Graphics g, int tabPlacement, int selectedIndex) Actually does nearly the same as super.paintContentBorder() but - not using UIManager.getColor("TabbedPane.contentAreaColor") to be GUI builder friendly - tabsOverlapBorder is always true - paint full border (if enabled) - not invoking paintContentBorder*Edge() methods - repaint selection - painting active tab border styleprotected voidpaintFocusIndicator(Graphics g, int tabPlacement, Rectangle[] rects, int tabIndex, Rectangle iconRect, Rectangle textRect, boolean isSelected) protected voidpaintIcon(Graphics g, int tabPlacement, int tabIndex, Icon icon, Rectangle iconRect, boolean isSelected) protected voidpaintTab(Graphics g, int tabPlacement, Rectangle[] rects, int tabIndex, Rectangle iconRect, Rectangle textRect) protected voidpaintTabArea(Graphics g, int tabPlacement, int selectedIndex) protected voidpaintTabBackground(Graphics g, int tabPlacement, int tabIndex, int x, int y, int w, int h, boolean isSelected) protected voidpaintTabBorder(Graphics g, int tabPlacement, int tabIndex, int x, int y, int w, int h, boolean isSelected) protected voidpaintTabCloseButton(Graphics g, int tabIndex, int x, int y, int w, int h) protected voidpaintTabSelection(Graphics g, int tabPlacement, int tabIndex, int x, int y, int w, int h) protected voidpaintTabSeparator(Graphics g, int tabPlacement, int x, int y, int w, int h) protected voidpaintText(Graphics g, int tabPlacement, Font font, FontMetrics metrics, int tabIndex, String title, Rectangle textRect, boolean isSelected) protected static intparseAlignment(String str, int defaultValue) protected static intprotected static intprotected static intprotected static intparseTabRotation(String str) protected static intprotected static intparseTabType(String str) protected static intparseTabWidthMode(String str) protected voidsetPressedTabClose(boolean pressed) protected voidsetRolloverTab(int index) protected voidsetRolloverTab(int x, int y) protected voidsetRolloverTabClose(boolean rollover) protected booleanshouldRotateTabRuns(int tabPlacement) inttabForCoordinate(JTabbedPane pane, int x, int y) protected voidprotected voidprotected voidprotected voidprotected voidprotected voidvoidupdate(Graphics g, JComponent c) Methods inherited from class BasicTabbedPaneUI
assureRectsCreated, expandTabRunsArray, getBaseline, getBaseline, getBaselineOffset, getBaselineResizeBehavior, getFocusIndex, getFontMetrics, getIconForTab, getMaximumSize, getMinimumSize, getNextTabIndex, getNextTabIndexInRun, getNextTabRun, getPreviousTabIndex, getPreviousTabIndexInRun, getPreviousTabRun, getRolloverTab, getRunForTab, getTabBounds, getTabRunCount, getTabRunIndent, getTabRunOffset, getTabRunOverlay, getTextViewForTab, getVisibleComponent, lastTabInRun, layoutLabel, navigateSelectedTab, paintContentBorderBottomEdge, paintContentBorderLeftEdge, paintContentBorderRightEdge, paintContentBorderTopEdge, rotateInsets, selectAdjacentRunTab, selectNextTab, selectNextTabInRun, selectPreviousTab, selectPreviousTabInRun, setVisibleComponent, shouldPadTabRun, uninstallKeyboardActions, uninstallUIMethods inherited from class ComponentUI
contains, getAccessibleChild, getAccessibleChildrenCount, getPreferredSize
-
Field Details
-
TAB_TYPE_UNDERLINED
protected static final int TAB_TYPE_UNDERLINED- Since:
- 2
- See Also:
-
TAB_TYPE_CARD
protected static final int TAB_TYPE_CARD- Since:
- 2
- See Also:
-
NEVER
protected static final int NEVER- See Also:
-
AS_NEEDED
protected static final int AS_NEEDED- See Also:
-
AS_NEEDED_SINGLE
protected static final int AS_NEEDED_SINGLE- See Also:
-
BOTH
protected static final int BOTH- See Also:
-
FILL
protected static final int FILL- See Also:
-
WIDTH_MODE_PREFERRED
protected static final int WIDTH_MODE_PREFERRED- See Also:
-
WIDTH_MODE_EQUAL
protected static final int WIDTH_MODE_EQUAL- See Also:
-
WIDTH_MODE_COMPACT
protected static final int WIDTH_MODE_COMPACT- See Also:
-
WIDTH_MODE_ICON_ONLY
protected static final int WIDTH_MODE_ICON_ONLY- Since:
- 3.7
- See Also:
-
NONE
protected static final int NONE- Since:
- 3.3
- See Also:
-
AUTO
protected static final int AUTO- Since:
- 3.3
- See Also:
-
foreground
-
disabledForeground
-
selectedBackground
-
selectedForeground
-
underlineColor
-
inactiveUnderlineColor
- Since:
- 2.2
-
disabledUnderlineColor
-
hoverColor
-
hoverForeground
- Since:
- 3.1
-
focusColor
-
focusForeground
- Since:
- 3.1
-
tabSeparatorColor
-
contentAreaColor
-
minimumTabWidth
protected int minimumTabWidth -
maximumTabWidth
protected int maximumTabWidth -
tabHeight
protected int tabHeight -
tabSelectionHeight
protected int tabSelectionHeight -
cardTabSelectionHeight
protected int cardTabSelectionHeight- Since:
- 2
-
tabArc
protected int tabArc- Since:
- 3.2
-
tabSelectionArc
protected int tabSelectionArc- Since:
- 3.2
-
cardTabArc
protected int cardTabArc- Since:
- 3.2
-
selectedInsets
- Since:
- 3.2
-
tabSelectionInsets
- Since:
- 3.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
-
arrowType
-
buttonInsets
-
buttonArc
protected int buttonArc -
buttonHoverBackground
-
buttonPressedBackground
-
moreTabsButtonToolTipText
-
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
-
wheelTabScroller
-
-
Constructor Details
-
FlatTabbedPaneUI
public FlatTabbedPaneUI()
-
-
Method Details
-
createUI
-
installUI
- Overrides:
installUIin classBasicTabbedPaneUI
-
installDefaults
protected void installDefaults()- Overrides:
installDefaultsin classBasicTabbedPaneUI
-
uninstallDefaults
protected void uninstallDefaults()- Overrides:
uninstallDefaultsin classBasicTabbedPaneUI
-
installComponents
protected void installComponents()- Overrides:
installComponentsin classBasicTabbedPaneUI
-
uninstallComponents
protected void uninstallComponents()- Overrides:
uninstallComponentsin classBasicTabbedPaneUI
-
installLeadingComponent
protected void installLeadingComponent() -
uninstallLeadingComponent
protected void uninstallLeadingComponent() -
installTrailingComponent
protected void installTrailingComponent() -
uninstallTrailingComponent
protected void uninstallTrailingComponent() -
installListeners
protected void installListeners()- Overrides:
installListenersin classBasicTabbedPaneUI
-
uninstallListeners
protected void uninstallListeners()- Overrides:
uninstallListenersin classBasicTabbedPaneUI
-
installKeyboardActions
protected void installKeyboardActions()- Overrides:
installKeyboardActionsin classBasicTabbedPaneUI
-
createWheelTabScroller
-
createMouseListener
- Overrides:
createMouseListenerin classBasicTabbedPaneUI
-
createPropertyChangeListener
- Overrides:
createPropertyChangeListenerin classBasicTabbedPaneUI
-
createChangeListener
- Overrides:
createChangeListenerin classBasicTabbedPaneUI
-
createFocusListener
- Overrides:
createFocusListenerin classBasicTabbedPaneUI
-
createLayoutManager
- Overrides:
createLayoutManagerin classBasicTabbedPaneUI
-
createScrollLayoutManager
-
createMoreTabsButton
-
createScrollButton
- Overrides:
createScrollButtonin classBasicTabbedPaneUI
-
installStyle
protected void installStyle()- Since:
- 2
-
applyStyle
- Since:
- 2
-
applyStyleProperty
-
getStyleableInfos
- Specified by:
getStyleableInfosin interfaceFlatStylingSupport.StyleableUI- Since:
- 2
-
getStyleableValue
- Specified by:
getStyleableValuein interfaceFlatStylingSupport.StyleableUI- Since:
- 2.5
-
setRolloverTab
protected void setRolloverTab(int x, int y) -
setRolloverTab
protected void setRolloverTab(int index) - Overrides:
setRolloverTabin classBasicTabbedPaneUI
-
isRolloverTabClose
protected boolean isRolloverTabClose() -
setRolloverTabClose
protected void setRolloverTabClose(boolean rollover) -
isPressedTabClose
protected boolean isPressedTabClose() -
setPressedTabClose
protected void setPressedTabClose(boolean pressed) -
calculateTabWidth
- Overrides:
calculateTabWidthin classBasicTabbedPaneUI
-
calculateTabHeight
protected int calculateTabHeight(int tabPlacement, int tabIndex, int fontHeight) - Overrides:
calculateTabHeightin classBasicTabbedPaneUI
-
calculateMaxTabWidth
protected int calculateMaxTabWidth(int tabPlacement) - Overrides:
calculateMaxTabWidthin classBasicTabbedPaneUI
-
calculateMaxTabHeight
protected int calculateMaxTabHeight(int tabPlacement) - Overrides:
calculateMaxTabHeightin classBasicTabbedPaneUI
-
calculateTabAreaWidth
protected int calculateTabAreaWidth(int tabPlacement, int vertRunCount, int maxTabWidth) - Overrides:
calculateTabAreaWidthin classBasicTabbedPaneUI
-
calculateTabAreaHeight
protected int calculateTabAreaHeight(int tabPlacement, int horizRunCount, int maxTabHeight) - Overrides:
calculateTabAreaHeightin classBasicTabbedPaneUI
-
getTabInsets
- Overrides:
getTabInsetsin classBasicTabbedPaneUI
-
getTabInsetsRotated
- Since:
- 3.3
-
getSelectedTabPadInsets
- Overrides:
getSelectedTabPadInsetsin classBasicTabbedPaneUI
-
getRealTabAreaInsets
-
getTabAreaInsets
- Overrides:
getTabAreaInsetsin classBasicTabbedPaneUI
-
getContentBorderInsets
The content border insets are used to create a separator between tabs and content. If client property JTabbedPane.hasFullBorder is true, then the content border insets are also used for the border.- Overrides:
getContentBorderInsetsin classBasicTabbedPaneUI
-
getTabLabelShiftX
protected int getTabLabelShiftX(int tabPlacement, int tabIndex, boolean isSelected) - Overrides:
getTabLabelShiftXin classBasicTabbedPaneUI
-
getTabLabelShiftY
protected int getTabLabelShiftY(int tabPlacement, int tabIndex, boolean isSelected) - Overrides:
getTabLabelShiftYin classBasicTabbedPaneUI
-
update
- Overrides:
updatein classComponentUI
-
paint
- Overrides:
paintin classBasicTabbedPaneUI
-
paintTabArea
- Overrides:
paintTabAreain classBasicTabbedPaneUI
-
paintTab
-
paintText
protected void paintText(Graphics g, int tabPlacement, Font font, FontMetrics metrics, int tabIndex, String title, Rectangle textRect, boolean isSelected) - Overrides:
paintTextin classBasicTabbedPaneUI
-
paintIcon
protected void paintIcon(Graphics g, int tabPlacement, int tabIndex, Icon icon, Rectangle iconRect, boolean isSelected) - Overrides:
paintIconin classBasicTabbedPaneUI
-
getTabForeground
- Since:
- 3.1
-
paintTabBackground
protected void paintTabBackground(Graphics g, int tabPlacement, int tabIndex, int x, int y, int w, int h, boolean isSelected) - Overrides:
paintTabBackgroundin classBasicTabbedPaneUI
-
getTabBackground
- Since:
- 2
-
paintTabBorder
protected void paintTabBorder(Graphics g, int tabPlacement, int tabIndex, int x, int y, int w, int h, boolean isSelected) - Overrides:
paintTabBorderin classBasicTabbedPaneUI
-
paintCardTabBorder
protected void paintCardTabBorder(Graphics g, int tabPlacement, int tabIndex, int x, int y, int w, int h) - Since:
- 2
-
createCardTabOuterPath
- Since:
- 3.2
-
createCardTabInnerPath
- Since:
- 3.2
-
paintTabCloseButton
-
paintTabSeparator
-
paintTabSelection
protected void paintTabSelection(Graphics g, int tabPlacement, int tabIndex, int x, int y, int w, int h) -
isTabbedPaneOrChildFocused
protected boolean isTabbedPaneOrChildFocused()- Since:
- 2.2
-
paintContentBorder
Actually does nearly the same as super.paintContentBorder() but - not using UIManager.getColor("TabbedPane.contentAreaColor") to be GUI builder friendly - tabsOverlapBorder is always true - paint full border (if enabled) - not invoking paintContentBorder*Edge() methods - repaint selection - painting active tab border style- Overrides:
paintContentBorderin classBasicTabbedPaneUI
-
paintFocusIndicator
protected void paintFocusIndicator(Graphics g, int tabPlacement, Rectangle[] rects, int tabIndex, Rectangle iconRect, Rectangle textRect, boolean isSelected) - Overrides:
paintFocusIndicatorin classBasicTabbedPaneUI
-
layoutAndClipLabel
-
getRealTabRotation
protected int getRealTabRotation(int tabPlacement) - Since:
- 3.3
-
tabForCoordinate
- Overrides:
tabForCoordinatein classBasicTabbedPaneUI
-
getTabBounds
- Overrides:
getTabBoundsin classBasicTabbedPaneUI
-
getTabCloseBounds
-
getTabCloseHitArea
-
isTabClosable
protected boolean isTabClosable(int tabIndex) -
closeTab
protected void closeTab(int tabIndex) -
getTabClientProperty
-
getTabClientPropertyInt
-
ensureCurrentLayout
protected void ensureCurrentLayout() -
shouldRotateTabRuns
protected boolean shouldRotateTabRuns(int tabPlacement) - Overrides:
shouldRotateTabRunsin classBasicTabbedPaneUI
-
isHorizontalTabPlacement
protected boolean isHorizontalTabPlacement(int tabPlacement) - Since:
- 3.3
-
isSmoothScrollingEnabled
protected boolean isSmoothScrollingEnabled() -
hideTabArea
protected boolean hideTabArea() -
getTabType
protected int getTabType()- Since:
- 2
-
getTabsPopupPolicy
protected int getTabsPopupPolicy() -
getScrollButtonsPolicy
protected int getScrollButtonsPolicy() -
getScrollButtonsPlacement
protected int getScrollButtonsPlacement() -
getTabAreaAlignment
protected int getTabAreaAlignment() -
getTabAlignment
protected int getTabAlignment(int tabIndex) -
getTabWidthMode
protected int getTabWidthMode() -
getTabRotation
protected int getTabRotation()- Since:
- 3.3
-
parseTabType
- Since:
- 2
-
parseTabsPopupPolicy
-
parseScrollButtonsPolicy
-
parseScrollButtonsPlacement
-
parseAlignment
-
parseTabWidthMode
-
parseTabRotation
- Since:
- 3.3
-
parseTabIconPlacement
-
ensureSelectedTabIsVisibleLater
protected void ensureSelectedTabIsVisibleLater() -
ensureSelectedTabIsVisible
protected void ensureSelectedTabIsVisible() -
isTitleBarCaptionAt
Description copied from interface:FlatTitlePane.TitleBarCaptionHitTestInvoked for a component that is enabled and has mouse listeners, to check whether it processes mouse input at the given x/y location. Useful for components that do not use mouse input on whole component bounds. E.g. a tabbed pane with a few tabs has some empty space beside the tabs that can be used to move the window.Note:
- This method is invoked often when mouse is moved over window title bar area and should therefore return quickly.
- This method is invoked on 'AWT-Windows' thread (not 'AWT-EventQueue' thread) while processing Windows messages. It must not change any component property or layout because this could cause a dead lock.
- Specified by:
isTitleBarCaptionAtin interfaceFlatTitlePane.TitleBarCaptionHitTest- Returns:
trueif the component is not interested in mouse input at the given locationfalseif the component wants process mouse input at the given locationnullif the component children should be checked- Since:
- 3.4
-