Extension SDK 10.1.2

oracle.ide.controls
Class SingleRowTabbedPaneUI

java.lang.Object
  extended byjavax.swing.plaf.ComponentUI
      extended byjavax.swing.plaf.TabbedPaneUI
          extended byjavax.swing.plaf.basic.BasicTabbedPaneUI
              extended byoracle.ide.controls.SingleRowTabbedPaneUI
All Implemented Interfaces:
javax.swing.SwingConstants

public class SingleRowTabbedPaneUI
extends javax.swing.plaf.basic.BasicTabbedPaneUI

SingleRowTabbedPaneUI...


Nested Class Summary
protected  class SingleRowTabbedPaneUI.EventHandler
           
protected static class SingleRowTabbedPaneUI.ScrollMenuAction
           
protected static class SingleRowTabbedPaneUI.ScrollMenuItemComparator
           
protected static class SingleRowTabbedPaneUI.ScrollMenuShowVisibleAction
           
protected static class SingleRowTabbedPaneUI.ScrollMenuSortAction
           
protected  class SingleRowTabbedPaneUI.SingleRowTabbedPaneLayout
           
 
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.TabbedPaneLayout, javax.swing.plaf.basic.BasicTabbedPaneUI.TabSelectionHandler
 
Field Summary
protected static javax.swing.Icon blankIcon
           
protected  SingleRowTabbedPaneUI.EventHandler eventHandler
           
protected  int firstVisibleIndex
           
protected  int lastVisibleIndex
           
protected  boolean lockFirstVisible
           
protected  int mouseOverIndex
           
protected static javax.swing.Icon scrollBothIcon
           
protected static int scrollButtonHeight
           
protected static int scrollButtonWidth
           
protected static javax.swing.Icon scrollLeftIcon
           
protected  javax.swing.JPopupMenu scrollMenu
           
protected  java.awt.Font scrollMenuBoldFont
           
protected static java.util.Comparator scrollMenuItemComparator
           
protected  ToggleAction scrollMenuShowVisibleAction
           
protected  ToggleAction scrollMenuSortAction
           
protected static javax.swing.Icon scrollRightIcon
           
protected  java.awt.Color selectColor
           
protected  java.awt.Color 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
 
Method Summary
protected  int calculateMaxTabHeight(int tabPlacement)
           
 boolean contains(javax.swing.JComponent c, int x, int y)
           
protected  javax.swing.event.ChangeListener createChangeListener()
           
protected  SingleRowTabbedPaneUI.EventHandler createEventHandler()
           
protected  java.awt.event.FocusListener createFocusListener()
           
protected  java.awt.LayoutManager createLayoutManager()
           
protected  java.beans.PropertyChangeListener createPropertyChangeListener()
           
protected  javax.swing.JMenuItem createScrollMenuItem(int tabIndex)
           
static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent c)
           
protected  void ensureCurrentLayout()
           
 javax.accessibility.Accessible getAccessibleChild(javax.swing.JComponent c, int i)
           
 int getAccessibleChildrenCount(javax.swing.JComponent c)
           
protected  int getHotkeyAt(int tabIndex)
           
protected  javax.swing.Icon getIconForMenu(int tabIndex)
           
protected  javax.swing.Icon getIconForTab(int tabIndex)
           
 java.awt.Dimension getMaximumSize(javax.swing.JComponent c)
           
 java.awt.Dimension getMinimumSize(javax.swing.JComponent c)
           
 java.awt.Dimension getPreferredSize(javax.swing.JComponent c)
           
protected  java.awt.Font getScrollMenuBoldFont(java.awt.Component component)
           
 java.awt.Rectangle getTabBounds(javax.swing.JTabbedPane pane, int index)
           
protected  int getTabLabelShiftX(int tabPlacement, int tabIndex, boolean isSelected)
           
protected  int getTabLabelShiftY(int tabPlacement, int tabIndex, boolean isSelected)
           
 int getTabRunCount()
           
protected  void installDefaults()
           
protected  void installListeners()
           
 void installUI(javax.swing.JComponent c)
           
protected  boolean isInScrollButton(int x, int y)
           
protected  boolean isScrollButtonVisible()
           
protected  boolean isScrollMenuShowVisible()
           
protected  boolean isScrollMenuSorted()
           
protected  boolean isScrollMenuVisible()
           
protected  boolean isTabEnabled(int tabIndex)
           
protected  boolean isTabVisible(int tabIndex)
           
protected  java.lang.String layoutCompoundLabel(int tabPlacement, java.awt.FontMetrics metrics, int tabIndex, java.lang.String title, javax.swing.Icon icon, java.awt.Rectangle tabRect, java.awt.Rectangle iconRect, java.awt.Rectangle textRect, boolean isSelected)
           
 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 paintContentBorderLeftEdge(java.awt.Graphics g, int tabPlacement, int selectedIndex, int x, int y, int w, int h)
           
