Quaqua 5.4.1 2009-07-14

ch.randelshofer.quaqua.jaguar
Class Quaqua14JaguarTabbedPaneUI

java.lang.Object
  extended by javax.swing.plaf.ComponentUI
      extended by javax.swing.plaf.TabbedPaneUI
          extended by javax.swing.plaf.basic.BasicTabbedPaneUI
              extended by ch.randelshofer.quaqua.jaguar.Quaqua13JaguarTabbedPaneUI
                  extended by ch.randelshofer.quaqua.jaguar.Quaqua14JaguarTabbedPaneUI
All Implemented Interfaces:
NavigatableTabbedPaneUI, VisuallyLayoutable, javax.swing.SwingConstants

public class Quaqua14JaguarTabbedPaneUI
extends Quaqua13JaguarTabbedPaneUI

A replacement for the AquaTabbedPaneUI for Mac OS X 10.2 Jaguar. Tabs of tabbed panes are stacked instead of moved into a popup menu, if not enough space is available to render all tabs in a single line.

Supports the following client properties on the children of the JTabbedPane: Quaqua.TabbedPaneChild.contentBackground specifies the background Color to be used to fill the content border. Quaqua.TabbedPaneChild.contentInsets specifies the insets to be used to lay out the child component inside the JTabbedPane.

Version:
1.0.1 2007-11-01 Fixed NPE which occurs when TabLayoutPolicy is set to Scroll.
1.0 2006-09-05 Created.
Author:
Werner Randelshofer, Staldenmattweg 2, CH-6405 Immensee, Switzerland

Nested Class Summary
 class Quaqua14JaguarTabbedPaneUI.TabSelectionHandler
          This inner class is marked "public" due to a compiler bug.
 
Nested classes/interfaces inherited from class ch.randelshofer.quaqua.jaguar.Quaqua13JaguarTabbedPaneUI
Quaqua13JaguarTabbedPaneUI.QuaquaMouseHandler, Quaqua13JaguarTabbedPaneUI.QuaquaPropertyChangeHandler, Quaqua13JaguarTabbedPaneUI.TabbedPaneLayout
 
Nested classes/interfaces inherited from class javax.swing.plaf.basic.BasicTabbedPaneUI
javax.swing.plaf.basic.BasicTabbedPaneUI.FocusHandler, javax.swing.plaf.basic.BasicTabbedPaneUI.MouseHandler, javax.swing.plaf.basic.BasicTabbedPaneUI.PropertyChangeHandler
 
Field Summary
 
Fields inherited from class ch.randelshofer.quaqua.jaguar.Quaqua13JaguarTabbedPaneUI
disabledForeground, minTabWidth, selectColor, selectHighlight, tabAreaBackground
 
Fields inherited from class javax.swing.plaf.basic.BasicTabbedPaneUI
calcRect, contentBorderInsets, darkShadow, downKey, focus, focusListener, highlight, leftKey, lightHighlight, maxTabHeight, maxTabWidth, mouseListener, propertyChangeListener, rects, rightKey, runCount, selectedRun, selectedTabPadInsets, shadow, tabAreaInsets, tabChangeListener, tabInsets, tabPane, tabRunOverlay, tabRuns, textIconGap, upKey
 
Fields inherited from interface ch.randelshofer.quaqua.VisuallyLayoutable
CLIP_BOUNDS, COMPONENT_BOUNDS, TEXT_BOUNDS
 
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
Quaqua14JaguarTabbedPaneUI()
           
 
Method Summary
protected  javax.swing.event.ChangeListener createChangeListener()
           
protected  java.awt.LayoutManager createLayoutManager()
           
static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent x)
           
protected  void installComponents()
           
protected  void paintText(java.awt.Graphics g, int tabPlacement, java.awt.Font font, java.awt.FontMetrics metrics, int tabIndex, java.lang.String title, java.awt.Rectangle textRect, boolean isSelected)
           
