public class BasicJideTabbedPaneUI extends JideTabbedPaneUI implements javax.swing.SwingConstants, javax.swing.event.DocumentListener
Modifier and Type | Field and Description |
---|---|
protected java.awt.Color |
_activeTabForeground |
protected boolean |
_alwaysShowLineBorder |
protected java.awt.Color |
_background |
protected int |
_buttonMargin |
protected int |
_buttonSize |
protected java.awt.Rectangle |
_calcRect
A rectangle used for general layout calculations in order to avoid constructing many new Rectangles on the fly.
|
protected int |
_closeButtonAlignment |
protected java.awt.Color |
_closeButtonColor |
protected int |
_closeButtonLeftMargin |
protected int |
_closeButtonMargin |
protected int |
_closeButtonMarginHorizon |
protected int |
_closeButtonMarginSize |
protected int |
_closeButtonMarginVertical |
protected int |
_closeButtonRightMargin |
protected BasicJideTabbedPaneUI.TabCloseButton[] |
_closeButtons |
protected java.awt.Color |
_closeButtonSelectedColor |
protected int |
_compressedStyleCloseButtonMarginHorizon |
protected int |
_compressedStyleCloseButtonMarginVertical |
protected int |
_compressedStyleIconMargin |
protected int |
_compressedStyleNoIconRectSize |
protected java.awt.Color |
_darkShadow |
protected java.awt.Color |
_defaultTabBorderShadowColor |
java.awt.dnd.DropTarget |
_dt |
protected int |
_editingTab |
protected int |
_fitStyleBoundSize |
protected int |
_fitStyleFirstTabMargin |
protected int |
_fitStyleIconMinWidth |
protected int |
_fitStyleTextMinWidth |
protected int |
_fixedStyleRectSize |
protected java.awt.Color |
_focus |
protected int |
_gripLeftMargin |
protected int |
_gripperHeight |
protected int |
_gripperWidth |
protected java.awt.Color |
_highlight |
protected int |
_iconMargin |
protected boolean |
_ignoreContentBorderInsetsIfNoTabs |
protected java.awt.Color |
_inactiveTabForeground |
protected int |
_indexMouseOver |
protected boolean |
_isEditing |
protected java.awt.Color |
_lightHighlight |
protected int |
_maxTabHeight |
protected int |
_maxTabWidth |
protected boolean |
_mouseEnter |
protected java.awt.event.MouseListener |
_mouseListener |
protected java.awt.event.MouseMotionListener |
_mousemotionListener |
protected java.awt.event.MouseWheelListener |
_mouseWheelListener |
protected int |
_noIconMargin |
protected java.awt.Color |
_officeTabBorderColor |
protected java.lang.String |
_oldPostfix |
protected java.lang.String |
_oldPrefix |
protected java.lang.String |
_oldValue |
protected java.awt.Component |
_originalFocusComponent |
protected java.awt.Color |
_popupColor |
protected java.beans.PropertyChangeListener |
_propertyChangeListener |
protected java.awt.Rectangle[] |
_rects |
protected int |
_rectSizeExtend |
protected int |
_runCount |
protected java.awt.Color |
_selectColor1 |
protected java.awt.Color |
_selectColor2 |
protected java.awt.Color |
_selectColor3 |
protected java.awt.Color |
_selectedColor |
protected int |
_selectedRun |
protected java.awt.Insets |
_selectedTabPadInsets |
protected java.awt.Color |
_shadow |
protected boolean |
_showCloseButtonOnTab |
protected boolean |
_showFocusIndicator |
protected boolean |
_showIconOnTab |
protected java.awt.Insets |
_tabAreaInsets |
protected java.awt.Color |
_tabBackground |
protected javax.swing.event.ChangeListener |
_tabChangeListener |
protected int |
_tabCount
Number of tabs.
|
protected BasicJideTabbedPaneUI.TabEditor |
_tabEditor |
protected java.awt.event.FocusListener |
_tabFocusListener |
protected java.awt.Insets |
_tabInsets |
protected java.awt.Component |
_tabLeadingComponent |
protected java.awt.Color |
_tabListBackground |
protected JideTabbedPane |
_tabPane |
protected int |
_tabRectPadding |
protected int |
_tabRunOverlay |
protected int[] |
_tabRuns |
BasicJideTabbedPaneUI.ScrollableTabSupport |
_tabScroller |
protected java.awt.Component |
_tabTrailingComponent |
protected int |
_textIconGap |
protected int |
_textMarginVertical |
protected int |
_textPadding |
protected java.awt.Color |
_unselectColor1 |
protected java.awt.Color |
_unselectColor2 |
protected java.awt.Color |
_unselectColor3 |
static java.lang.String |
BUTTON_NAME_CLOSE |
static java.lang.String |
BUTTON_NAME_SCROLL_BACKWARD |
static java.lang.String |
BUTTON_NAME_SCROLL_FORWARD |
static java.lang.String |
BUTTON_NAME_TAB_LIST |
static int |
DEFAULT_LEFT_MARGIN |
static int |
EXCEL_LEFT_MARGIN |
static int |
OFFICE2003_LEFT_MARGIN |
protected boolean |
PAINT_CONTENT_BORDER |
protected boolean |
PAINT_CONTENT_BORDER_EDGE |
protected boolean |
PAINT_TAB |
protected boolean |
PAINT_TAB_BACKGROUND |
protected boolean |
PAINT_TAB_BORDER |
protected boolean |
PAINT_TABAREA |
protected java.awt.Polygon |
tabRegion |
protected BasicJideTabbedPaneUI.TabSpaceAllocator |
tryTabSpacer |
Constructor and Description |
---|
BasicJideTabbedPaneUI() |
Modifier and Type | Method and Description |
---|---|
protected void |
assureRectsCreated(int tabCount) |
protected int |
calculateMaxTabHeight(int tabPlacement) |
protected int |
calculateMaxTabWidth(int tabPlacement) |
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,
java.awt.FontMetrics metrics) |
protected int |
calculateTabWidth(int tabPlacement,
int tabIndex,
java.awt.FontMetrics metrics) |
void |
cancelTabEditing()
Cancels the editing and discards the change.
|
void |
changedUpdate(javax.swing.event.DocumentEvent e) |
protected javax.swing.event.ChangeListener |
createChangeListener() |
protected BasicJideTabbedPaneUI.TabEditor |
createDefaultTabEditor() |
protected com.jidesoft.plaf.basic.BasicJideTabbedPaneUI.DropListener |
createDropListener() |
protected java.awt.event.FocusListener |
createFocusListener() |
protected java.awt.LayoutManager |
createLayoutManager()
Invoked by
installUI to create a layout manager object to manage the JTabbedPane . |
protected java.awt.event.MouseListener |
createMouseListener() |
protected java.awt.event.MouseMotionListener |
createMouseMotionListener() |
protected java.awt.event.MouseWheelListener |
createMouseWheelListener() |
protected BasicJideTabbedPaneUI.TabCloseButton |
createNoFocusButton(int type) |
protected java.beans.PropertyChangeListener |
createPropertyChangeListener() |
static javax.swing.plaf.ComponentUI |
createUI(javax.swing.JComponent c) |
boolean |
editTabAt(int tabIndex)
Edits the tab at the index.
|
void |
ensureActiveTabIsVisible(boolean scrollLeft)
Scroll the selected tab visible in case the tab is outside of the viewport.
|
void |
ensureCloseButtonCreated() |
protected void |
ensureCurrentLayout() |
protected void |
ensureCurrentRects(int leftMargin,
int tabCount) |
protected void |
expandTabRunsArray() |
protected java.awt.Color |
getBorderEdgeColor() |
protected int |
getColorTheme() |
protected java.awt.Insets |
getContentBorderInsets(int tabPlacement) |
protected java.lang.String |
getCurrentDisplayTitleAt(JideTabbedPane tp,
int index) |
int |
getEditingTabIndex()
Gets the tab index that is editing, if any.
|
protected java.awt.FontMetrics |
getFontMetrics(int tab) |
protected int |
getLayoutSize() |
protected int |
getLeftMargin() |
java.awt.Dimension |
getMaximumSize(javax.swing.JComponent c) |
java.awt.Dimension |
getMinimumSize(javax.swing.JComponent c) |
protected int |
getNextTabIndex(int base) |
protected int |
getNextTabIndexInRun(int tabCount,
int base) |
protected int |
getNextTabRun(int baseRun) |
ThemePainter |
getPainter() |
java.awt.Dimension |
getPreferredSize(javax.swing.JComponent c) |
protected int |
getPreviousTabIndex(int base) |
protected int |
getPreviousTabIndexInRun(int tabCount,
int base) |
protected int |
getPreviousTabRun(int baseRun) |
protected java.lang.String |
getResourceString(java.lang.String key)
Gets the resource string used in DocumentPane.
|
protected int |
getRunForTab(int tabCount,
int tabIndex) |
protected java.awt.Insets |
getSelectedTabPadInsets(int tabPlacement) |
protected java.awt.Insets |
getTabAreaInsets(int tabPlacement) |
int |
getTabAtLocation(int x,
int y)
Returns the tab index which intersects the specified point in the coordinate space of the component where the
tabs are actually rendered, which could be the JTabbedPane (for WRAP_TAB_LAYOUT) or a ScrollableTabPanel
(SCROLL_TAB_LAYOUT).
|
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.
|
java.awt.Rectangle |
getTabBounds(javax.swing.JTabbedPane pane,
int i)
Returns the bounds of the specified tab index.
|
protected int |
getTabGap() |
protected java.awt.Insets |
getTabInsets(int tabPlacement,
int tabIndex) |
protected javax.swing.ListCellRenderer |
getTabListCellRenderer() |
java.awt.Component |
getTabPanel()
Gets the tab panel for the JideTabbedPane.
|
protected int |
getTabResizeMode() |
protected int |
getTabRightPadding() |
int |
getTabRunCount(javax.swing.JTabbedPane pane) |
protected int |
getTabRunIndent(int tabPlacement,
int run) |
protected int |
getTabRunOffset(int tabPlacement,
int tabCount,
int tabIndex,
boolean forward) |
protected int |
getTabRunOverlay(int tabPlacement) |
protected int |
getTabShape() |
protected java.awt.Rectangle |
getTabsTextBoundsAt(int tabIndex) |
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.Component |
getVisibleComponent() |
void |
insertUpdate(javax.swing.event.DocumentEvent e) |
void |
installColorTheme() |
protected void |
installComponents()
Creates and installs any required subcomponents for the JTabbedPane.
|
protected void |
installDefaults() |
protected void |
installKeyboardActions() |
protected void |
installListeners() |
void |
installUI(javax.swing.JComponent c) |
protected boolean |
isRoundedCorner() |
protected boolean |
isShowCloseButton() |
protected boolean |
isShowCloseButtonOnTab() |
protected boolean |
isShowTabButtons() |
protected boolean |
isShrinkTabs() |
boolean |
isTabEditing()
Checks if the tab is being edited.
|
protected boolean |
isTabLeadingComponentVisible() |
protected boolean |
isTabTopVisible(int tabPlacement) |
protected boolean |
isTabTrailingComponentVisible() |
protected int |
lastTabInRun(int tabCount,
int run) |
protected void |
layoutLabel(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 |
navigateSelectedTab(int direction) |
void |
paint(java.awt.Graphics g,
javax.swing.JComponent c) |
void |
paintBackground(java.awt.Graphics g,
java.awt.Component c) |
protected void |
paintBoxTabBorder(java.awt.Graphics g,
int tabPlacement,
int tabIndex,
int x,
int y,
int w,
int h,
boolean isSelected) |
protected void |
paintButtonTabBackground(java.awt.Graphics g,
int tabPlacement,
int tabIndex,
int x,
int y,
int w,
int h,
boolean isSelected) |
protected void |
paintContentBorder(java.awt.Graphics g,
int tabPlacement,
int selectedIndex) |
protected void |
paintContentBorder(java.awt.Graphics g,
int x,
int y,
int w,
int h) |
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 |
paintDefaultTabBackground(java.awt.Graphics g,
int tabPlacement,
int tabIndex,
int x,
int y,
int w,
int h,
boolean isSelected) |
protected void |
paintExcelTabBackground(java.awt.Graphics g,
int tabPlacement,
int tabIndex,
int x,
int y,
int w,
int h,
boolean isSelected) |
protected void |
paintExcelTabBorder(java.awt.Graphics g,
int tabPlacement,
int tabIndex,
int x,
int y,
int w,
int h,
boolean isSelected) |
protected void |
paintFlatTabBackground(java.awt.Graphics g,
int tabPlacement,
int tabIndex,
int x,
int y,
int w,
int h,
boolean isSelected) |
protected void |
paintFlatTabBorder(java.awt.Graphics g,
int tabPlacement,
int tabIndex,
int x,
int y,
int w,
int h,
boolean isSelected) |
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 |
paintIcon(java.awt.Graphics g,
int tabPlacement,
int tabIndex,
javax.swing.Icon icon,
java.awt.Rectangle iconRect,
boolean isSelected) |
protected void |
paintOffice2003TabBackground(java.awt.Graphics g,
int tabPlacement,
int tabIndex,
int x,
int y,
int w,
int h,
boolean isSelected) |
protected void |
paintOffice2003TabBorder(java.awt.Graphics g,
int tabPlacement,
int tabIndex,
int x,
int y,
int w,
int h,
boolean isSelected) |
protected void |
paintRoundedFlatTabBorder(java.awt.Graphics g,
int tabPlacement,
int tabIndex,
int x,
int y,
int w,
int h,
boolean isSelected) |
protected void |
paintRoundedVsnetTabBorder(java.awt.Graphics g,
int tabPlacement,
int tabIndex,
int x,
int y,
int w,
int h,
boolean isSelected) |
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 |
paintTabArea(java.awt.Graphics g,
int tabPlacement,
int selectedIndex,
java.awt.Component c)
Paints the tabs in the tab area.
|
protected void |
paintTabAreaBackground(java.awt.Graphics g,
java.awt.Rectangle rect,
int tabPlacement) |
protected void |
paintTabBackground(java.awt.Graphics g,
int tabPlacement,
int tabIndex,
int x,
int y,
int w,
int h,
boolean isSelected) |
protected void |
paintTabBackgroundMouseOver(java.awt.Graphics g,
int tabPlacement,
int tabIndex,
int x,
int y,
int w,
int h,
boolean isSelected,
java.awt.Color backgroundUnselectedColorStart,
java.awt.Color backgroundUnselectedColorEnd) |
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 |
paintTabBorderMouseOver(java.awt.Graphics g,
int tabPlacement,
int tabIndex,
int x,
int y,
int w,
int h,
boolean isSelected) |
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 |
paintVsnetTabBackground(java.awt.Graphics g,
int tabPlacement,
int tabIndex,
int x,
int y,
int w,
int h,
boolean isSelected) |
protected void |
paintVsnetTabBorder(java.awt.Graphics g,
int tabPlacement,
int tabIndex,
int x,
int y,
int w,
int h,
boolean isSelected) |
protected void |
paintWindowsTabBorder(java.awt.Graphics g,
int tabPlacement,
int tabIndex,
int x,
int y,
int w,
int h,
boolean isSelected) |
protected void |
prepareEditor(BasicJideTabbedPaneUI.TabEditor e,
int tabIndex) |
void |
removeUpdate(javax.swing.event.DocumentEvent e) |
protected boolean |
requestFocusForVisibleComponent() |
protected void |
resizeEditor(int tabIndex) |
static void |
rotateInsets(java.awt.Insets topInsets,
java.awt.Insets targetInsets,
int targetPlacement) |
protected boolean |
scrollableTabLayoutEnabled() |
protected void |
selectAdjacentRunTab(int tabPlacement,
int tabIndex,
int offset) |
protected void |
selectNextTab(int current) |
protected void |
selectNextTabInRun(int current) |
protected void |
selectPreviousTab(int current) |
protected void |
selectPreviousTabInRun(int current) |
protected void |
setVisibleComponent(java.awt.Component component) |
protected boolean |
shouldPadTabRun(int tabPlacement,
int run) |
protected boolean |
shouldRotateTabRuns(int tabPlacement) |
protected boolean |
showFocusIndicator() |
void |
startEditing(java.awt.event.MouseEvent e) |
protected void |
stopOrCancelEditing() |
void |
stopTabEditing()
Stops the editing and commits the change.
|
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.
|
void |
uninstallColorTheme() |
protected void |
uninstallComponents()
Removes any installed subcomponents from the JTabbedPane.
|
protected void |
uninstallDefaults() |
protected void |
uninstallKeyboardActions() |
protected void |
uninstallListeners() |
void |
uninstallUI(javax.swing.JComponent c) |
protected void |
updateCloseAction() |
protected void |
updateMnemonics()
Reloads the mnemonics.
|
protected int _tabRectPadding
protected int _closeButtonMarginHorizon
protected int _closeButtonMarginVertical
protected int _textMarginVertical
protected int _noIconMargin
protected int _iconMargin
protected int _textPadding
protected int _buttonSize
protected int _buttonMargin
protected int _fitStyleBoundSize
protected int _fitStyleFirstTabMargin
protected int _fitStyleIconMinWidth
protected int _fitStyleTextMinWidth
protected int _compressedStyleNoIconRectSize
protected int _compressedStyleIconMargin
protected int _compressedStyleCloseButtonMarginHorizon
protected int _compressedStyleCloseButtonMarginVertical
protected int _fixedStyleRectSize
protected int _closeButtonMargin
protected int _gripLeftMargin
protected int _closeButtonMarginSize
protected int _closeButtonLeftMargin
protected int _closeButtonRightMargin
protected java.awt.Component _tabLeadingComponent
protected java.awt.Component _tabTrailingComponent
protected JideTabbedPane _tabPane
protected java.awt.Color _tabBackground
protected java.awt.Color _background
protected java.awt.Color _highlight
protected java.awt.Color _lightHighlight
protected java.awt.Color _shadow
protected java.awt.Color _darkShadow
protected java.awt.Color _focus
protected java.awt.Color _inactiveTabForeground
protected java.awt.Color _activeTabForeground
protected java.awt.Color _tabListBackground
protected java.awt.Color _selectedColor
protected int _textIconGap
protected int _tabRunOverlay
protected boolean _showIconOnTab
protected boolean _showCloseButtonOnTab
protected int _closeButtonAlignment
protected java.awt.Insets _tabInsets
protected java.awt.Insets _selectedTabPadInsets
protected java.awt.Insets _tabAreaInsets
protected boolean _ignoreContentBorderInsetsIfNoTabs
protected int[] _tabRuns
protected int _runCount
protected int _selectedRun
protected java.awt.Rectangle[] _rects
protected int _maxTabHeight
protected int _maxTabWidth
protected int _gripperWidth
protected int _gripperHeight
protected javax.swing.event.ChangeListener _tabChangeListener
protected java.awt.event.FocusListener _tabFocusListener
protected java.beans.PropertyChangeListener _propertyChangeListener
protected java.awt.event.MouseListener _mouseListener
protected java.awt.event.MouseMotionListener _mousemotionListener
protected java.awt.event.MouseWheelListener _mouseWheelListener
public BasicJideTabbedPaneUI.ScrollableTabSupport _tabScroller
protected transient java.awt.Rectangle _calcRect
protected int _tabCount
protected BasicJideTabbedPaneUI.TabCloseButton[] _closeButtons
public java.awt.dnd.DropTarget _dt
public static final int DEFAULT_LEFT_MARGIN
public static final int OFFICE2003_LEFT_MARGIN
public static final int EXCEL_LEFT_MARGIN
protected int _rectSizeExtend
protected java.awt.Polygon tabRegion
protected java.awt.Color _selectColor1
protected java.awt.Color _selectColor2
protected java.awt.Color _selectColor3
protected java.awt.Color _unselectColor1
protected java.awt.Color _unselectColor2
protected java.awt.Color _unselectColor3
protected java.awt.Color _officeTabBorderColor
protected java.awt.Color _defaultTabBorderShadowColor
protected boolean _mouseEnter
protected int _indexMouseOver
protected boolean _alwaysShowLineBorder
protected boolean _showFocusIndicator
public static final java.lang.String BUTTON_NAME_CLOSE
public static final java.lang.String BUTTON_NAME_TAB_LIST
public static final java.lang.String BUTTON_NAME_SCROLL_BACKWARD
public static final java.lang.String BUTTON_NAME_SCROLL_FORWARD
protected BasicJideTabbedPaneUI.TabSpaceAllocator tryTabSpacer
protected java.awt.Color _closeButtonSelectedColor
protected java.awt.Color _closeButtonColor
protected java.awt.Color _popupColor
protected BasicJideTabbedPaneUI.TabEditor _tabEditor
protected boolean _isEditing
protected int _editingTab
protected java.lang.String _oldValue
protected java.lang.String _oldPrefix
protected java.lang.String _oldPostfix
protected java.awt.Component _originalFocusComponent
protected final boolean PAINT_TAB
protected final boolean PAINT_TAB_BORDER
protected final boolean PAINT_TAB_BACKGROUND
protected final boolean PAINT_TABAREA
protected final boolean PAINT_CONTENT_BORDER
protected final boolean PAINT_CONTENT_BORDER_EDGE
public static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent c)
public void installUI(javax.swing.JComponent c)
installUI
in class javax.swing.plaf.ComponentUI
public void installColorTheme()
public void uninstallUI(javax.swing.JComponent c)
uninstallUI
in class javax.swing.plaf.ComponentUI
public void uninstallColorTheme()
protected java.awt.LayoutManager createLayoutManager()
installUI
to create a layout manager object to manage the JTabbedPane
.BasicJideTabbedPaneUI.TabbedPaneLayout
,
JTabbedPane.getTabLayoutPolicy()
protected boolean scrollableTabLayoutEnabled()
protected void installComponents()
protected void uninstallComponents()
protected void installDefaults()
protected void uninstallDefaults()
protected void installListeners()
protected com.jidesoft.plaf.basic.BasicJideTabbedPaneUI.DropListener createDropListener()
protected void uninstallListeners()
protected javax.swing.event.ChangeListener createChangeListener()
protected java.awt.event.FocusListener createFocusListener()
protected java.beans.PropertyChangeListener createPropertyChangeListener()
protected void installKeyboardActions()
protected void uninstallKeyboardActions()
protected void updateMnemonics()
public java.awt.Dimension getPreferredSize(javax.swing.JComponent c)
getPreferredSize
in class javax.swing.plaf.ComponentUI
public java.awt.Dimension getMinimumSize(javax.swing.JComponent c)
getMinimumSize
in class javax.swing.plaf.ComponentUI
public java.awt.Dimension getMaximumSize(javax.swing.JComponent c)
getMaximumSize
in class javax.swing.plaf.ComponentUI
public void paint(java.awt.Graphics g, javax.swing.JComponent c)
paint
in class javax.swing.plaf.ComponentUI
public void paintBackground(java.awt.Graphics g, java.awt.Component c)
protected void paintTabArea(java.awt.Graphics g, int tabPlacement, int selectedIndex, java.awt.Component c)
Graphics
object. Tab placement may be either: JTabbedPane.TOP
, JTabbedPane.BOTTOM
,
JTabbedPane.LEFT
, or JTabbedPane.RIGHT
. The selected index must be a valid tabbed pane
tab index (0 to tab count - 1, inclusive) or -1 if no tab is currently selected. The handling of invalid
parameters is unspecified.g
- the graphics object to use for renderingtabPlacement
- the placement for the tabs within the JTabbedPaneselectedIndex
- the tab index of the selected componentc
- the componentprotected void paintTabAreaBackground(java.awt.Graphics g, java.awt.Rectangle rect, int tabPlacement)
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 layoutLabel(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 paintIcon(java.awt.Graphics g, int tabPlacement, int tabIndex, javax.swing.Icon icon, java.awt.Rectangle iconRect, boolean isSelected)
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 paintTabBorder(java.awt.Graphics g, int tabPlacement, int tabIndex, int x, int y, int w, int h, boolean isSelected)
protected void paintOffice2003TabBorder(java.awt.Graphics g, int tabPlacement, int tabIndex, int x, int y, int w, int h, boolean isSelected)
protected void paintExcelTabBorder(java.awt.Graphics g, int tabPlacement, int tabIndex, int x, int y, int w, int h, boolean isSelected)
protected void paintWindowsTabBorder(java.awt.Graphics g, int tabPlacement, int tabIndex, int x, int y, int w, int h, boolean isSelected)
protected void paintTabBorderMouseOver(java.awt.Graphics g, int tabPlacement, int tabIndex, int x, int y, int w, int h, boolean isSelected)
protected void paintVsnetTabBorder(java.awt.Graphics g, int tabPlacement, int tabIndex, int x, int y, int w, int h, boolean isSelected)
protected void paintRoundedVsnetTabBorder(java.awt.Graphics g, int tabPlacement, int tabIndex, int x, int y, int w, int h, boolean isSelected)
protected void paintFlatTabBorder(java.awt.Graphics g, int tabPlacement, int tabIndex, int x, int y, int w, int h, boolean isSelected)
protected void paintRoundedFlatTabBorder(java.awt.Graphics g, int tabPlacement, int tabIndex, int x, int y, int w, int h, boolean isSelected)
protected void paintBoxTabBorder(java.awt.Graphics g, int tabPlacement, int tabIndex, int x, int y, int w, int h, boolean isSelected)
protected void paintTabBackground(java.awt.Graphics g, int tabPlacement, int tabIndex, int x, int y, int w, int h, boolean isSelected)
protected void paintOffice2003TabBackground(java.awt.Graphics g, int tabPlacement, int tabIndex, int x, int y, int w, int h, boolean isSelected)
protected void paintExcelTabBackground(java.awt.Graphics g, int tabPlacement, int tabIndex, int x, int y, int w, int h, boolean isSelected)
protected void paintDefaultTabBackground(java.awt.Graphics g, int tabPlacement, int tabIndex, int x, int y, int w, int h, boolean isSelected)
protected void paintTabBackgroundMouseOver(java.awt.Graphics g, int tabPlacement, int tabIndex, int x, int y, int w, int h, boolean isSelected, java.awt.Color backgroundUnselectedColorStart, java.awt.Color backgroundUnselectedColorEnd)
protected void paintVsnetTabBackground(java.awt.Graphics g, int tabPlacement, int tabIndex, int x, int y, int w, int h, boolean isSelected)
protected void paintFlatTabBackground(java.awt.Graphics g, int tabPlacement, int tabIndex, int x, int y, int w, int h, boolean isSelected)
protected void paintButtonTabBackground(java.awt.Graphics g, int tabPlacement, int tabIndex, int x, int y, int w, int h, boolean isSelected)
protected void paintContentBorder(java.awt.Graphics g, int tabPlacement, int selectedIndex)
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 paintContentBorder(java.awt.Graphics g, int x, int y, int w, int h)
protected java.awt.Color getBorderEdgeColor()
protected void paintContentBorderTopEdge(java.awt.Graphics g, int tabPlacement, int selectedIndex, int x, int y, int w, int h)
protected void paintContentBorderBottomEdge(java.awt.Graphics g, int tabPlacement, int selectedIndex, int x, int y, int w, int h)
protected void ensureCurrentLayout()
public java.awt.Rectangle getTabBounds(javax.swing.JTabbedPane pane, int i)
getTabBounds
in class javax.swing.plaf.TabbedPaneUI
public int getTabRunCount(javax.swing.JTabbedPane pane)
getTabRunCount
in class javax.swing.plaf.TabbedPaneUI
public int tabForCoordinate(javax.swing.JTabbedPane pane, int x, int y)
tabForCoordinate
in class javax.swing.plaf.TabbedPaneUI
protected java.awt.Rectangle getTabBounds(int tabIndex, java.awt.Rectangle dest)
Rectangle
instance. The handling of invalid parameters is
unspecified.tabIndex
- the index of the tabdest
- the rectangle where the result should be placedpublic int getTabAtLocation(int x, int y)
protected java.awt.Component getVisibleComponent()
protected void setVisibleComponent(java.awt.Component component)
protected void assureRectsCreated(int tabCount)
protected void expandTabRunsArray()
protected int getRunForTab(int tabCount, int tabIndex)
protected int lastTabInRun(int tabCount, int run)
protected int getTabRunOverlay(int tabPlacement)
protected int getTabRunIndent(int tabPlacement, int run)
protected boolean shouldPadTabRun(int tabPlacement, int run)
protected boolean shouldRotateTabRuns(int tabPlacement)
protected javax.swing.text.View getTextViewForTab(int tabIndex)
tabIndex
- the index of the tabprotected int calculateTabHeight(int tabPlacement, int tabIndex, java.awt.FontMetrics metrics)
protected int calculateMaxTabHeight(int tabPlacement)
protected int calculateTabWidth(int tabPlacement, int tabIndex, java.awt.FontMetrics metrics)
protected int calculateMaxTabWidth(int tabPlacement)
protected int calculateTabAreaHeight(int tabPlacement, int horizRunCount, int maxTabHeight)
protected int calculateTabAreaWidth(int tabPlacement, int vertRunCount, int maxTabWidth)
protected java.awt.Insets getTabInsets(int tabPlacement, int tabIndex)
protected java.awt.Insets getSelectedTabPadInsets(int tabPlacement)
protected java.awt.Insets getTabAreaInsets(int tabPlacement)
protected java.awt.Insets getContentBorderInsets(int tabPlacement)
protected java.awt.FontMetrics getFontMetrics(int tab)
protected void navigateSelectedTab(int direction)
protected void selectNextTabInRun(int current)
protected void selectPreviousTabInRun(int current)
protected void selectNextTab(int current)
protected void selectPreviousTab(int current)
protected void selectAdjacentRunTab(int tabPlacement, int tabIndex, int offset)
protected int getTabRunOffset(int tabPlacement, int tabCount, int tabIndex, boolean forward)
protected int getPreviousTabIndex(int base)
protected int getNextTabIndex(int base)
protected int getNextTabIndexInRun(int tabCount, int base)
protected int getPreviousTabIndexInRun(int tabCount, int base)
protected int getPreviousTabRun(int baseRun)
protected int getNextTabRun(int baseRun)
public static void rotateInsets(java.awt.Insets topInsets, java.awt.Insets targetInsets, int targetPlacement)
protected boolean requestFocusForVisibleComponent()
protected BasicJideTabbedPaneUI.TabCloseButton createNoFocusButton(int type)
protected void stopOrCancelEditing()
protected void ensureCurrentRects(int leftMargin, int tabCount)
protected javax.swing.ListCellRenderer getTabListCellRenderer()
protected void updateCloseAction()
public java.awt.Component getTabPanel()
JideTabbedPaneUI
getTabPanel
in class JideTabbedPaneUI
public void ensureActiveTabIsVisible(boolean scrollLeft)
JideTabbedPaneUI
JideTabbedPane.scrollSelectedTabToVisible(boolean)
method.ensureActiveTabIsVisible
in class JideTabbedPaneUI
scrollLeft
- true to scroll the first tab visible first then scroll left to make
the selected tab visible. This will get a more consistent result.
If false, it will simple scroll the selected tab visible. Sometimes the
tab will appear as the first visible tab or the last visible tab depending on
the previous viewport position.protected boolean isShowCloseButtonOnTab()
protected boolean isShowCloseButton()
public void ensureCloseButtonCreated()
protected boolean isShowTabButtons()
protected boolean isShrinkTabs()
public boolean isTabEditing()
JideTabbedPaneUI
isTabEditing
in class JideTabbedPaneUI
protected BasicJideTabbedPaneUI.TabEditor createDefaultTabEditor()
public void stopTabEditing()
JideTabbedPaneUI
stopTabEditing
in class JideTabbedPaneUI
public void cancelTabEditing()
JideTabbedPaneUI
cancelTabEditing
in class JideTabbedPaneUI
public boolean editTabAt(int tabIndex)
JideTabbedPaneUI
editTabAt
in class JideTabbedPaneUI
tabIndex
- the tab index.public int getEditingTabIndex()
JideTabbedPaneUI
getEditingTabIndex
in class JideTabbedPaneUI
protected void prepareEditor(BasicJideTabbedPaneUI.TabEditor e, int tabIndex)
protected java.awt.Rectangle getTabsTextBoundsAt(int tabIndex)
public void insertUpdate(javax.swing.event.DocumentEvent e)
insertUpdate
in interface javax.swing.event.DocumentListener
public void removeUpdate(javax.swing.event.DocumentEvent e)
removeUpdate
in interface javax.swing.event.DocumentListener
public void changedUpdate(javax.swing.event.DocumentEvent e)
changedUpdate
in interface javax.swing.event.DocumentListener
protected void resizeEditor(int tabIndex)
protected java.lang.String getCurrentDisplayTitleAt(JideTabbedPane tp, int index)
public void startEditing(java.awt.event.MouseEvent e)
public ThemePainter getPainter()
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 boolean isRoundedCorner()
protected int getTabShape()
protected int getTabResizeMode()
protected int getColorTheme()
protected int getLeftMargin()
protected int getTabGap()
protected int getLayoutSize()
protected int getTabRightPadding()
protected java.awt.event.MouseListener createMouseListener()
protected java.awt.event.MouseWheelListener createMouseWheelListener()
protected java.awt.event.MouseMotionListener createMouseMotionListener()
protected boolean isTabLeadingComponentVisible()
protected boolean isTabTrailingComponentVisible()
protected boolean isTabTopVisible(int tabPlacement)
protected boolean showFocusIndicator()
protected java.lang.String getResourceString(java.lang.String key)
key
- the resource key