Package com.jtattoo.plaf.texture
Class TextureTabbedPaneUI
java.lang.Object
javax.swing.plaf.ComponentUI
javax.swing.plaf.TabbedPaneUI
com.jtattoo.plaf.base.BaseTabbedPaneUI
com.jtattoo.plaf.texture.TextureTabbedPaneUI
- All Implemented Interfaces:
SwingConstants
TextureTabbedPaneUI 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[]getContentBorderColors(int tabPlacement) getContentBorderColors.protected ColorgetLoBorderColor(int tabIndex) getLoBorderColor.protected intgetSelectedTexture.protected FontgetTabFont(boolean isSelected) getTabFont.protected intgetTexture.protected intgetUnSelectedTexture(int tabIndex) getUnSelectedTexture.protected voidCreates and installs any required subcomponents for the JTabbedPane.protected voidpaintContentBorder(Graphics g, int tabPlacement, int selectedIndex, int x, int y, int w, int h) paintContentBorder.protected voidpaintTabBackground(Graphics g, int tabPlacement, int tabIndex, int x, int y, int w, int h, boolean isSelected) paintTabBackground.protected voidpaintText(Graphics g, int tabPlacement, Font font, FontMetrics metrics, int tabIndex, String title, Rectangle textRect, boolean isSelected) paintText.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, 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, paintFocusIndicator, paintIcon, paintLeftTabBorder, paintRightTabBorder, paintRoundedBottomTabBorder, paintRoundedTopTabBorder, paintScrollContentBorder, paintTab, paintTabArea, paintTabBorder, 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
-
TextureTabbedPaneUI
public TextureTabbedPaneUI()
-
-
Method Details
-
createUI
-
getContentBorderColors
getContentBorderColors.
- Overrides:
getContentBorderColorsin classBaseTabbedPaneUI- Parameters:
tabPlacement- aIntegerobject.- Returns:
- an array of
Colorobjects.
-
getLoBorderColor
getLoBorderColor.
- Overrides:
getLoBorderColorin classBaseTabbedPaneUI- Parameters:
tabIndex- aIntegerobject.- Returns:
- a
Colorobject.
-
getSelectedTexture
protected int getSelectedTexture()getSelectedTexture.
- Returns:
- a
Integerobject.
-
getTabFont
getTabFont.
- Overrides:
getTabFontin classBaseTabbedPaneUI- Parameters:
isSelected- a boolean.- Returns:
- a
Fontobject.
-
getTexture
protected int getTexture()getTexture.
- Returns:
- a
Integerobject.
-
getUnSelectedTexture
protected int getUnSelectedTexture(int tabIndex) getUnSelectedTexture.
-
installComponents
protected void installComponents()Creates and installs any required subcomponents for the JTabbedPane. Invoked by installUI.- Overrides:
installComponentsin classBaseTabbedPaneUI
-
paintContentBorder
protected void paintContentBorder(Graphics g, int tabPlacement, int selectedIndex, int x, int y, int w, int h) paintContentBorder.
- Overrides:
paintContentBorderin classBaseTabbedPaneUI- Parameters:
g- aGraphicsobject.tabPlacement- aIntegerobject.selectedIndex- aIntegerobject.x- aIntegerobject.y- aIntegerobject.w- aIntegerobject.h- aIntegerobject.
-
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.
-
paintText
protected void paintText(Graphics g, int tabPlacement, Font font, FontMetrics metrics, int tabIndex, String title, Rectangle textRect, boolean isSelected) paintText.
- Overrides:
paintTextin classBaseTabbedPaneUI- Parameters:
g- aGraphicsobject.tabPlacement- aIntegerobject.font- aFontobject.metrics- aFontMetricsobject.tabIndex- aIntegerobject.title- aStringobject.textRect- aRectangleobject.isSelected- a boolean.
-