protected  void paintContentBorderRightEdge(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 paintIcon(java.awt.Graphics g, int tabPlacement, java.awt.Font font, java.awt.FontMetrics metrics, int tabIndex, javax.swing.Icon icon, java.awt.Rectangle iconRect, boolean isSelected)
           
protected  void paintScrollButton(java.awt.Graphics g, int tabPlacement, java.awt.Rectangle rect)
           
protected  void paintTab(java.awt.Graphics g, int tabPlacement, java.awt.Rectangle[] rects, int tabIndex, java.awt.Rectangle iconRect, java.awt.Rectangle textRect)
           
protected  void paintTabBackground(java.awt.Graphics g, int tabPlacement, int tabIndex, int x, int y, int w, int h, boolean isSelected)
           
protected  void paintTabBorder(java.awt.Graphics g, int tabPlacement, int tabIndex, int x, int y, int w, int h, boolean isSelected)
           
protected  void repaintTab(int tabIndex)
           
protected  void setMouseOver(int tabIndex)
           
protected  void setScrollMenuShowVisible(boolean showVisible)
           
protected  void setScrollMenuSorted(boolean sorted)
           
protected  void setScrollMenuVisible(boolean visible)
           
 void showScrollMenu()
           
 int tabForCoordinate(javax.swing.JTabbedPane pane, int x, int y)
           
protected  void uninstallDefaults()
           
protected  void uninstallListeners()
           
 void uninstallUI(javax.swing.JComponent c)
           
 void update(java.awt.Graphics g, javax.swing.JComponent c)
           
 
Methods inherited from class javax.swing.plaf.basic.BasicTabbedPaneUI
assureRectsCreated, calculateMaxTabWidth, calculateTabAreaHeight, calculateTabAreaWidth, calculateTabHeight, calculateTabWidth, createMouseListener, expandTabRunsArray, getContentBorderInsets, getFontMetrics, getNextTabIndex, getNextTabIndexInRun, getNextTabRun, getPreviousTabIndex, getPreviousTabIndexInRun, getPreviousTabRun, getRunForTab, getSelectedTabPadInsets, getTabAreaInsets, getTabBounds, getTabInsets, getTabRunCount, getTabRunIndent, getTabRunOffset, getTabRunOverlay, getTextViewForTab, getVisibleComponent, installComponents, installKeyboardActions, lastTabInRun, layoutLabel, navigateSelectedTab, paintContentBorder, paintFocusIndicator, paintIcon, paintTabArea, paintText, rotateInsets, selectAdjacentRunTab, selectNextTab, selectNextTabInRun, selectPreviousTab, selectPreviousTabInRun, setVisibleComponent, shouldPadTabRun, shouldRotateTabRuns, uninstallComponents, uninstallKeyboardActions
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

scrollMenuItemComparator

protected static final java.util.Comparator scrollMenuItemComparator

blankIcon

protected static final javax.swing.Icon blankIcon

scrollBothIcon

protected static final javax.swing.Icon scrollBothIcon

scrollLeftIcon

protected static final javax.swing.Icon scrollLeftIcon

scrollRightIcon

protected static final javax.swing.Icon scrollRightIcon

scrollButtonWidth

protected static final int scrollButtonWidth

scrollButtonHeight

protected static final int scrollButtonHeight

tabAreaBackground

protected java.awt.Color tabAreaBackground

selectColor

protected java.awt.Color selectColor

eventHandler

protected SingleRowTabbedPaneUI.EventHandler eventHandler

scrollMenu

protected javax.swing.JPopupMenu scrollMenu

scrollMenuBoldFont

protected java.awt.Font scrollMenuBoldFont

scrollMenuSortAction

protected ToggleAction scrollMenuSortAction

scrollMenuShowVisibleAction

protected ToggleAction scrollMenuShowVisibleAction

mouseOverIndex

protected int mouseOverIndex

firstVisibleIndex

protected int firstVisibleIndex

lastVisibleIndex

protected int lastVisibleIndex

lockFirstVisible

protected boolean lockFirstVisible
Method Detail

showScrollMenu

public void showScrollMenu()

tabForCoordinate

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

getTabBounds

public java.awt.Rectangle getTabBounds(javax.swing.JTabbedPane pane,
                                       int index)

getTabRunCount

public int getTabRunCount()

installUI

public void installUI(javax.swing.JComponent c)

uninstallUI

public void uninstallUI(javax.swing.JComponent c)

paint

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

update

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

getPreferredSize

public java.awt.Dimension getPreferredSize(javax.swing.JComponent c)

getMinimumSize

public java.awt.Dimension getMinimumSize(javax.swing.JComponent c)

getMaximumSize

public java.awt.Dimension getMaximumSize(javax.swing.JComponent c)

contains

public boolean contains(javax.swing.JComponent c,
                        int x,
                        int y)

createUI

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

getAccessibleChildrenCount

public int getAccessibleChildrenCount(javax.swing.JComponent c)

getAccessibleChild

public javax.accessibility.Accessible getAccessibleChild(javax.swing.JComponent c,
                                                         int i)

installListeners

protected void installListeners()

uninstallListeners

protected void uninstallListeners()

installDefaults

protected void installDefaults()

uninstallDefaults

protected void uninstallDefaults()

createPropertyChangeListener

protected java.beans.PropertyChangeListener createPropertyChangeListener()

createChangeListener

protected javax.swing.event.ChangeListener createChangeListener()

createFocusListener

protected java.awt.event.FocusListener createFocusListener()

createLayoutManager

protected java.awt.LayoutManager createLayoutManager()

getIconForTab

protected javax.swing.Icon getIconForTab(int tabIndex)

getIconForMenu

protected javax.swing.Icon getIconForMenu(int tabIndex)

paintTab

protected void paintTab(java.awt.Graphics g,
                        int tabPlacement,
                        java.awt.Rectangle[] rects,
                        int tabIndex,
                        java.awt.Rectangle iconRect,
                        java.awt.Rectangle textRect)

paintIcon

protected void paintIcon(java.awt.Graphics g,
                         int tabPlacement,
                         java.awt.Font font,
                         java.awt.FontMetrics metrics,
                         int tabIndex,
                         javax.swing.Icon icon,
                         java.awt.Rectangle iconRect,
                         boolean isSelected)

paintTabBackground

protected void paintTabBackground(java.awt.Graphics g,
                                  int tabPlacement,
                                  int tabIndex,
                                  int x,
                                  int y,
                                  int w,
                                  int h,
                                  boolean isSelected)

paintTabBorder

protected void paintTabBorder(java.awt.Graphics g,
                              int tabPlacement,
                              int tabIndex,
                              int x,
                              int y,
                              int w,
                              int h,
                              boolean isSelected)

paintContentBorderTopEdge

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

paintContentBorderLeftEdge

protected void paintContentBorderLeftEdge(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)

paintContentBorderRightEdge

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

layoutCompoundLabel

protected java.lang.String layoutCompoundLabel(int tabPlacement,
                                               java.awt.FontMetrics metrics,
                                               int tabIndex,
                                               java.lang.String title,
                                               javax.swing.Icon icon,
                                               java.awt.Rectangle tabRect,
                                               java.awt.Rectangle iconRect,
                                               java.awt.Rectangle textRect,
                                               boolean isSelected)

getTabLabelShiftX

protected int getTabLabelShiftX(int tabPlacement,
                                int tabIndex,
                                boolean isSelected)

getTabLabelShiftY

protected int getTabLabelShiftY(int tabPlacement,
                                int tabIndex,
                                boolean isSelected)

calculateMaxTabHeight

protected int calculateMaxTabHeight(int tabPlacement)

createEventHandler

protected SingleRowTabbedPaneUI.EventHandler createEventHandler()

getHotkeyAt

protected int getHotkeyAt(int tabIndex)

paintScrollButton

protected void paintScrollButton(java.awt.Graphics g,
                                 int tabPlacement,
                                 java.awt.Rectangle rect)

setMouseOver

protected void setMouseOver(int tabIndex)

repaintTab

protected void repaintTab(int tabIndex)

isTabEnabled

protected boolean isTabEnabled(int tabIndex)

isTabVisible

protected boolean isTabVisible(int tabIndex)

isInScrollButton

protected boolean isInScrollButton(int x,
                                   int y)

isScrollButtonVisible

protected boolean isScrollButtonVisible()

isScrollMenuSorted

protected boolean isScrollMenuSorted()

setScrollMenuSorted

protected void setScrollMenuSorted(boolean sorted)

isScrollMenuShowVisible

protected boolean isScrollMenuShowVisible()

setScrollMenuShowVisible

protected void setScrollMenuShowVisible(boolean showVisible)

isScrollMenuVisible

protected boolean isScrollMenuVisible()

setScrollMenuVisible

protected void setScrollMenuVisible(boolean visible)

createScrollMenuItem

protected javax.swing.JMenuItem createScrollMenuItem(int tabIndex)

getScrollMenuBoldFont

protected java.awt.Font getScrollMenuBoldFont(java.awt.Component component)

ensureCurrentLayout

protected void ensureCurrentLayout()

Extension SDK

 

Copyright © 1997, 2004, Oracle. All rights reserved.