com.jtattoo.plaf.acryl
Class AcrylTabbedPaneUI
java.lang.Object
javax.swing.plaf.ComponentUI
javax.swing.plaf.TabbedPaneUI
com.jtattoo.plaf.BaseTabbedPaneUI
com.jtattoo.plaf.acryl.AcrylTabbedPaneUI
- All Implemented Interfaces:
- SwingConstants
public class AcrylTabbedPaneUI
- extends BaseTabbedPaneUI
author Michael Hagen
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, 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 |
Method Summary |
static ComponentUI |
createUI(JComponent c)
|
protected Color |
getContentBorderColor()
|
protected Color[] |
getContentBorderColors(int tabPlacement)
|
protected Color |
getGapColor(int tabIndex)
|
protected Color |
getHiBorderColor(int tabIndex)
|
protected Color |
getLoBorderColor(int tabIndex)
|
protected Color |
getSelectedBorderColor(int tabIndex)
|
protected Color[] |
getTabColors(int tabIndex,
boolean isSelected)
|
protected Font |
getTabFont(boolean isSelected)
|
void |
installDefaults()
|
protected void |
paintContentBorder(Graphics g,
int tabPlacement,
int selectedIndex,
int x,
int y,
int w,
int h)
|
protected void |
paintText(Graphics g,
int tabPlacement,
Font font,
FontMetrics metrics,
int tabIndex,
String title,
Rectangle textRect,
boolean isSelected)
|
Methods inherited from class com.jtattoo.plaf.BaseTabbedPaneUI |
assureRectsCreated, calculateMaxTabHeight, calculateMaxTabWidth, calculateTabAreaHeight, calculateTabAreaWidth, calculateTabHeight, calculateTabWidth, createChangeListener, createFocusListener, createLayoutManager, createMouseListener, createMouseMotionListener, createPropertyChangeListener, expandTabRunsArray, getClosestTab, getContentBorderInsets, getFontMetrics, getIconForTab, 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, lastTabInRun, layoutLabel, navigateSelectedTab, paint, paintBottomTabBorder, paintFocusIndicator, 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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AcrylTabbedPaneUI
public AcrylTabbedPaneUI()
createUI
public static ComponentUI createUI(JComponent c)
installDefaults
public void installDefaults()
- Overrides:
installDefaults
in class BaseTabbedPaneUI
getTabColors
protected Color[] getTabColors(int tabIndex,
boolean isSelected)
- Overrides:
getTabColors
in class BaseTabbedPaneUI
getContentBorderColors
protected Color[] getContentBorderColors(int tabPlacement)
- Overrides:
getContentBorderColors
in class BaseTabbedPaneUI
getContentBorderColor
protected Color getContentBorderColor()
- Overrides:
getContentBorderColor
in class BaseTabbedPaneUI
getSelectedBorderColor
protected Color getSelectedBorderColor(int tabIndex)
- Overrides:
getSelectedBorderColor
in class BaseTabbedPaneUI
getLoBorderColor
protected Color getLoBorderColor(int tabIndex)
- Overrides:
getLoBorderColor
in class BaseTabbedPaneUI
getHiBorderColor
protected Color getHiBorderColor(int tabIndex)
- Overrides:
getHiBorderColor
in class BaseTabbedPaneUI
getGapColor
protected Color getGapColor(int tabIndex)
- Overrides:
getGapColor
in class BaseTabbedPaneUI
getTabFont
protected Font getTabFont(boolean isSelected)
- Overrides:
getTabFont
in class BaseTabbedPaneUI
paintContentBorder
protected void paintContentBorder(Graphics g,
int tabPlacement,
int selectedIndex,
int x,
int y,
int w,
int h)
- Overrides:
paintContentBorder
in class BaseTabbedPaneUI
paintText
protected void paintText(Graphics g,
int tabPlacement,
Font font,
FontMetrics metrics,
int tabIndex,
String title,
Rectangle textRect,
boolean isSelected)
- Overrides:
paintText
in class BaseTabbedPaneUI
Copyright © 2011. All Rights Reserved.