| Modifier and Type | Class and Description |
|---|---|
| private static class | |
| private class | |
| public class | BasicTabbedPaneUI.
This class should be treated as a "protected" inner class. |
| private class | |
| public class | BasicTabbedPaneUI.
This class should be treated as a "protected" inner class. |
| public class | BasicTabbedPaneUI.
This class should be treated as a "protected" inner class. |
| private static class | |
| private class | |
| private class | |
| private class | |
| public class | BasicTabbedPaneUI.
This class should be treated as a "protected" inner class. |
| private class | |
| private class | |
| public class | BasicTabbedPaneUI.
This class should be treated as a "protected" inner class. |
| Modifier and Type | Field and Description |
|---|---|
| private int | |
| protected transient Rectangle | calcRect
A rectangle used for general layout calculations in order to avoid constructing many new Rectangles on the fly. |
| private boolean | |
| protected Insets | contentBorderInsets
Content border insets |
| private boolean | |
| private static final int | |
| private Insets | |
| private Insets | |
| protected Color | darkShadow
Dark shadow color |
| protected KeyStroke | downKey
Deprecated
As of Java 2 platform v1.3.
As of Java 2 platform v1.3 this previously undocumented field is no
longer used.
|
| protected Color | focus
Focus color |
| private int | focusIndex
Tab that has focus. |
| protected FocusListener | focusListener
Focus change listener |
| private BasicTabbedPaneUI. | handler
Combined listeners. |
| protected Color | highlight
Highlight color |
| private Vector | |
| private boolean | isRunsDirty
This is set to true when a component is added/removed from the tab pane and set to false when layout happens. |
| protected KeyStroke | leftKey
Deprecated
As of Java 2 platform v1.3.
As of Java 2 platform v1.3 this previously undocumented field is no
longer used.
|
| protected Color | lightHighlight
Light highlight color |
| protected int | maxTabHeight
Maximum tab height |
| protected int | maxTabWidth
Maximum tab width |
| private InputMap | mnemonicInputMap
InputMap used for mnemonics. |
| private Hashtable | |
| protected MouseListener | mouseListener
Mouse change listener |
| protected PropertyChangeListener | propertyChangeListener
Property change listener |
| protected Rectangle[] | rects
Tab rects |
| protected KeyStroke | rightKey
Deprecated
As of Java 2 platform v1.3.
As of Java 2 platform v1.3 this previously undocumented field is no
longer used.
|
| private int | rolloverTabIndex
Index of the tab the mouse is over. |
| protected int | runCount
Run count |
| private Color | |
| protected int | selectedRun
Selected run |
| protected Insets | selectedTabPadInsets
Selected tab insets |
| protected Color | shadow
Shadow color |
| protected Insets | tabAreaInsets
Tab area insets |
| protected ChangeListener | tabChangeListener
Tab change listener |
| private BasicTabbedPaneUI. | |
| protected Insets | tabInsets
Tab insets |
| protected JTabbedPane | tabPane
The tab pane |
| protected int | tabRunOverlay
Tab run overlay |
| protected int[] | tabRuns
Tab runs |
| private BasicTabbedPaneUI. | |
| private boolean | |
| private boolean | |
| protected int | textIconGap
Text icon gap |
| protected KeyStroke | upKey
Deprecated
As of Java 2 platform v1.3.
As of Java 2 platform v1.3 this previously undocumented field is no
longer used.
|
| private Component | |
| private static int[] | |
| private static int[] |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private void | |
| protected void | |
| private void | |
| private int | |
| protected int | Returns: the maximum tab heightthe placement (left, right, bottom, top) of the tab tabPlacement)Calculates the maximum tab height. |
| protected int | Returns: the maximum tab widththe placement (left, right, bottom, top) of the tab tabPlacement)Calculates the maximum tab width. |
| protected int | Returns: the tab area heightthe placement (left, right, bottom, top) of the tab tabPlacement, int horizontal run count horizRunCount, int maximum tab height maxTabHeight)Calculates the tab area height. |
| protected int | Returns: the tab area widththe placement (left, right, bottom, top) of the tab tabPlacement, int vertical run count vertRunCount, int maximum tab width maxTabWidth)Calculates the tab area width. |
| protected int | Returns: the tab heightthe placement (left, right, bottom, top) of the tab tabPlacement, int the index of the tab with respect to other tabs tabIndex, int the font height fontHeight)Calculates the tab height. |
| protected int | Returns: the tab widththe placement (left, right, bottom, top) of the tab tabPlacement, int the index of the tab with respect to other tabs tabIndex, FontMetrics the font metrics metrics)Calculates the tab width. |
| protected ChangeListener | |
| private static Polygon | |
| protected FocusListener | |
| private Vector | |
| protected LayoutManager | Returns: a layout manager objectInvoked by |
| protected MouseListener | |
| protected PropertyChangeListener | Returns: a property change listenerCreates a property change listener. |
| protected JButton | Returns: Widget for user toOne of the SwingConstants constants:
SOUTH, NORTH, EAST or WEST direction)Creates and returns a JButton that will provide the user with a way to scroll the tabs in a particular direction. |
| public static ComponentUI | Returns: a UIa component c)Hides javax. Creates a UI. |
| private void | |
| protected void | |
| public int | getBaseline(JComponent c, int width, int height)
Overrides javax. Returns the baseline. |
| protected int | Returns: baseline or a value < 0 indicating there is no reasonable baselineindex of tab to get baseline for tab)Returns the baseline for the specified tab. |
| protected int | Returns: amount to offset the baseline byReturns the amount the baseline is offset by. |
| public Component. | getBaselineResizeBehavior(JComponent c)
Overrides javax. Returns an enum indicating how the baseline of the component changes as the size changes. |
| private int | getClosestTab(int x, int y)
Returns the index of the tab closest to the passed in location, note that the returned tab may not contain the location x,y. |
| protected Insets | Returns: the content border insetsthe placement (left, right, bottom, top) of the tab tabPlacement)Returns the content border insets. |
| protected int | |
| protected FontMetrics | |
| private BasicTabbedPaneUI. | |
| protected Icon | Returns: the icon for a tabthe index of the tab tabIndex)Returns the icon for a tab. |
| pack-priv InputMap | |
| public Dimension | getMaximumSize(JComponent c)
Overrides javax. Returns the specified component's maximum size appropriate for the look and feel. |
| public Dimension | getMinimumSize(JComponent c)
Overrides javax. Returns the specified component's minimum size appropriate for the look and feel. |
| protected int | |
| protected int | Returns: the next tab index in the runthe tab count tabCount, int the base base)Returns the next tab index in the run. |
| protected int | |
| protected int | |
| protected int | Returns: the previous tab index in the runthe tab count tabCount, int the base base)Returns the previous tab index in the run. |
| protected int | Returns: the previous tab runthe base run baseRun)Returns the previous tab run. |
| protected int | Returns: the tab the mouse is currently over, or-1 if the mouse is no
longer over any tabReturns the tab the mouse is currently over, or |
| protected int | Returns: the run for a tabthe tab count tabCount, int the tab index. tabIndex)Returns the run for a tab. |
| protected Insets | Returns: the selected tab pad insetsthe placement (left, right, bottom, top) of the tab tabPlacement)Returns the selected tab pad insets. |
| protected Insets | Returns: the pad area insetsthe placement (left, right, bottom, top) of the tab tabPlacement)Returns the tab area insets. |
| public Rectangle | getTabBounds(JTabbedPane pane, int i)
Implements abstract javax. Returns the bounds of the specified tab index. |
| protected Rectangle | Returns: the resulting rectanglethe index of the tab tabIndex, Rectangle the rectangle where the result should be placed dest)Returns the bounds of the specified tab in the coordinate space of the JTabbedPane component. |
| protected Insets | Returns: the tab insetsthe placement (left, right, bottom, top) of the tab tabPlacement, int the tab index tabIndex)Returns the tab insets. |
| protected int | Returns: the tab label shift xthe tab placement tabPlacement, int the tab index tabIndex, boolean selection status isSelected)Returns the tab label shift x. |
| protected int | Returns: the tab label shift ythe tab placement tabPlacement, int the tab index tabIndex, boolean selection status isSelected)Returns the tab label shift y. |
| public int | getTabRunCount(JTabbedPane pane)
Implements abstract javax. Returns the tab run count. |
| protected int | Returns: the tab run indentthe placement (left, right, bottom, top) of the tab tabPlacement, int the tab run run)Returns the tab run indent. |
| protected int | Returns: the tab run offsetthe placement (left, right, bottom, top) of the tab tabPlacement, int the tab count tabCount, int the index of the tab with respect to other tabs tabIndex, boolean forward or not forward)Returns the tab run offset. |
| protected int | Returns: the tab run overlaythe placement (left, right, bottom, top) of the tab tabPlacement)Returns the tab run overlay. |
| protected View | Returns: the text view to render the tab's text or null if no specialized rendering is requiredthe index of the tab tabIndex)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 | |
| private void | |
| protected void | |
| protected void | |
| protected void | |
| protected void | |
| private void | |
| public void | installUI(JComponent c)
Overrides javax. Configures the specified component appropriately for the look and feel. |
| private boolean | |
| protected int | Returns: the last tab in a runthe tab count tabCount, int the run run)Returns the last tab in a run. |
| protected void | layoutLabel(int
the tab placement tabPlacement, FontMetrics the font metrics metrics, int the tab index tabIndex, String the title title, Icon the icon icon, Rectangle the tab rectangle tabRect, Rectangle the icon rectangle iconRect, Rectangle the text rectangle textRect, boolean selection status isSelected)Lays out a label. |
| pack-priv static void | |
| protected void | |
| private void | |
| public void | paint(Graphics g, JComponent c)
Overrides javax. Paints the specified component appropriately for the look and feel. |
| protected void | paintContentBorder(Graphics
the graphics context in which to paint g, int the placement (left, right, bottom, top) of the tab tabPlacement, int the tab index of the selected component selectedIndex)Paints the content border. |
| protected void | paintContentBorderBottomEdge(Graphics
the graphics context in which to paint g, int the placement (left, right, bottom, top) of the tab tabPlacement, int the tab index of the selected component selectedIndex, int the x coordinate of tab x, int the y coordinate of tab y, int the width of the tab w, int the height of the tab h)Paints the content border bottom edge. |
| protected void | paintContentBorderLeftEdge(Graphics
the graphics context in which to paint g, int the placement (left, right, bottom, top) of the tab tabPlacement, int the tab index of the selected component selectedIndex, int the x coordinate of tab x, int the y coordinate of tab y, int the width of the tab w, int the height of the tab h)Paints the content border left edge. |
| protected void | paintContentBorderRightEdge(Graphics
the graphics context in which to paint g, int the placement (left, right, bottom, top) of the tab tabPlacement, int the tab index of the selected component selectedIndex, int the x coordinate of tab x, int the y coordinate of tab y, int the width of the tab w, int the height of the tab h)Paints the content border right edge. |
| protected void | paintContentBorderTopEdge(Graphics
the graphics context in which to paint g, int the placement (left, right, bottom, top) of the tab tabPlacement, int the tab index of the selected component selectedIndex, int the x coordinate of tab x, int the y coordinate of tab y, int the width of the tab w, int the height of the tab h)Paints the content border top edge. |
| private void | |
| protected void | paintFocusIndicator(Graphics
the graphics g, int the tab placement tabPlacement, Rectangle[] the tab rectangles rects, int the tab index tabIndex, Rectangle the icon rectangle iconRect, Rectangle the text rectangle textRect, boolean selection status isSelected)Paints the focus indicator. |
| protected void | |
| protected void | |
| protected void | paintTabArea(Graphics
the graphics object to use for rendering g, int the placement for the tabs within the JTabbedPane tabPlacement, int the tab index of the selected component selectedIndex)Paints the tabs in the tab area. |
| protected void | paintTabBackground(Graphics
the graphics context in which to paint g, int the placement (left, right, bottom, top) of the tab tabPlacement, int the index of the tab with respect to other tabs tabIndex, int the x coordinate of tab x, int the y coordinate of tab y, int the width of the tab w, int the height of the tab h, boolean a isSelected)boolean which determines whether or not
the tab is selectedPaints the tab background. |
| protected void | paintTabBorder(Graphics
the graphics context in which to paint g, int the placement (left, right, bottom, top) of the tab tabPlacement, int the index of the tab with respect to other tabs tabIndex, int the x coordinate of tab x, int the y coordinate of tab y, int the width of the tab w, int the height of the tab h, boolean a isSelected)boolean which determines whether or not
the tab is selectedPaints the border around a tab. |
| protected void | |
| private void | |
| pack-priv boolean | |
| private void | |
| protected static void | rotateInsets(Insets
the top insets topInsets, Insets the target insets targetInsets, int the target placement targetPlacement)Rotates the insets. |
| private boolean | |
| protected void | selectAdjacentRunTab(int
the placement (left, right, bottom, top) of the tab tabPlacement, int the index of the tab with respect to other tabs tabIndex, int selection offset offset)Selects an adjacent run of tabs. |
| protected void | |
| protected void | |
| protected void | |
| protected void | |
| pack-priv void | |
| private void | |
| protected void | setRolloverTab(int
Index of the tab the mouse is over. index)Sets the tab the mouse is currently over to |
| protected void | |
| protected boolean | Returns: whether or not the tab run should be paddedthe placement (left, right, bottom, top) of the tab tabPlacement, int the tab run run)Returns whether or not the tab run should be padded. |
| protected boolean | Returns: whether or not the tab run should be rotatedthe placement (left, right, bottom, top) of the tab tabPlacement)Returns whether or not the tab run should be rotated. |
| public int | tabForCoordinate(JTabbedPane pane, int x, int y)
Implements abstract javax. Returns the tab index which intersects the specified point in the JTabbedPane's coordinate space. |
| private int | |
| private Point | translatePointToTabPanel(int srcx, int srcy, Point dest)
Returns a point which is translated from the specified point in the JTabbedPane's coordinate space to the coordinate space of the ScrollableTabPanel. |
| protected void | |
| protected void | |
| protected void | |
| protected void | |
| private void | |
| public void | uninstallUI(JComponent c)
Overrides javax. Reverses configuration which was done on the specified component during
|
| private void | |
| private void |