API Overview API Index Package Overview Direct link to this page
JDK 1.6
  javax.swing.plaf.metal. MetalTabbedPaneUI View Source
Author(s)
Tom Santos
Since
Version
1.19 08/28/98
Serial
Hierarchy
 Object
      ComponentUI
          TabbedPaneUI
              BasicTabbedPaneUI
                  MetalTabbedPaneUI
Implements
Subclasses
Description
public class MetalTabbedPaneUI
  The Metal subclass of BasicTabbedPaneUI.
See also:   
Constructors
public MetalTabbedPaneUI ()
Methods
Hide/Show inherited methods
protected void assureRectsCreated (int tabCount) [Inherited From BasicTabbedPaneUI]
protected int calculateMaxTabHeight (int tabPlacement) [Overrides BasicTabbedPaneUI]
protected int calculateMaxTabWidth (int tabPlacement) [Inherited From BasicTabbedPaneUI]
protected int calculateTabAreaHeight (int tabPlacement, int horizRunCount, int maxTabHeight) [Inherited From BasicTabbedPaneUI]
protected int calculateTabAreaWidth (int tabPlacement, int vertRunCount, int maxTabWidth) [Inherited From BasicTabbedPaneUI]
protected int calculateTabHeight (int tabPlacement, int tabIndex, int fontHeight) [Inherited From BasicTabbedPaneUI]
protected int calculateTabWidth (int tabPlacement, int tabIndex, FontMetrics metrics) [Inherited From BasicTabbedPaneUI]
public boolean contains (JComponent c, int x, int y) [Inherited From ComponentUI]
  Returns true if the specified x,y location is contained within the look and feel's defined shape of the specified component.
protected ChangeListener createChangeListener () [Inherited From BasicTabbedPaneUI]
protected FocusListener createFocusListener () [Inherited From BasicTabbedPaneUI]
protected LayoutManager createLayoutManager () [Overrides BasicTabbedPaneUI]
protected MouseListener createMouseListener () [Inherited From BasicTabbedPaneUI]
protected PropertyChangeListener createPropertyChangeListener () [Inherited From BasicTabbedPaneUI]
protected JButton createScrollButton (int direction) [Inherited From BasicTabbedPaneUI]
  Creates and returns a JButton that will provide the user with a way to scroll the tabs in a particular direction.
publicstatic ComponentUI createUI (JComponent x) [Overrides BasicTabbedPaneUI]
protected void expandTabRunsArray () [Inherited From BasicTabbedPaneUI]
public Accessible getAccessibleChild (JComponent c, int i) [Inherited From ComponentUI]
  Returns the ith Accessible child of the object.
public int getAccessibleChildrenCount (JComponent c) [Inherited From ComponentUI]
  Returns the number of accessible children in the object.
protected int getBaseline (int tab) [Inherited From BasicTabbedPaneUI]
  Returns the baseline for the specified tab.
public int getBaseline (JComponent c, int width, int height) [Inherited From BasicTabbedPaneUI]
  Returns the baseline.
protected int getBaselineOffset () [Overrides BasicTabbedPaneUI]
  Returns the amount the baseline is offset by.
public BaselineResizeBehavior getBaselineResizeBehavior (JComponent c) [Inherited From BasicTabbedPaneUI]
  Returns an enum indicating how the baseline of the component changes as the size changes.
protected Color getColorForGap (int currentRun, int x, int y)
protected Insets getContentBorderInsets (int tabPlacement) [Inherited From BasicTabbedPaneUI]
protected int getFocusIndex () [Inherited From BasicTabbedPaneUI]
  Returns the index of the tab that has focus.
protected FontMetrics getFontMetrics () [Inherited From BasicTabbedPaneUI]
protected Icon getIconForTab (int tabIndex) [Inherited From BasicTabbedPaneUI]
public Dimension getMaximumSize (JComponent c) [Inherited From BasicTabbedPaneUI]
public Dimension getMinimumSize (JComponent c) [Inherited From BasicTabbedPaneUI]
protected int getNextTabIndex (int base) [Inherited From BasicTabbedPaneUI]
protected int getNextTabIndexInRun (int tabCount, int base) [Inherited From BasicTabbedPaneUI]
protected int getNextTabRun (int baseRun) [Inherited From BasicTabbedPaneUI]
public Dimension getPreferredSize (JComponent c) [Inherited From ComponentUI]
  Returns the specified component's preferred size appropriate for the look and feel.
