com.miami.romeo.settings
Class SingleRowTabbedPaneUI

java.lang.Object
  extended byjavax.swing.plaf.ComponentUI
      extended byjavax.swing.plaf.TabbedPaneUI
          extended byjavax.swing.plaf.basic.BasicTabbedPaneUI
              extended byjavax.swing.plaf.metal.MetalTabbedPaneUI
                  extended bycom.miami.romeo.settings.SingleRowTabbedPaneUI
All Implemented Interfaces:
javax.swing.SwingConstants

public class SingleRowTabbedPaneUI
extends javax.swing.plaf.metal.MetalTabbedPaneUI

Version:
1.0 07/09/99

Nested Class Summary
protected  class SingleRowTabbedPaneUI.ShiftTabs
           
 
Nested classes inherited from class javax.swing.plaf.metal.MetalTabbedPaneUI
javax.swing.plaf.metal.MetalTabbedPaneUI.TabbedPaneLayout
 
Nested classes 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, javax.swing.plaf.basic.BasicTabbedPaneUI.TabSelectionHandler
 
Field Summary
protected  java.awt.event.ActionListener[] buttonListeners
           
 
Fields inherited from class javax.swing.plaf.metal.MetalTabbedPaneUI
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 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
SingleRowTabbedPaneUI()
           
 
Method Summary
protected  void assureRectsCreated(int tabCount)
           
protected  int calculateMaxTabHeight(int tabPlacement)
           
protected  int calculateTabWidth(int tabPlacement, int tabIndex, java.awt.FontMetrics metrics)
           
protected  java.awt.LayoutManager createLayoutManager()
           
protected  void ensureCurrentLayout()
           
protected  void ensureVisibleTabAt(int index)
           
protected  java.awt.FontMetrics getFontMetrics()
           
protected  java.awt.Insets getTabAreaInsets(int tabPlacement)
           
protected  void installComponents()
           
protected  void installListeners()
           
 void installUI(javax.swing.JComponent c)
           
protected  int lastTabInRun(int tabCount, int run)
           
 void paint(java.awt.Graphics g, javax.swing.JComponent c)
           
protected  void paintContentBorderBottomEdge(java.awt.Graphics g, int tabPlacement, int selectedIndex, int x, int y, int w, int h)
           
protected  void paintContentBorderTopEdge(java.awt.Graphics g, int tabPlacement, int selectedIndex, int x, int y, int w, int h)
           
protected  void selectNextTab(int current)
           
protected  void selectPreviousTab(int current)
           
protected  void setButtonsEnabled()
           
 int tabForCoordinate(javax.swing.JTabbedPane pane, int x, int y)
           
protected  void uninstallComponents()
           
protected  void uninstallListeners()
           
 void uninstallUI(javax.swing.JComponent c)
           
 
Methods inherited from class javax.swing.plaf.metal.MetalTabbedPaneUI
createUI, getColorForGap, getTabLabelShiftX, getTabLabelShiftY, getTabRunOverlay, installDefaults, paintBottomTabBorder, paintContentBorderLeftEdge, paintContentBorderRightEdge, paintFocusIndicator, paintHighlightBelowTab, paintLeftTabBorder, paintRightTabBorder, paintTabBackground, paintTabBorder, paintTopTabBorder, shouldFillGap, shouldPadTabRun, shouldRotateTabRuns, update
 
Methods inherited from class javax.swing.plaf.basic.BasicTabbedPaneUI
calculateMaxTabWidth, calculateTabAreaHeight, calculateTabAreaWidth, calculateTabHeight, createChangeListener, createFocusListener, createMouseListener, createPropertyChangeListener, expandTabRunsArray, getContentBorderInsets, getIconForTab, getMaximumSize, getMinimumSize, getNextTabIndex, getNextTabIndexInRun, getNextTabRun, getPreferredSize, getPreviousTabIndex, getPreviousTabIndexInRun, getPreviousTabRun, getRunForTab, getSelectedTabPadInsets, getTabBounds, getTabBounds, getTabInsets, getTabRunCount, getTabRunIndent, getTabRunOffset, getTextViewForTab, getVisibleComponent, installKeyboardActions, layoutLabel, navigateSelectedTab, paintContentBorder, paintIcon, paintTab, paintTabArea, paintText, rotateInsets, selectAdjacentRunTab, selectNextTabInRun, selectPreviousTabInRun, setVisibleComponent, shouldRotateTabRuns, uninstallDefaults, uninstallKeyboardActions
 
Methods inherited from class javax.swing.plaf.ComponentUI
contains, getAccessibleChild, getAccessibleChildrenCount
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

buttonListeners

protected java.awt.event.ActionListener[] buttonListeners
Constructor Detail

SingleRowTabbedPaneUI

public SingleRowTabbedPaneUI()
Method Detail

installUI

public void installUI(javax.swing.JComponent c)

uninstallUI

public void uninstallUI(javax.swing.JComponent c)

createLayoutManager

protected java.awt.LayoutManager createLayoutManager()

installComponents

protected void installComponents()

uninstallComponents

protected void uninstallComponents()

installListeners

protected void installListeners()

uninstallListeners

protected void uninstallListeners()

tabForCoordinate

public int tabForCoordinate(javax.swing.JTabbedPane pane,
                            int x,
                            int y)

paint

public void paint(java.awt.Graphics g,
                  javax.swing.JComponent c)

paintContentBorderTopEdge

protected void paintContentBorderTopEdge(java.awt.Graphics g,
                                         int tabPlacement,
                                         int selectedIndex,
                                         int x,
                                         int y,
                                         int w,
                                         int h)

paintContentBorderBottomEdge

protected void paintContentBorderBottomEdge(java.awt.Graphics g,
                                            int tabPlacement,
                                            int selectedIndex,
                                            int x,
                                            int y,
                                            int w,
                                            int h)

getTabAreaInsets

protected java.awt.Insets getTabAreaInsets(int tabPlacement)

lastTabInRun

protected int lastTabInRun(int tabCount,
                           int run)

ensureCurrentLayout

protected void ensureCurrentLayout()

setButtonsEnabled

protected void setButtonsEnabled()

ensureVisibleTabAt

protected void ensureVisibleTabAt(int index)

selectNextTab

protected void selectNextTab(int current)

selectPreviousTab

protected void selectPreviousTab(int current)

getFontMetrics

protected java.awt.FontMetrics getFontMetrics()

calculateMaxTabHeight

protected int calculateMaxTabHeight(int tabPlacement)

calculateTabWidth

protected int calculateTabWidth(int tabPlacement,
                                int tabIndex,
                                java.awt.FontMetrics metrics)

assureRectsCreated

protected void assureRectsCreated(int tabCount)