Package com.jtattoo.plaf.graphite
Class GraphiteTabbedPaneUI
java.lang.Object
javax.swing.plaf.ComponentUI
javax.swing.plaf.TabbedPaneUI
com.jtattoo.plaf.BaseTabbedPaneUI
com.jtattoo.plaf.graphite.GraphiteTabbedPaneUI
- All Implemented Interfaces:
SwingConstants
GraphiteTabbedPaneUI class.
Author Michael Hagen-
Nested Class Summary
Nested classes/interfaces inherited from class com.jtattoo.plaf.BaseTabbedPaneUI
BaseTabbedPaneUI.ArrowButton, 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.BaseTabbedPaneUI
calcRect, contentBorderInsets, focusListener, GAP, maxTabHeight, maxTabWidth, mouseListener, mouseMotionListener, NULL_BORDER_INSETS, oldRolloverIndex, propertyChangeListener, rects, rolloverIndex, roundedTabs, runCount, selectedColor, selectedRun, selectedTabPadInsets, simpleButtonBorder, tabAreaBackground, tabAreaInsets, tabChangeListener, tabComponentListener, tabInsets, tabPane, tabRunOverlay, tabRuns, textIconGap
Fields 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
-
Method Summary
Modifier and TypeMethodDescriptionstatic ComponentUI
protected Color[]
getContentBorderColors
(int tabPlacement) getContentBorderColors.protected Color
getLoBorderColor
(int tabIndex) getLoBorderColor.protected Font
getTabFont
(boolean isSelected) getTabFont.protected void
Creates and installs any required subcomponents for the JTabbedPane.protected void
paintFocusIndicator
(Graphics g, int tabPlacement, Rectangle[] rects, int tabIndex, Rectangle iconRect, Rectangle textRect, boolean isSelected) paintFocusIndicator.protected void
paintText
(Graphics g, int tabPlacement, Font font, FontMetrics metrics, int tabIndex, String title, Rectangle textRect, boolean isSelected) paintText.Methods inherited from class com.jtattoo.plaf.BaseTabbedPaneUI
assureRectsCreated, calculateMaxTabHeight, calculateMaxTabWidth, calculateTabAreaHeight, calculateTabAreaWidth, calculateTabHeight, calculateTabWidth, createChangeListener, createComponentListener, createFocusListener, createLayoutManager, createMouseListener, createMouseMotionListener, createPropertyChangeListener, expandTabRunsArray, getClosestTab, getContentBorderColor, getContentBorderInsets, getFontMetrics, getGapColor, getHiBorderColor, getIconForTab, getMaximumSize, getMinimumSize, getNextTabIndex, getNextTabIndexInRun, getNextTabRun, getPreferredSize, getPreviousTabIndex, getPreviousTabIndexInRun, getPreviousTabRun, getRunForTab, getSelectedTabPadInsets, getTabAreaInsets, getTabAtLocation, getTabBounds, getTabBounds, getTabColors, getTabInsets, getTabLabelShiftX, getTabLabelShiftY, getTabRunCount, getTabRunIndent, getTabRunOffset, getTabRunOverlay, getTextViewForTab, getVisibleComponent, hasInnerBorder, installDefaults, installKeyboardActions, installListeners, installUI, isContentOpaque, isTabOpaque, lastTabInRun, layoutLabel, navigateSelectedTab, paint, paintBottomTabBorder, paintContentBorder, paintIcon, paintLeftTabBorder, paintRightTabBorder, paintRoundedBottomTabBorder, paintRoundedTopTabBorder, paintScrollContentBorder, paintTab, paintTabArea, paintTabBackground, paintTabBorder, paintTopTabBorder, requestFocusForVisibleComponent, rotateInsets, scrollableTabLayoutEnabled, selectAdjacentRunTab, selectNextTab, selectNextTabInRun, selectPreviousTab, selectPreviousTabInRun, setVisibleComponent, shouldPadTabRun, shouldRotateTabRuns, tabForCoordinate, uninstallComponents, uninstallDefaults, uninstallKeyboardActions, uninstallListeners, uninstallUI
Methods inherited from class javax.swing.plaf.ComponentUI
contains, getAccessibleChild, getAccessibleChildrenCount, getBaseline, getBaselineResizeBehavior, update
-
Constructor Details
-
GraphiteTabbedPaneUI
public GraphiteTabbedPaneUI()
-
-
Method Details
-
createUI
-
getContentBorderColors
getContentBorderColors.
- Overrides:
getContentBorderColors
in classBaseTabbedPaneUI
- Parameters:
tabPlacement
- aInteger
object.- Returns:
- an array of
Color
objects.
-
getLoBorderColor
getLoBorderColor.
- Overrides:
getLoBorderColor
in classBaseTabbedPaneUI
- Parameters:
tabIndex
- aInteger
object.- Returns:
- a
Color
object.
-
getTabFont
getTabFont.
- Overrides:
getTabFont
in classBaseTabbedPaneUI
- Parameters:
isSelected
- a boolean.- Returns:
- a
Font
object.
-
installComponents
protected void installComponents()Creates and installs any required subcomponents for the JTabbedPane. Invoked by installUI.- Overrides:
installComponents
in classBaseTabbedPaneUI
-
paintFocusIndicator
protected void paintFocusIndicator(Graphics g, int tabPlacement, Rectangle[] rects, int tabIndex, Rectangle iconRect, Rectangle textRect, boolean isSelected) paintFocusIndicator.
- Overrides:
paintFocusIndicator
in classBaseTabbedPaneUI
- Parameters:
g
- aGraphics
object.tabPlacement
- aInteger
object.rects
- an array ofRectangle
objects.tabIndex
- aInteger
object.iconRect
- aRectangle
object.textRect
- aRectangle
object.isSelected
- a boolean.
-
paintText
protected void paintText(Graphics g, int tabPlacement, Font font, FontMetrics metrics, int tabIndex, String title, Rectangle textRect, boolean isSelected) paintText.
- Overrides:
paintText
in classBaseTabbedPaneUI
- Parameters:
g
- aGraphics
object.tabPlacement
- aInteger
object.font
- aFont
object.metrics
- aFontMetrics
object.tabIndex
- aInteger
object.title
- aString
object.textRect
- aRectangle
object.isSelected
- a boolean.
-