protected int getPreviousTabIndex (int base) [Inherited From BasicTabbedPaneUI]
protected int getPreviousTabIndexInRun (int tabCount, int base) [Inherited From BasicTabbedPaneUI]
protected int getPreviousTabRun (int baseRun) [Inherited From BasicTabbedPaneUI]
protected int getRolloverTab () [Inherited From BasicTabbedPaneUI]
  Returns the tab the mouse is currently over, or -1 if the mouse is no longer over any tab.
pack-private int getRolloverTabIndex ()
Returns the tab index of JTabbedPane the mouse is currently over
protected int getRunForTab (int tabCount, int tabIndex) [Inherited From BasicTabbedPaneUI]
protected Insets getSelectedTabPadInsets (int tabPlacement) [Inherited From BasicTabbedPaneUI]
protected Insets getTabAreaInsets (int tabPlacement) [Inherited From BasicTabbedPaneUI]
protected Rectangle getTabBounds (int tabIndex, Rectangle dest) [Inherited From BasicTabbedPaneUI]
  Returns the bounds of the specified tab in the coordinate space of the JTabbedPane component.
public Rectangle getTabBounds (JTabbedPane pane, int i) [Inherited From BasicTabbedPaneUI] [Specified in TabbedPaneUI]
  Returns the bounds of the specified tab index.
protected Insets getTabInsets (int tabPlacement, int tabIndex) [Inherited From BasicTabbedPaneUI]
protected int getTabLabelShiftX (int tabPlacement, int tabIndex, boolean isSelected) [Overrides BasicTabbedPaneUI]
Overridden to do nothing for the Java L&F.
protected int getTabLabelShiftY (int tabPlacement, int tabIndex, boolean isSelected) [Overrides BasicTabbedPaneUI]
Overridden to do nothing for the Java L&F.
public int getTabRunCount (JTabbedPane pane) [Inherited From BasicTabbedPaneUI] [Specified in TabbedPaneUI]
protected int getTabRunIndent (int tabPlacement, int run) [Inherited From BasicTabbedPaneUI]
protected int getTabRunOffset (int tabPlacement, int tabCount, int tabIndex, boolean forward) [Inherited From BasicTabbedPaneUI]
protected int getTabRunOverlay (int tabPlacement) [Overrides BasicTabbedPaneUI]
protected View getTextViewForTab (int tabIndex) [Inherited From BasicTabbedPaneUI]
  Returns the text View object required to render stylized text (HTML) for the specified tab or null if no specialized text rendering is needed for this tab.
protected Component getVisibleComponent () [Inherited From BasicTabbedPaneUI]
protected void installComponents () [Inherited From BasicTabbedPaneUI]
  Creates and installs any required subcomponents for the JTabbedPane.
