Package com.jtattoo.plaf.aluminium
Class AluminiumTabbedPaneUI
java.lang.Object
javax.swing.plaf.ComponentUI
javax.swing.plaf.TabbedPaneUI
com.jtattoo.plaf.base.BaseTabbedPaneUI
com.jtattoo.plaf.aluminium.AluminiumTabbedPaneUI
- All Implemented Interfaces:
SwingConstants
AluminiumTabbedPaneUI class.
Author Michael Hagen-
Nested Class Summary
Nested classes/interfaces inherited from class com.jtattoo.plaf.base.BaseTabbedPaneUI
BaseTabbedPaneUI.FocusHandler, BaseTabbedPaneUI.MouseHandler, BaseTabbedPaneUI.MouseMotionHandler, BaseTabbedPaneUI.MyTabComponentListener, BaseTabbedPaneUI.PropertyChangeHandler, BaseTabbedPaneUI.TabbedPaneLayout, BaseTabbedPaneUI.TabComponentHandler, BaseTabbedPaneUI.TabSelectionHandler -
Field Summary
Fields inherited from class com.jtattoo.plaf.base.BaseTabbedPaneUI
calcRect, contentBorderInsets, focusListener, GAP, maxTabHeight, maxTabWidth, mnemonicToIndexMap, mouseListener, mouseMotionListener, NULL_BORDER_INSETS, oldRolloverIndex, propertyChangeListener, rects, rolloverIndex, roundedTabs, runCount, selectedColor, selectedRun, selectedTabPadInsets, simpleButtonBorder, tabAreaBackground, tabAreaInsets, tabChangeListener, tabComponentListener, tabInsets, tabPane, tabRunOverlay, tabRuns, tabScroller, textIconGapFields inherited from interface javax.swing.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 TypeMethodDescriptionstatic ComponentUIprotected Color[]getTabColors(int tabIndex, boolean isSelected, boolean isRollover) getTabColors.protected FontgetTabFont(boolean isSelected) getTabFont.protected booleanhasInnerBorder.voidinstallDefaults.protected voidpaintTabBackground(Graphics g, int tabPlacement, int tabIndex, int x, int y, int w, int h, boolean isSelected) paintTabBackground.Methods inherited from class com.jtattoo.plaf.base.BaseTabbedPaneUI
assureRectsCreated, calculateMaxTabHeight, calculateMaxTabWidth, calculateTabAreaHeight, calculateTabAreaWidth, calculateTabHeight, calculateTabWidth, createChangeListener, createComponentListener, createFocusListener, createLayoutManager, createMouseListener, createMouseMotionListener, createPropertyChangeListener, expandTabRunsArray, getClosestTab, getContentBorderColor, getContentBorderColors, getContentBorderInsets, getFontMetrics, getGapColor, getHiBorderColor, getIconForTab, getLoBorderColor, getMaximumSize, getMinimumSize, getNextTabIndex, getNextTabIndexInRun, getNextTabRun, getPreferredSize, getPreviousTabIndex, getPreviousTabIndexInRun, getPreviousTabRun, getRunForTab, getSelectedTabPadInsets, getTabAreaInsets, getTabAtLocation, getTabBounds, getTabBounds, getTabInsets, getTabLabelShiftX, getTabLabelShiftY, getTabRunCount, getTabRunIndent, getTabRunOffset, getTabRunOverlay, getTextViewForTab, getVisibleComponent, installComponents, installKeyboardActions, installListeners, installUI, isContentOpaque, isTabOpaque, lastTabInRun, layoutLabel, navigateSelectedTab, paint, paintBottomTabBorder, paintContentBorder, paintFocusIndicator, paintIcon, paintLeftTabBorder, paintRightTabBorder, paintRoundedBottomTabBorder, paintRoundedTopTabBorder, paintScrollContentBorder, paintTab, paintTabArea, paintTabBorder, paintText, paintTopTabBorder, requestFocusForVisibleComponent, rotateInsets, scrollableTabLayoutEnabled, selectAdjacentRunTab, selectNextTab, selectNextTabInRun, selectPreviousTab, selectPreviousTabInRun, setVisibleComponent, shouldPadTabRun, shouldRotateTabRuns, tabForCoordinate, uninstallComponents, uninstallDefaults, uninstallKeyboardActions, uninstallListeners, uninstallUIMethods inherited from class javax.swing.plaf.ComponentUI
contains, getAccessibleChild, getAccessibleChildrenCount, getBaseline, getBaselineResizeBehavior, update
-
Constructor Details
-
AluminiumTabbedPaneUI
public AluminiumTabbedPaneUI()
-
-
Method Details
-
createUI
-
getTabColors
getTabColors.
- Overrides:
getTabColorsin classBaseTabbedPaneUI- Parameters:
tabIndex- aIntegerobject.isSelected- a boolean.isRollover- a boolean.- Returns:
- an array of
Colorobjects.
-
getTabFont
getTabFont.
- Overrides:
getTabFontin classBaseTabbedPaneUI- Parameters:
isSelected- a boolean.- Returns:
- a
Fontobject.
-
hasInnerBorder
protected boolean hasInnerBorder()hasInnerBorder.
- Overrides:
hasInnerBorderin classBaseTabbedPaneUI- Returns:
- a boolean.
-
installDefaults
public void installDefaults()installDefaults.
- Overrides:
installDefaultsin classBaseTabbedPaneUI
-
paintTabBackground
protected void paintTabBackground(Graphics g, int tabPlacement, int tabIndex, int x, int y, int w, int h, boolean isSelected) paintTabBackground.
- Overrides:
paintTabBackgroundin classBaseTabbedPaneUI- Parameters:
g- aGraphicsobject.tabPlacement- aIntegerobject.tabIndex- aIntegerobject.x- aIntegerobject.y- aIntegerobject.w- aIntegerobject.h- aIntegerobject.isSelected- a boolean.
-