com.jtattoo.plaf.hifi
Class HiFiTabbedPaneUI

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.hifi.HiFiTabbedPaneUI
All Implemented Interfaces:
SwingConstants

public class HiFiTabbedPaneUI
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
HiFiTabbedPaneUI()
           
 
Method Summary
static ComponentUI createUI(JComponent c)
           
protected  Color[] getContentBorderColors(int tabPlacement)
           
protected  void paintContentBorder(Graphics g, int tabPlacement, int selectedIndex, int x, int y, int w, int h)
           
protected  void paintRoundedTopTabBorder(int tabIndex, Graphics g, int x1, int y1, int x2, int y2, 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, getHiBorderColor, getIconForTab, getLoBorderColor, getMaximumSize, getMinimumSize, getNextTabIndex, getNextTabIndexInRun, getNextTabRun, getPreferredSize, getPreviousTabIndex, getPreviousTabIndexInRun, getPreviousTabRun, getRunForTab, getSelectedBorderColor, getSelectedTabPadInsets, getTabAreaInsets, getTabAtLocation, getTabBounds, getTabBounds, getTabColors, getTabFont, getTabInsets, getTabLabelShiftX, getTabLabelShiftY, getTabRunCount, getTabRunIndent, getTabRunOffset, getTabRunOverlay, getTextViewForTab, getVisibleComponent, installComponents, installDefaults, installKeyboardActions, installListeners, installUI, lastTabInRun, layoutLabel, navigateSelectedTab, paint, paintBottomTabBorder, paintFocusIndicator, paintIcon, paintLeftTabBorder, paintRightTabBorder, paintRoundedBottomTabBorder, 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

HiFiTabbedPaneUI

public HiFiTabbedPaneUI()
Method Detail

createUI

public static ComponentUI createUI(JComponent c)

getContentBorderColors

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

paintContentBorder

protected void paintContentBorder(Graphics g,
                                  int tabPlacement,
                                  int selectedIndex,
                                  int x,
                                  int y,
                                  int w,
                                  int h)
Overrides:
paintContentBorder in class BaseTabbedPaneUI

paintRoundedTopTabBorder

protected void paintRoundedTopTabBorder(int tabIndex,
                                        Graphics g,
                                        int x1,
                                        int y1,
                                        int x2,
                                        int y2,
                                        boolean isSelected)
Overrides:
paintRoundedTopTabBorder in class BaseTabbedPaneUI


Copyright © 2011. All Rights Reserved.