protected void installDefaults () [Overrides BasicTabbedPaneUI]
protected void installKeyboardActions () [Inherited From BasicTabbedPaneUI]
protected void installListeners () [Inherited From BasicTabbedPaneUI]
public void installUI (JComponent c) [Inherited From BasicTabbedPaneUI]
protected int lastTabInRun (int tabCount, int run) [Inherited From BasicTabbedPaneUI]
protected void layoutLabel (int tabPlacement, FontMetrics metrics, int tabIndex, String title, Icon icon, Rectangle tabRect, Rectangle iconRect, Rectangle textRect, boolean isSelected) [Inherited From BasicTabbedPaneUI]
protected void navigateSelectedTab (int direction) [Inherited From BasicTabbedPaneUI]
public void paint (Graphics g, JComponent c) [Overrides BasicTabbedPaneUI]
protected void paintBottomTabBorder (int tabIndex, Graphics g, int x, int y, int w, int h, int btm, int rght, boolean isSelected)
protected void paintContentBorder (Graphics g, int tabPlacement, int selectedIndex) [Inherited From BasicTabbedPaneUI]
protected void paintContentBorderBottomEdge (Graphics g, int tabPlacement, int selectedIndex, int x, int y, int w, int h) [Overrides BasicTabbedPaneUI]
protected void paintContentBorderLeftEdge (Graphics g, int tabPlacement, int selectedIndex, int x, int y, int w, int h) [Overrides BasicTabbedPaneUI]
protected void paintContentBorderRightEdge (Graphics g, int tabPlacement, int selectedIndex, int x, int y, int w, int h) [Overrides BasicTabbedPaneUI]
protected void paintContentBorderTopEdge (Graphics g, int tabPlacement, int selectedIndex, int x, int y, int w, int h) [Overrides BasicTabbedPaneUI]
protected void paintFocusIndicator (Graphics g, int tabPlacement, Rectangle rects, int tabIndex, Rectangle iconRect, Rectangle textRect, boolean isSelected) [Overrides BasicTabbedPaneUI]
protected void paintHighlightBelowTab ()
protected void paintIcon (Graphics g, int tabPlacement, int tabIndex, Icon icon, Rectangle iconRect, boolean isSelected) [Inherited From BasicTabbedPaneUI]
protected void paintLeftTabBorder (int tabIndex, Graphics g, int x, int y, int w, int h, int btm, int rght, boolean isSelected)
protected void paintRightTabBorder (int tabIndex, Graphics g, int x, int y, int w, int h, int btm, int rght, boolean isSelected)
protected void paintTab (Graphics g, int tabPlacement, Rectangle rects, int tabIndex, Rectangle iconRect, Rectangle textRect) [Inherited From BasicTabbedPaneUI]
protected void paintTabArea (Graphics g, int tabPlacement, int selectedIndex) [Inherited From BasicTabbedPaneUI]
  Paints the tabs in the tab area.
protected void paintTabBackground (Graphics g, int tabPlacement, int tabIndex, int x, int y, int w, int h, boolean isSelected) [Overrides BasicTabbedPaneUI]
protected void paintTabBorder (Graphics g, int tabPlacement, int tabIndex, int x, int y, int w, int h, boolean isSelected) [Overrides BasicTabbedPaneUI]
protected void paintText (Graphics g, int tabPlacement, Font font, FontMetrics metrics, int tabIndex, String title, Rectangle textRect, boolean isSelected) [Inherited From BasicTabbedPaneUI]
protected void paintTopTabBorder (int tabIndex, Graphics g, int x, int y, int w, int h, int btm, int rght, boolean isSelected)
protectedstatic void rotateInsets (Insets topInsets, Insets targetInsets, int targetPlacement) [Inherited From BasicTabbedPaneUI]
protected void selectAdjacentRunTab (int tabPlacement, int tabIndex, int offset) [Inherited From BasicTabbedPaneUI]
protected void selectNextTab (int current) [Inherited From BasicTabbedPaneUI]
protected void selectNextTabInRun (int current) [Inherited From BasicTabbedPaneUI]
protected void selectPreviousTab (int current) [Inherited From BasicTabbedPaneUI]
protected void selectPreviousTabInRun (int current) [Inherited From BasicTabbedPaneUI]
protected void setRolloverTab (int index) [Inherited From BasicTabbedPaneUI]
  Sets the tab the mouse is currently over to index.
protected void setVisibleComponent (Component component) [Inherited From BasicTabbedPaneUI]
protected boolean shouldFillGap (int currentRun, int tabIndex, int x, int y)
protected boolean shouldPadTabRun (int tabPlacement, int run) [Overrides BasicTabbedPaneUI]
protected boolean shouldRotateTabRuns (int tabPlacement) [Inherited From BasicTabbedPaneUI]
protected boolean shouldRotateTabRuns (int tabPlacement, int selectedRun)
public int tabForCoordinate (JTabbedPane pane, int x, int y) [Inherited From BasicTabbedPaneUI] [Specified in TabbedPaneUI]
Returns the tab index which intersects the specified point in the JTabbedPane's coordinate space.
protected void uninstallComponents () [Inherited From BasicTabbedPaneUI]
  Removes any installed subcomponents from the JTabbedPane.
