Package com.jtattoo.plaf.luna
Class LunaTabbedPaneUI
java.lang.Object
javax.swing.plaf.ComponentUI
javax.swing.plaf.TabbedPaneUI
com.jtattoo.plaf.BaseTabbedPaneUI
com.jtattoo.plaf.luna.LunaTabbedPaneUI
- All Implemented Interfaces:
SwingConstants
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[]
getTabColors
(int tabIndex, boolean isSelected, boolean isRollover) getTabColors.protected Font
getTabFont
(boolean isSelected) getTabFont.protected boolean
hasInnerBorder.protected void
Creates and installs any required subcomponents for the JTabbedPane.void
installDefaults.protected void
paintTabBackground
(Graphics g, int tabPlacement, int tabIndex, int x, int y, int w, int h, boolean isSelected) paintTabBackground.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, 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, 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, uninstallUI
Methods inherited from class javax.swing.plaf.ComponentUI
contains, getAccessibleChild, getAccessibleChildrenCount, getBaseline, getBaselineResizeBehavior, update
-
Constructor Details
-
LunaTabbedPaneUI
public LunaTabbedPaneUI()
-
-
Method Details
-
createUI
-
getContentBorderColors
getContentBorderColors.
- Overrides:
getContentBorderColors
in classBaseTabbedPaneUI
- Parameters:
tabPlacement
- aInteger
object.- Returns:
- an array of
Color
objects.
-
getTabColors
getTabColors.
- Overrides:
getTabColors
in classBaseTabbedPaneUI
- Parameters:
tabIndex
- aInteger
object.isSelected
- a boolean.isRollover
- a boolean.- Returns:
- an array of
Color
objects.
-
getTabFont
getTabFont.
- Overrides:
getTabFont
in classBaseTabbedPaneUI
- Parameters:
isSelected
- a boolean.- Returns:
- a
Font
object.
-
hasInnerBorder
protected boolean hasInnerBorder()hasInnerBorder.
- Overrides:
hasInnerBorder
in classBaseTabbedPaneUI
- Returns:
- a boolean.
-
installComponents
protected void installComponents()Creates and installs any required subcomponents for the JTabbedPane. Invoked by installUI.- Overrides:
installComponents
in classBaseTabbedPaneUI
-
installDefaults
public void installDefaults()installDefaults.
- Overrides:
installDefaults
in classBaseTabbedPaneUI
-
paintTabBackground
protected void paintTabBackground(Graphics g, int tabPlacement, int tabIndex, int x, int y, int w, int h, boolean isSelected) paintTabBackground.
- Overrides:
paintTabBackground
in classBaseTabbedPaneUI
- Parameters:
g
- aGraphics
object.tabPlacement
- aInteger
object.tabIndex
- aInteger
object.x
- aInteger
object.y
- aInteger
object.w
- aInteger
object.h
- aInteger
object.isSelected
- a boolean.
-