public class QuaquaPantherScrollTabbedPaneUI extends javax.swing.plaf.basic.BasicTabbedPaneUI implements NavigatableTabbedPaneUI
Supports the following client properties on the JTabbedPane:
Quaqua.TabbedPane.contentBorderPainted specifies whether the
content border should be painted.Supports the following client properties on the children of the JTabbedPane:
Quaqua.TabbedPaneChild.contentBackground specifies the background
Color to be used to fill the content border.Quaqua.TabbedPaneChild.contentInsets specifies the insets
to be used to lay out the child component inside the JTabbedPane.| Modifier and Type | Class and Description |
|---|---|
class |
QuaquaPantherScrollTabbedPaneUI.QuaquaMouseHandler
This inner class is marked "public" due to a compiler bug.
|
class |
QuaquaPantherScrollTabbedPaneUI.QuaquaPropertyHandler
This inner class is marked "public" due to a compiler bug.
|
class |
QuaquaPantherScrollTabbedPaneUI.QuaquaTabbedPaneLayout
This inner class is marked "public" due to a compiler bug.
|
javax.swing.plaf.basic.BasicTabbedPaneUI.MouseHandler, javax.swing.plaf.basic.BasicTabbedPaneUI.PropertyChangeHandler, javax.swing.plaf.basic.BasicTabbedPaneUI.TabbedPaneLayout, javax.swing.plaf.basic.BasicTabbedPaneUI.TabSelectionHandlercalcRect, 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| Constructor and Description |
|---|
QuaquaPantherScrollTabbedPaneUI()
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
addMnemonic(int index,
int mnemonic)
Adds the specified mnemonic at the specified index.
|
protected int |
calculateTabAreaHeight(int tabPlacement,
int horizRunCount,
int maxTabHeight) |
protected int |
calculateTabAreaWidth(int tabPlacement,
int vertRunCount,
int maxTabWidth) |
protected int |
calculateTabHeight(int tabPlacement,
int tabIndex,
int fontHeight) |
protected javax.swing.event.ChangeListener |
createChangeListener() |
protected java.awt.event.FocusListener |
createFocusListener() |
protected java.awt.event.ItemListener |
createItemListener() |
protected java.awt.LayoutManager |
createLayoutManager() |
protected java.awt.event.MouseListener |
createMouseListener() |
protected java.beans.PropertyChangeListener |
createPropertyChangeListener() |
static javax.swing.plaf.ComponentUI |
createUI(javax.swing.JComponent x) |
protected java.awt.Insets |
getContentBorderInsets(int tabPlacement) |
java.lang.Integer |
getIndexForMnemonic(int mnemonic) |
protected java.awt.Insets |
getInsets() |
protected java.lang.String |
getPropertyPrefix() |
protected java.awt.Rectangle |
getTabBounds(int tabIndex,
java.awt.Rectangle dest)
Returns the bounds of the specified tab in the coordinate space
of the JTabbedPane component.
|
protected java.awt.Insets |
getTabInsets(int tabPlacement,
int tabIndex) |
protected int |
getTabLabelShiftX(int tabPlacement,
int tabIndex,
boolean isSelected) |
protected int |
getTabLabelShiftY(int tabPlacement,
int tabIndex,
boolean isSelected) |
protected java.awt.Insets |
getTabVisualMargin() |
protected javax.swing.text.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.
|
protected java.awt.Insets |
getVisualMargin() |
protected void |
installComponents() |
protected void |
installDefaults() |
protected void |
installKeyboardActions() |
protected void |
installListeners() |
protected java.lang.String |
layoutTabLabel(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 |
navigateSelectedTab(int direction)
Tab Navigation methods.
|
void |
paint(java.awt.Graphics gr,
javax.swing.JComponent c) |
protected void |
paintContentBorder(java.awt.Graphics gr,
int tabPlacement,
int selectedIndex) |
protected void |
paintFocusIndicator(java.awt.Graphics g,
int tabPlacement,
java.awt.Rectangle[] rects,
int tabIndex,
java.awt.Rectangle iconRect,
java.awt.Rectangle textRect,
boolean isSelected) |
protected void |
paintTab(java.awt.Graphics gr,
int tabPlacement,
java.awt.Rectangle[] rects,
int tabIndex,
java.awt.Rectangle iconRect,
java.awt.Rectangle textRect) |
protected void |
paintTabArea(java.awt.Graphics gr,
int tabPlacement,
int selectedIndex) |
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)
this function draws the border around each tab
note that this function does now draw the background of the tab.
|
protected void |
paintText(java.awt.Graphics g,
int tabPlacement,
java.awt.Font font,
java.awt.FontMetrics metrics,
int tabIndex,
java.lang.String title,
java.awt.Rectangle textRect,
boolean isSelected) |
protected void |
repaintTabArea() |
boolean |
requestFocusForVisibleComponent() |
protected void |
resetMnemonics()
Resets the mnemonics bindings to an empty state.
|
void |
setPropertyPrefix(java.lang.String newValue) |
protected boolean |
shouldRotateTabRuns(int tabPlacement) |
int |
tabForCoordinate(javax.swing.JTabbedPane pane,
int x,
int y)
Returns the tab index which intersects the specified point
in the JTabbedPane's coordinate space.
|
protected void |
uninstallComponents() |
protected void |
uninstallListeners() |
assureRectsCreated, calculateMaxTabHeight, calculateMaxTabWidth, calculateTabWidth, createScrollButton, expandTabRunsArray, getBaseline, getBaseline, getBaselineOffset, getBaselineResizeBehavior, getFocusIndex, getFontMetrics, getIconForTab, getMaximumSize, getMinimumSize, getNextTabIndex, getNextTabIndexInRun, getNextTabRun, getPreviousTabIndex, getPreviousTabIndexInRun, getPreviousTabRun, getRolloverTab, getRunForTab, getSelectedTabPadInsets, getTabAreaInsets, getTabBounds, getTabRunCount, getTabRunIndent, getTabRunOffset, getTabRunOverlay, getVisibleComponent, installUI, lastTabInRun, layoutLabel, paintContentBorderBottomEdge, paintContentBorderLeftEdge, paintContentBorderRightEdge, paintContentBorderTopEdge, paintIcon, rotateInsets, selectAdjacentRunTab, selectNextTab, selectNextTabInRun, selectPreviousTab, selectPreviousTabInRun, setRolloverTab, setVisibleComponent, shouldPadTabRun, uninstallDefaults, uninstallKeyboardActions, uninstallUIpublic QuaquaPantherScrollTabbedPaneUI()
public java.lang.Integer getIndexForMnemonic(int mnemonic)
getIndexForMnemonic in interface NavigatableTabbedPaneUIprotected java.lang.String getPropertyPrefix()
public void setPropertyPrefix(java.lang.String newValue)
public static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent x)
protected java.awt.event.ItemListener createItemListener()
protected java.awt.LayoutManager createLayoutManager()
createLayoutManager in class javax.swing.plaf.basic.BasicTabbedPaneUIprotected void installDefaults()
installDefaults in class javax.swing.plaf.basic.BasicTabbedPaneUIprotected void installComponents()
installComponents in class javax.swing.plaf.basic.BasicTabbedPaneUIprotected void uninstallComponents()
uninstallComponents in class javax.swing.plaf.basic.BasicTabbedPaneUIprotected void installListeners()
installListeners in class javax.swing.plaf.basic.BasicTabbedPaneUIprotected void uninstallListeners()
uninstallListeners in class javax.swing.plaf.basic.BasicTabbedPaneUIprotected java.awt.event.MouseListener createMouseListener()
createMouseListener in class javax.swing.plaf.basic.BasicTabbedPaneUIprotected java.beans.PropertyChangeListener createPropertyChangeListener()
createPropertyChangeListener in class javax.swing.plaf.basic.BasicTabbedPaneUIprotected javax.swing.event.ChangeListener createChangeListener()
createChangeListener in class javax.swing.plaf.basic.BasicTabbedPaneUIprotected java.awt.event.FocusListener createFocusListener()
createFocusListener in class javax.swing.plaf.basic.BasicTabbedPaneUIprotected void installKeyboardActions()
installKeyboardActions in class javax.swing.plaf.basic.BasicTabbedPaneUIprotected java.awt.Insets getVisualMargin()
protected java.awt.Insets getTabVisualMargin()
protected java.awt.Insets getInsets()
protected java.awt.Insets getTabInsets(int tabPlacement,
int tabIndex)
getTabInsets in class javax.swing.plaf.basic.BasicTabbedPaneUIprotected java.awt.Insets getContentBorderInsets(int tabPlacement)
getContentBorderInsets in class javax.swing.plaf.basic.BasicTabbedPaneUIpublic void paint(java.awt.Graphics gr,
javax.swing.JComponent c)
paint in class javax.swing.plaf.basic.BasicTabbedPaneUIprotected void paintContentBorder(java.awt.Graphics gr,
int tabPlacement,
int selectedIndex)
paintContentBorder in class javax.swing.plaf.basic.BasicTabbedPaneUIprotected java.lang.String layoutTabLabel(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)
protected void paintTabArea(java.awt.Graphics gr,
int tabPlacement,
int selectedIndex)
paintTabArea in class javax.swing.plaf.basic.BasicTabbedPaneUIprotected void paintTab(java.awt.Graphics gr,
int tabPlacement,
java.awt.Rectangle[] rects,
int tabIndex,
java.awt.Rectangle iconRect,
java.awt.Rectangle textRect)
paintTab in class javax.swing.plaf.basic.BasicTabbedPaneUIprotected void paintTabBackground(java.awt.Graphics g,
int tabPlacement,
int tabIndex,
int x,
int y,
int w,
int h,
boolean isSelected)
paintTabBackground in class javax.swing.plaf.basic.BasicTabbedPaneUIprotected void paintTabBorder(java.awt.Graphics g,
int tabPlacement,
int tabIndex,
int x,
int y,
int w,
int h,
boolean isSelected)
paintTabBorder in class javax.swing.plaf.basic.BasicTabbedPaneUIprotected void paintText(java.awt.Graphics g,
int tabPlacement,
java.awt.Font font,
java.awt.FontMetrics metrics,
int tabIndex,
java.lang.String title,
java.awt.Rectangle textRect,
boolean isSelected)
paintText in class javax.swing.plaf.basic.BasicTabbedPaneUIprotected void paintFocusIndicator(java.awt.Graphics g,
int tabPlacement,
java.awt.Rectangle[] rects,
int tabIndex,
java.awt.Rectangle iconRect,
java.awt.Rectangle textRect,
boolean isSelected)
paintFocusIndicator in class javax.swing.plaf.basic.BasicTabbedPaneUIprotected int getTabLabelShiftX(int tabPlacement,
int tabIndex,
boolean isSelected)
getTabLabelShiftX in class javax.swing.plaf.basic.BasicTabbedPaneUIprotected int getTabLabelShiftY(int tabPlacement,
int tabIndex,
boolean isSelected)
getTabLabelShiftY in class javax.swing.plaf.basic.BasicTabbedPaneUIpublic int tabForCoordinate(javax.swing.JTabbedPane pane,
int x,
int y)
tabForCoordinate in class javax.swing.plaf.basic.BasicTabbedPaneUIprotected java.awt.Rectangle getTabBounds(int tabIndex,
java.awt.Rectangle dest)
Rectangle instance.
The handling of invalid parameters is unspecified.getTabBounds in class javax.swing.plaf.basic.BasicTabbedPaneUItabIndex - the index of the tabdest - the rectangle where the result should be placedprotected void resetMnemonics()
protected void addMnemonic(int index,
int mnemonic)
protected javax.swing.text.View getTextViewForTab(int tabIndex)
getTextViewForTab in class javax.swing.plaf.basic.BasicTabbedPaneUItabIndex - the index of the tabprotected int calculateTabHeight(int tabPlacement,
int tabIndex,
int fontHeight)
calculateTabHeight in class javax.swing.plaf.basic.BasicTabbedPaneUIprotected int calculateTabAreaHeight(int tabPlacement,
int horizRunCount,
int maxTabHeight)
calculateTabAreaHeight in class javax.swing.plaf.basic.BasicTabbedPaneUIprotected int calculateTabAreaWidth(int tabPlacement,
int vertRunCount,
int maxTabWidth)
calculateTabAreaWidth in class javax.swing.plaf.basic.BasicTabbedPaneUIprotected void repaintTabArea()
protected boolean shouldRotateTabRuns(int tabPlacement)
shouldRotateTabRuns in class javax.swing.plaf.basic.BasicTabbedPaneUIpublic boolean requestFocusForVisibleComponent()
requestFocusForVisibleComponent in interface NavigatableTabbedPaneUIpublic void navigateSelectedTab(int direction)
NavigatableTabbedPaneUInavigateSelectedTab in interface NavigatableTabbedPaneUInavigateSelectedTab in class javax.swing.plaf.basic.BasicTabbedPaneUI