protected void uninstallDefaults () [Inherited From BasicTabbedPaneUI]
protected void uninstallKeyboardActions () [Inherited From BasicTabbedPaneUI]
protected void uninstallListeners () [Inherited From BasicTabbedPaneUI]
public void uninstallUI (JComponent c) [Inherited From BasicTabbedPaneUI]
public void update (Graphics g, JComponent c) [Overrides ComponentUI]
Fields
Hide/Show inherited fields
protectedtransient Rectangle calcRect [Inherited From BasicTabbedPaneUI]
A rectangle used for general layout calculations in order to avoid constructing many new Rectangles on the fly.
protected Insets contentBorderInsets [Inherited From BasicTabbedPaneUI]
protected Color darkShadow [Inherited From BasicTabbedPaneUI]
@Deprecated
protected KeyStroke downKey [Inherited From BasicTabbedPaneUI]
  As of Java 2 platform v1.3 this previously undocumented field is no longer used.
protected Color focus [Inherited From BasicTabbedPaneUI]
protected FocusListener focusListener [Inherited From BasicTabbedPaneUI]
protected Color highlight [Inherited From BasicTabbedPaneUI]
@Deprecated
protected KeyStroke leftKey [Inherited From BasicTabbedPaneUI]
  As of Java 2 platform v1.3 this previously undocumented field is no longer used.
protected Color lightHighlight [Inherited From BasicTabbedPaneUI]
protected int maxTabHeight [Inherited From BasicTabbedPaneUI]
protected int maxTabWidth [Inherited From BasicTabbedPaneUI]
protected int minTabWidth
protected MouseListener mouseListener [Inherited From BasicTabbedPaneUI]
protected PropertyChangeListener propertyChangeListener [Inherited From BasicTabbedPaneUI]
protected Rectangle rects [Inherited From BasicTabbedPaneUI]
@Deprecated
protected KeyStroke rightKey [Inherited From BasicTabbedPaneUI]
  As of Java 2 platform v1.3 this previously undocumented field is no longer used.
protected int runCount [Inherited From BasicTabbedPaneUI]
protected Color selectColor
protected int selectedRun [Inherited From BasicTabbedPaneUI]
protected Insets selectedTabPadInsets [Inherited From BasicTabbedPaneUI]
protected Color selectHighlight
protected Color shadow [Inherited From BasicTabbedPaneUI]
protected Color tabAreaBackground
protected Insets tabAreaInsets [Inherited From BasicTabbedPaneUI]
protected ChangeListener tabChangeListener [Inherited From BasicTabbedPaneUI]
protected Insets tabInsets [Inherited From BasicTabbedPaneUI]
protected JTabbedPane tabPane [Inherited From BasicTabbedPaneUI]
protected int tabRunOverlay [Inherited From BasicTabbedPaneUI]
protected int tabRuns [Inherited From BasicTabbedPaneUI]
protected int textIconGap [Inherited From BasicTabbedPaneUI]
@Deprecated
protected KeyStroke upKey [Inherited From BasicTabbedPaneUI]
  As of Java 2 platform v1.3 this previously undocumented field is no longer used.
Nested Classes
  MetalTabbedPaneUI.TabbedPaneLayout
This inner class is marked "public" due to a compiler bug.
  BasicTabbedPaneUI.TabbedPaneLayout
This class should be treated as a "protected" inner class.
  BasicTabbedPaneUI.PropertyChangeHandler
This class should be treated as a "protected" inner class.
  BasicTabbedPaneUI.TabSelectionHandler
This class should be treated as a "protected" inner class.
  BasicTabbedPaneUI.MouseHandler
This class should be treated as a "protected" inner class.
  BasicTabbedPaneUI.FocusHandler
This class should be treated as a "protected" inner class.
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar