void
|
assureRectsCreated(int tabCount)
|
int
|
calculateMaxTabHeight(int tabPlacement)
|
int
|
calculateMaxTabWidth(int tabPlacement)
|
int
|
calculateTabAreaHeight(int tabPlacement, int horizRunCount, int maxTabHeight)
|
int
|
calculateTabAreaWidth(int tabPlacement, int vertRunCount, int maxTabWidth)
|
int
|
calculateTabHeight(int tabPlacement, int tabIndex, int fontHeight)
|
int
|
calculateTabWidth(int tabPlacement, int tabIndex, FontMetrics metrics)
|
ChangeListener
|
createChangeListener()
|
FocusListener
|
createFocusListener()
|
LayoutManager
|
createLayoutManager()
Invoked by installUI to create
a layout manager object to manage
the JTabbedPane .
|
MouseListener
|
createMouseListener()
|
PropertyChangeListener
|
createPropertyChangeListener()
|
JButton
|
createScrollButton(int direction)
Creates and returns a JButton that will provide the user
with a way to scroll the tabs in a particular direction.
|
static
ComponentUI
|
createUI(JComponent c)
|
void
|
expandTabRunsArray()
|
int
|
getBaseline(JComponent c, int width, int height)
Returns the baseline.
|
int
|
getBaseline(int tab)
Returns the baseline for the specified tab.
|
int
|
getBaselineOffset()
Returns the amount the baseline is offset by.
|
Component.BaselineResizeBehavior
|
getBaselineResizeBehavior(JComponent c)
Returns an enum indicating how the baseline of the component
changes as the size changes.
|
Insets
|
getContentBorderInsets(int tabPlacement)
|
int
|
getFocusIndex()
Returns the index of the tab that has focus.
|
FontMetrics
|
getFontMetrics()
|
Icon
|
getIconForTab(int tabIndex)
|
Dimension
|
getMaximumSize(JComponent c)
Returns the specified component's maximum size appropriate for
the look and feel.
|
Dimension
|
getMinimumSize(JComponent c)
Returns the specified component's minimum size appropriate for
the look and feel.
|
int
|
getNextTabIndex(int base)
|
int
|
getNextTabIndexInRun(int tabCount, int base)
|
int
|
getNextTabRun(int baseRun)
|
int
|
getPreviousTabIndex(int base)
|
int
|
getPreviousTabIndexInRun(int tabCount, int base)
|
int
|
getPreviousTabRun(int baseRun)
|
int
|
getRolloverTab()
Returns the tab the mouse is currently over, or -1 if the mouse is no
longer over any tab.
|
int
|
getRunForTab(int tabCount, int tabIndex)
|
Insets
|
getSelectedTabPadInsets(int tabPlacement)
|
Insets
|
getTabAreaInsets(int tabPlacement)
|
Rectangle
|
getTabBounds(int tabIndex, Rectangle dest)
Returns the bounds of the specified tab in the coordinate space
of the JTabbedPane component.
|
Rectangle
|
getTabBounds(JTabbedPane pane, int i)
Returns the bounds of the specified tab index.
|
Insets
|
getTabInsets(int tabPlacement, int tabIndex)
|
int
|
getTabLabelShiftX(int tabPlacement, int tabIndex, boolean isSelected)
|
int
|
getTabLabelShiftY(int tabPlacement, int tabIndex, boolean isSelected)
|
int
|
getTabRunCount(JTabbedPane pane)
|
int
|
getTabRunIndent(int tabPlacement, int run)
|
int
|
getTabRunOffset(int tabPlacement, int tabCount, int tabIndex, boolean forward)
|
int
|
getTabRunOverlay(int tabPlacement)
|
View
|
getTextViewForTab(int 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.
|
Component
|
getVisibleComponent()
|
void
|
installComponents()
Creates and installs any required subcomponents for the JTabbedPane.
|
void
|
installDefaults()
|
void
|
installKeyboardActions()
|
void
|
installListeners()
|
void
|
installUI(JComponent c)
Configures the specified component appropriate for the look and feel.
|
int
|
lastTabInRun(int tabCount, int run)
|
void
|
layoutLabel(int tabPlacement, FontMetrics metrics, int tabIndex, String title, Icon icon, Rectangle tabRect, Rectangle iconRect, Rectangle textRect, boolean isSelected)
|
void
|
navigateSelectedTab(int direction)
|
void
|
paint(Graphics g, JComponent c)
Paints the specified component appropriate for the look and feel.
|
void
|
paintContentBorder(Graphics g, int tabPlacement, int selectedIndex)
|
void
|
paintContentBorderBottomEdge(Graphics g, int tabPlacement, int selectedIndex, int x, int y, int w, int h)
|
void
|
paintContentBorderLeftEdge(Graphics g, int tabPlacement, int selectedIndex, int x, int y, int w, int h)
|
void
|
paintContentBorderRightEdge(Graphics g, int tabPlacement, int selectedIndex, int x, int y, int w, int h)
|
void
|
paintContentBorderTopEdge(Graphics g, int tabPlacement, int selectedIndex, int x, int y, int w, int h)
|
void
|
paintFocusIndicator(Graphics g, int tabPlacement, Rectangle[] rects, int tabIndex, Rectangle iconRect, Rectangle textRect, boolean isSelected)
|
void
|
paintIcon(Graphics g, int tabPlacement, int tabIndex, Icon icon, Rectangle iconRect, boolean isSelected)
|
void
|
paintTab(Graphics g, int tabPlacement, Rectangle[] rects, int tabIndex, Rectangle iconRect, Rectangle textRect)
|
void
|
paintTabArea(Graphics g, int tabPlacement, int selectedIndex)
Paints the tabs in the tab area.
|
void
|
paintTabBackground(Graphics g, int tabPlacement, int tabIndex, int x, int y, int w, int h, boolean isSelected)
|
void
|
paintTabBorder(Graphics g, int tabPlacement, int tabIndex, int x, int y, int w, int h, boolean isSelected)
this function draws the border around each tab
note that this function does now draw the background of the tab.
|
void
|
paintText(Graphics g, int tabPlacement, Font font, FontMetrics metrics, int tabIndex, String title, Rectangle textRect, boolean isSelected)
|
static
void
|
rotateInsets(Insets topInsets, Insets targetInsets, int targetPlacement)
|
void
|
selectAdjacentRunTab(int tabPlacement, int tabIndex, int offset)
|
void
|
selectNextTab(int current)
|
void
|
selectNextTabInRun(int current)
|
void
|
selectPreviousTab(int current)
|
void
|
selectPreviousTabInRun(int current)
|
void
|
setRolloverTab(int index)
Sets the tab the mouse is currently over to index .
|
void
|
setVisibleComponent(Component component)
|
boolean
|
shouldPadTabRun(int tabPlacement, int run)
|
boolean
|
shouldRotateTabRuns(int tabPlacement)
|
int
|
tabForCoordinate(JTabbedPane pane, int x, int y)
Returns the tab index which intersects the specified point
in the JTabbedPane's coordinate space.
|
void
|
uninstallComponents()
Removes any installed subcomponents from the JTabbedPane.
|
void
|
uninstallDefaults()
|
void
|
uninstallKeyboardActions()
|
void
|
uninstallListeners()
|
void
|
uninstallUI(JComponent c)
Reverses configuration which was done on the specified component during
installUI .
|