protected  void updateMnemonics()
          Reloads the mnemonics.
 
Methods inherited from class ch.randelshofer.quaqua.jaguar.Quaqua13JaguarTabbedPaneUI
addMnemonic, calculateMaxTabHeight, createMouseListener, createPropertyChangeListener, getBaseline, getColorForGap, getContentBorderInsets, getIndexForMnemonic, getPropertyPrefix, getTabAreaInsets, getTabInsets, getTabLabelShiftX, getTabLabelShiftY, getTabRunOverlay, getVisualBounds, getVisualMargin, installDefaults, navigateSelectedTab, paint, paintContentArea, paintContentBorder, paintContentBorderBottomEdge, paintContentBorderLeftEdge, paintContentBorderRightEdge, paintContentBorderTopEdge, paintFocusIndicator, paintHighlightBelowTab, paintTabArea, paintTabBackground, paintTabBorder, paintTabBorderBottom, paintTabBorderLeft, paintTabBorderRight, paintTabBorderTop, repaintTabArea, requestFocusForVisibleComponent, resetMnemonics, setPropertyPrefix, shouldFillGap, shouldPadTabRun, shouldRotateTabRuns, update
 
Methods inherited from class javax.swing.plaf.basic.BasicTabbedPaneUI
assureRectsCreated, calculateMaxTabWidth, calculateTabAreaHeight, calculateTabAreaWidth, calculateTabHeight, calculateTabWidth, createFocusListener, createScrollButton, expandTabRunsArray, getFocusIndex, getFontMetrics, getIconForTab, getMaximumSize, getMinimumSize, getNextTabIndex, getNextTabIndexInRun, getNextTabRun, getPreviousTabIndex, getPreviousTabIndexInRun, getPreviousTabRun, getRolloverTab, getRunForTab, getSelectedTabPadInsets, getTabBounds, getTabBounds, getTabRunCount, getTabRunIndent, getTabRunOffset, getTextViewForTab, getVisibleComponent, installKeyboardActions, installListeners, installUI, lastTabInRun, layoutLabel, paintIcon, paintTab, rotateInsets, selectAdjacentRunTab, selectNextTab, selectNextTabInRun, selectPreviousTab, selectPreviousTabInRun, setRolloverTab, setVisibleComponent, shouldRotateTabRuns, tabForCoordinate, uninstallComponents, uninstallDefaults, uninstallKeyboardActions, uninstallListeners, uninstallUI
 
Methods inherited from class javax.swing.plaf.ComponentUI
contains, getAccessibleChild, getAccessibleChildrenCount, getPreferredSize
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Quaqua14JaguarTabbedPaneUI

public Quaqua14JaguarTabbedPaneUI()
Method Detail

createUI

public static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent x)

createLayoutManager

protected java.awt.LayoutManager createLayoutManager()
Overrides:
createLayoutManager in class Quaqua13JaguarTabbedPaneUI

updateMnemonics

protected void updateMnemonics()
Reloads the mnemonics. This should be invoked when a memonic changes, when the title of a mnemonic changes, or when tabs are added/removed.

Overrides:
updateMnemonics in class Quaqua13JaguarTabbedPaneUI

paintText

protected void paintText(java.awt.Graphics g,
                         int tabPlacement,
                         java.awt.Font font,
                         java.awt.FontMetrics metrics,
                         int tabIndex,
                         java.lang.String title,
                         java.awt.Rectangle textRect,
                         boolean isSelected)
Overrides:
paintText in class Quaqua13JaguarTabbedPaneUI

installComponents

protected void installComponents()
Overrides:
installComponents in class javax.swing.plaf.basic.BasicTabbedPaneUI

createChangeListener

protected javax.swing.event.ChangeListener createChangeListener()
Overrides:
createChangeListener in class javax.swing.plaf.basic.BasicTabbedPaneUI

Copyright 2003-2007 (c) Werner Randelshofer.
All rights reserved.