com.jtattoo.plaf.graphite
Class GraphiteTabbedPaneUI

java.lang.Object
  extended by javax.swing.plaf.ComponentUI
      extended by javax.swing.plaf.TabbedPaneUI
          extended by com.jtattoo.plaf.BaseTabbedPaneUI
              extended by com.jtattoo.plaf.graphite.GraphiteTabbedPaneUI
All Implemented Interfaces:
SwingConstants

public class GraphiteTabbedPaneUI
extends BaseTabbedPaneUI

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.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, 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
GraphiteTabbedPaneUI()
           
 
Method Summary
static ComponentUI createUI(JComponent c)
           
protected  Color[] getContentBorderColors(int tabPlacement)
           
protected  Color getHiBorderColor(int tabIndex)
           
protected  Color getLoBorderColor(int tabIndex)
           
protected  Color getSelectedBorderColor(int tabIndex)
           
protected  Font getTabFont(boolean isSelected)
           
protected  void installComponents()
          Creates and installs any required subcomponents for the JTabbedPane.
protected  void paintContentBorder(Graphics g, int tabPlacement, int selectedIndex, int x, int y, int w, int h)
           
protected  void paintFocusIndicator(Graphics g, int tabPlacement, Rectangle[] rects, int tabIndex, Rectangle iconRect, Rectangle textRect, boolean isSelected)
           
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, getContentBorderColor, getContentBorderInsets, getFontMetrics, getGapColor, 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, installDefaults, installKeyboardActions, installListeners, installUI, lastTabInRun, layoutLabel, navigateSelectedTab, paint, paintBottomTabBorder, 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GraphiteTabbedPaneUI

public GraphiteTabbedPaneUI()
Method Detail

createUI

public static ComponentUI createUI(JComponent c)

installComponents

protected void installComponents()
Description copied from class: BaseTabbedPaneUI
Creates and installs any required subcomponents for the JTabbedPane. Invoked by installUI.

Overrides:
installComponents 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

getContentBorderColors

protected Color[] getContentBorderColors(int tabPlacement)
Overrides:
getContentBorderColors 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

paintFocusIndicator

protected void paintFocusIndicator(Graphics g,
                                   int tabPlacement,
                                   Rectangle[] rects,
                                   int tabIndex,
                                   Rectangle iconRect,
                                   Rectangle textRect,
                                   boolean isSelected)
Overrides:
paintFocusIndicator in class BaseTabbedPaneUI


Copyright © 2011. All Rights Reserved.