|
JIDE 3.5.15 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.swing.plaf.ComponentUI
javax.swing.plaf.TabbedPaneUI
com.jidesoft.plaf.JideTabbedPaneUI
com.jidesoft.plaf.basic.BasicJideTabbedPaneUI
public class BasicJideTabbedPaneUI
A basic L&f implementation of JideTabbedPaneUI
Fields inherited from interface javax.swing.SwingConstants |
---|
BOTTOM, CENTER, EAST, HORIZONTAL, LEADING, LEFT, NEXT, NORTH, NORTH_EAST, NORTH_WEST, PREVIOUS, RIGHT, SOUTH, SOUTH_EAST, SOUTH_WEST, TOP, TRAILING, VERTICAL, WEST |
Constructor Summary | |
---|---|
BasicJideTabbedPaneUI()
|
Method Summary | |
---|---|
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,
FontMetrics metrics)
|
protected int |
calculateTabWidth(int tabPlacement,
int tabIndex,
FontMetrics metrics)
|
void |
cancelTabEditing()
Cancels the editing and discards the change. |
void |
changedUpdate(DocumentEvent e)
|
protected ChangeListener |
createChangeListener()
|
protected BasicJideTabbedPaneUI.TabEditor |
createDefaultTabEditor()
|
protected com.jidesoft.plaf.basic.BasicJideTabbedPaneUI.DropListener |
createDropListener()
|
protected FocusListener |
createFocusListener()
|
protected LayoutManager |
createLayoutManager()
Invoked by installUI to create a layout manager object to manage the JTabbedPane . |
protected MouseListener |
createMouseListener()
|
protected MouseMotionListener |
createMouseMotionListener()
|
protected MouseWheelListener |
createMouseWheelListener()
|
protected BasicJideTabbedPaneUI.TabCloseButton |
createNoFocusButton(int type)
Deprecated. replaced by JideTabbedPane.createNoFocusButton(int) |
protected PropertyChangeListener |
createPropertyChangeListener()
|
static ComponentUI |
createUI(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 Color |
getBorderEdgeColor()
|
protected int |
getColorTheme()
|
protected Insets |
getContentBorderInsets(int tabPlacement)
|
protected String |
getCurrentDisplayTitleAt(JideTabbedPane tp,
int index)
|
int |
getEditingTabIndex()
Gets the tab index that is editing, if any. |
protected FontMetrics |
getFontMetrics(int tab)
|
protected int |
getLayoutSize()
|
protected int |
getLeftMargin()
|
Dimension |
getMaximumSize(JComponent c)
|
Dimension |
getMinimumSize(JComponent c)
|
protected int |
getNextTabIndex(int base)
|
protected int |
getNextTabIndexInRun(int tabCount,
int base)
|
protected int |
getNextTabRun(int baseRun)
|
ThemePainter |
getPainter()
|
Dimension |
getPreferredSize(JComponent c)
|
protected int |
getPreviousTabIndex(int base)
|
protected int |
getPreviousTabIndexInRun(int tabCount,
int base)
|
protected int |
getPreviousTabRun(int baseRun)
|
protected String |
getResourceString(String key)
Gets the resource string used in JideTabbedPane. |
protected int |
getRunForTab(int tabCount,
int tabIndex)
|
protected Insets |
getSelectedTabPadInsets(int tabPlacement)
|
protected 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 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. |
protected int |
getTabGap()
|
protected 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 ListCellRenderer |
getTabListCellRenderer()
|
Component |
getTabPanel()
Gets the tab panel for the JideTabbedPane. |
protected int |
getTabResizeMode()
|
protected int |
getTabRightPadding()
|
int |
getTabRunCount(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 Rectangle |
getTabsTextBoundsAt(int tabIndex)
|
protected 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 Component |
getVisibleComponent()
|
void |
insertUpdate(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(JComponent c)
|
boolean |
isEmptyTabArea(int x,
int y)
Returns if the point resides in the empty tab area, which means it is in the tab area however no real tab contains that point. |
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,
FontMetrics metrics,
int tabIndex,
String title,
Icon icon,
Rectangle tabRect,
Rectangle iconRect,
Rectangle textRect,
boolean isSelected)
|
protected void |
navigateSelectedTab(int direction)
|
void |
paint(Graphics g,
JComponent c)
|
void |
paintBackground(Graphics g,
Component c)
|
protected void |
paintBoxTabBorder(Graphics g,
int tabPlacement,
int tabIndex,
int x,
int y,
int w,
int h,
boolean isSelected)
|
protected void |
paintButtonTabBackground(Graphics g,
int tabPlacement,
int tabIndex,
int x,
int y,
int w,
int h,
boolean isSelected)
|
protected void |
paintContentBorder(Graphics g,
int tabPlacement,
int selectedIndex)
Paints the border of the conten pane which should reflect the tabs as well. |
protected void |
paintContentBorder(Graphics g,
int x,
int y,
int w,
int h)
|
protected void |
paintContentBorderBottomEdge(Graphics g,
int tabPlacement,
int selectedIndex,
int x,
int y,
int w,
int h)
|
protected void |
paintContentBorderLeftEdge(Graphics g,
int tabPlacement,
int selectedIndex,
int x,
int y,
int w,
int h)
|
protected void |
paintContentBorderRightEdge(Graphics g,
int tabPlacement,
int selectedIndex,
int x,
int y,
int w,
int h)
|
protected void |
paintContentBorderTopEdge(Graphics g,
int tabPlacement,
int selectedIndex,
int x,
int y,
int w,
int h)
|
protected void |
paintDefaultTabBackground(Graphics g,
int tabPlacement,
int tabIndex,
int x,
int y,
int w,
int h,
boolean isSelected)
|
protected void |
paintExcelTabBackground(Graphics g,
int tabPlacement,
int tabIndex,
int x,
int y,
int w,
int h,
boolean isSelected)
|
protected void |
paintExcelTabBorder(Graphics g,
int tabPlacement,
int tabIndex,
int x,
int y,
int w,
int h,
boolean isSelected)
|
protected void |
paintFlatTabBackground(Graphics g,
int tabPlacement,
int tabIndex,
int x,
int y,
int w,
int h,
boolean isSelected)
|
protected void |
paintFlatTabBorder(Graphics g,
int tabPlacement,
int tabIndex,
int x,
int y,
int w,
int h,
boolean isSelected)
|
protected void |
paintFocusIndicator(Graphics g,
int tabPlacement,
Rectangle[] rects,
int tabIndex,
Rectangle iconRect,
Rectangle textRect,
boolean isSelected)
|
protected void |
paintIcon(Graphics g,
int tabPlacement,
int tabIndex,
Icon icon,
Rectangle iconRect,
boolean isSelected)
|
protected void |
paintOffice2003TabBackground(Graphics g,
int tabPlacement,
int tabIndex,
int x,
int y,
int w,
int h,
boolean isSelected)
|
protected void |
paintOffice2003TabBorder(Graphics g,
int tabPlacement,
int tabIndex,
int x,
int y,
int w,
int h,
boolean isSelected)
|
protected void |
paintRoundedFlatTabBorder(Graphics g,
int tabPlacement,
int tabIndex,
int x,
int y,
int w,
int h,
boolean isSelected)
|
protected void |
paintRoundedVsnetTabBorder(Graphics g,
int tabPlacement,
int tabIndex,
int x,
int y,
int w,
int h,
boolean isSelected)
|
protected void |
paintTab(Graphics g,
int tabPlacement,
Rectangle[] rects,
int tabIndex,
Rectangle iconRect,
Rectangle textRect)
|
protected void |
paintTabArea(Graphics g,
int tabPlacement,
int selectedIndex,
Component c)
Paints the tabs in the tab area. |
protected void |
paintTabAreaBackground(Graphics g,
Rectangle rect,
int tabPlacement)
|
protected void |
paintTabBackground(Graphics g,
int tabPlacement,
int tabIndex,
int x,
int y,
int w,
int h,
boolean isSelected)
|
protected void |
paintTabBackgroundMouseOver(Graphics g,
int tabPlacement,
int tabIndex,
int x,
int y,
int w,
int h,
boolean isSelected,
Color backgroundUnselectedColorStart,
Color backgroundUnselectedColorEnd)
|
protected 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. |
protected void |
paintTabBorderMouseOver(Graphics g,
int tabPlacement,
int tabIndex,
int x,
int y,
int w,
int h,
boolean isSelected)
|
protected void |
paintText(Graphics g,
int tabPlacement,
Font font,
FontMetrics metrics,
int tabIndex,
String title,
Rectangle textRect,
boolean isSelected)
|
protected void |
paintVsnetTabBackground(Graphics g,
int tabPlacement,
int tabIndex,
int x,
int y,
int w,
int h,
boolean isSelected)
|
protected void |
paintVsnetTabBorder(Graphics g,
int tabPlacement,
int tabIndex,
int x,
int y,
int w,
int h,
boolean isSelected)
|
protected void |
paintWindowsTabBorder(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(DocumentEvent e)
|
boolean |
requestFocusForVisibleComponent()
|
protected void |
resizeEditor(int tabIndex)
|
static void |
rotateInsets(Insets topInsets,
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(Component component)
|
protected boolean |
shouldPadTabRun(int tabPlacement,
int run)
|
protected boolean |
shouldRotateTabRuns(int tabPlacement)
|
protected boolean |
showFocusIndicator()
|
void |
startEditing(MouseEvent e)
|
protected void |
stopOrCancelEditing()
|
void |
stopTabEditing()
Stops the editing and commits the change. |
int |
tabForCoordinate(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(JComponent c)
|
protected void |
updateCloseAction()
|
protected void |
updateMnemonics()
Reloads the mnemonics. |
Methods inherited from class javax.swing.plaf.ComponentUI |
---|
contains, getAccessibleChild, getAccessibleChildrenCount, getBaseline, getBaselineResizeBehavior, update |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
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 Component _tabLeadingComponent
protected Component _tabTrailingComponent
protected JideTabbedPane _tabPane
protected Font _selectedTabFont
protected Color _tabBackground
protected Color _background
protected Color _highlight
protected Color _lightHighlight
protected Color _shadow
protected Color _darkShadow
protected Color _focus
protected Color _inactiveTabForeground
protected Color _inactiveSelectedTabForeground
protected Color _activeTabForeground
protected Color _tabListBackground
protected Color _selectedColor
protected Color _activeBackground
protected int _textIconGap
protected int _tabRunOverlay
protected boolean _showIconOnTab
protected boolean _showCloseButtonOnTab
protected int _closeButtonAlignment
protected Insets _tabInsets
protected Insets _selectedTabPadInsets
protected Insets _tabAreaInsets
protected boolean _ignoreContentBorderInsetsIfNoTabs
protected int[] _tabRuns
protected int _runCount
protected int _selectedRun
protected Rectangle[] _rects
protected int _additionalWidth
protected int _maxTabHeight
protected int _maxTabWidth
protected int _gripperWidth
protected int _gripperHeight
protected ChangeListener _tabChangeListener
protected FocusListener _tabFocusListener
protected PropertyChangeListener _propertyChangeListener
protected ChangeListener _tabModelChangeListener
protected MouseListener _mouseListener
protected MouseMotionListener _mousemotionListener
protected MouseWheelListener _mouseWheelListener
public BasicJideTabbedPaneUI.ScrollableTabSupport _tabScroller
protected transient Rectangle _calcRect
protected int _tabCount
protected JButton[] _closeButtons
public 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 Polygon tabRegion
protected Color _selectColor1
protected Color _selectColor2
protected Color _selectColor3
protected Color _unselectColor1
protected Color _unselectColor2
protected Color _unselectColor3
protected Color _officeTabBorderColor
protected Color _defaultTabBorderShadowColor
protected boolean _mouseEnter
protected int _indexMouseOver
protected boolean _alwaysShowLineBorder
protected boolean _showFocusIndicator
public static final String BUTTON_NAME_CLOSE
public static final String BUTTON_NAME_TAB_LIST
public static final String BUTTON_NAME_SCROLL_BACKWARD
public static final String BUTTON_NAME_SCROLL_FORWARD
protected BasicJideTabbedPaneUI.TabSpaceAllocator tryTabSpacer
protected Color _closeButtonSelectedColor
protected Color _closeButtonColor
protected Color _popupColor
protected BasicJideTabbedPaneUI.TabEditor _tabEditor
protected boolean _isEditing
protected int _editingTab
protected String _oldValue
protected String _oldPrefix
protected String _oldPostfix
protected 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
Constructor Detail |
---|
public BasicJideTabbedPaneUI()
Method Detail |
---|
public static ComponentUI createUI(JComponent c)
public void installUI(JComponent c)
installUI
in class ComponentUI
public void installColorTheme()
public void uninstallUI(JComponent c)
uninstallUI
in class ComponentUI
public void uninstallColorTheme()
protected 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 ChangeListener createChangeListener()
protected FocusListener createFocusListener()
protected PropertyChangeListener createPropertyChangeListener()
protected void installKeyboardActions()
protected void uninstallKeyboardActions()
protected void updateMnemonics()
public Dimension getPreferredSize(JComponent c)
getPreferredSize
in class ComponentUI
public Dimension getMinimumSize(JComponent c)
getMinimumSize
in class ComponentUI
public Dimension getMaximumSize(JComponent c)
getMaximumSize
in class ComponentUI
public void paint(Graphics g, JComponent c)
paint
in class ComponentUI
public void paintBackground(Graphics g, Component c)
protected void paintTabArea(Graphics g, int tabPlacement, int selectedIndex, 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(Graphics g, Rectangle rect, int tabPlacement)
protected void paintTab(Graphics g, int tabPlacement, Rectangle[] rects, int tabIndex, Rectangle iconRect, Rectangle textRect)
protected void layoutLabel(int tabPlacement, FontMetrics metrics, int tabIndex, String title, Icon icon, Rectangle tabRect, Rectangle iconRect, Rectangle textRect, boolean isSelected)
protected void paintIcon(Graphics g, int tabPlacement, int tabIndex, Icon icon, Rectangle iconRect, boolean isSelected)
protected void paintText(Graphics g, int tabPlacement, Font font, FontMetrics metrics, int tabIndex, String title, Rectangle textRect, boolean isSelected)
protected void paintTabBorder(Graphics g, int tabPlacement, int tabIndex, int x, int y, int w, int h, boolean isSelected)
g
- the Graphics instancetabPlacement
- the tab placementtabIndex
- the tab indexx
- xy
- yw
- widthh
- heightisSelected
- if the tab is selectedprotected void paintOffice2003TabBorder(Graphics g, int tabPlacement, int tabIndex, int x, int y, int w, int h, boolean isSelected)
protected void paintExcelTabBorder(Graphics g, int tabPlacement, int tabIndex, int x, int y, int w, int h, boolean isSelected)
protected void paintWindowsTabBorder(Graphics g, int tabPlacement, int tabIndex, int x, int y, int w, int h, boolean isSelected)
protected void paintTabBorderMouseOver(Graphics g, int tabPlacement, int tabIndex, int x, int y, int w, int h, boolean isSelected)
protected void paintVsnetTabBorder(Graphics g, int tabPlacement, int tabIndex, int x, int y, int w, int h, boolean isSelected)
protected void paintRoundedVsnetTabBorder(Graphics g, int tabPlacement, int tabIndex, int x, int y, int w, int h, boolean isSelected)
protected void paintFlatTabBorder(Graphics g, int tabPlacement, int tabIndex, int x, int y, int w, int h, boolean isSelected)
protected void paintRoundedFlatTabBorder(Graphics g, int tabPlacement, int tabIndex, int x, int y, int w, int h, boolean isSelected)
protected void paintBoxTabBorder(Graphics g, int tabPlacement, int tabIndex, int x, int y, int w, int h, boolean isSelected)
protected void paintTabBackground(Graphics g, int tabPlacement, int tabIndex, int x, int y, int w, int h, boolean isSelected)
protected void paintOffice2003TabBackground(Graphics g, int tabPlacement, int tabIndex, int x, int y, int w, int h, boolean isSelected)
protected void paintExcelTabBackground(Graphics g, int tabPlacement, int tabIndex, int x, int y, int w, int h, boolean isSelected)
protected void paintDefaultTabBackground(Graphics g, int tabPlacement, int tabIndex, int x, int y, int w, int h, boolean isSelected)
protected void paintTabBackgroundMouseOver(Graphics g, int tabPlacement, int tabIndex, int x, int y, int w, int h, boolean isSelected, Color backgroundUnselectedColorStart, Color backgroundUnselectedColorEnd)
protected void paintVsnetTabBackground(Graphics g, int tabPlacement, int tabIndex, int x, int y, int w, int h, boolean isSelected)
protected void paintFlatTabBackground(Graphics g, int tabPlacement, int tabIndex, int x, int y, int w, int h, boolean isSelected)
protected void paintButtonTabBackground(Graphics g, int tabPlacement, int tabIndex, int x, int y, int w, int h, boolean isSelected)
protected void paintContentBorder(Graphics g, int tabPlacement, int selectedIndex)
g
- the Graphics instancetabPlacement
- the tab placementselectedIndex
- the selected tab indexprotected void paintContentBorderLeftEdge(Graphics g, int tabPlacement, int selectedIndex, int x, int y, int w, int h)
protected void paintContentBorderRightEdge(Graphics g, int tabPlacement, int selectedIndex, int x, int y, int w, int h)
protected void paintContentBorder(Graphics g, int x, int y, int w, int h)
protected Color getBorderEdgeColor()
protected void paintContentBorderTopEdge(Graphics g, int tabPlacement, int selectedIndex, int x, int y, int w, int h)
protected void paintContentBorderBottomEdge(Graphics g, int tabPlacement, int selectedIndex, int x, int y, int w, int h)
protected void ensureCurrentLayout()
public Rectangle getTabBounds(JTabbedPane pane, int i)
getTabBounds
in class TabbedPaneUI
public int getTabRunCount(JTabbedPane pane)
getTabRunCount
in class TabbedPaneUI
public int tabForCoordinate(JTabbedPane pane, int x, int y)
tabForCoordinate
in class TabbedPaneUI
protected Rectangle getTabBounds(int tabIndex, Rectangle dest)
Rectangle
instance. The handling of invalid parameters is
unspecified.
tabIndex
- the index of the tabdest
- the rectangle where the result should be placed
public int getTabAtLocation(int x, int y)
x
- x value of the pointy
- y value of the point
public boolean isEmptyTabArea(int x, int y)
x
- x value of the pointy
- y value of the point
protected Component getVisibleComponent()
protected void setVisibleComponent(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 View getTextViewForTab(int tabIndex)
tabIndex
- the index of the tab
protected int calculateTabHeight(int tabPlacement, int tabIndex, FontMetrics metrics)
protected int calculateMaxTabHeight(int tabPlacement)
protected int calculateTabWidth(int tabPlacement, int tabIndex, 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 Insets getTabInsets(int tabPlacement, int tabIndex)
protected Insets getSelectedTabPadInsets(int tabPlacement)
protected Insets getTabAreaInsets(int tabPlacement)
protected Insets getContentBorderInsets(int tabPlacement)
protected 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(Insets topInsets, Insets targetInsets, int targetPlacement)
public boolean requestFocusForVisibleComponent()
@Deprecated protected BasicJideTabbedPaneUI.TabCloseButton createNoFocusButton(int type)
JideTabbedPane.createNoFocusButton(int)
type
- the button type
protected void stopOrCancelEditing()
protected void ensureCurrentRects(int leftMargin, int tabCount)
protected ListCellRenderer getTabListCellRenderer()
protected void updateCloseAction()
public 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 Rectangle getTabsTextBoundsAt(int tabIndex)
public void insertUpdate(DocumentEvent e)
insertUpdate
in interface DocumentListener
public void removeUpdate(DocumentEvent e)
removeUpdate
in interface DocumentListener
public void changedUpdate(DocumentEvent e)
changedUpdate
in interface DocumentListener
protected void resizeEditor(int tabIndex)
protected String getCurrentDisplayTitleAt(JideTabbedPane tp, int index)
public void startEditing(MouseEvent e)
public ThemePainter getPainter()
protected int getTabLabelShiftX(int tabPlacement, int tabIndex, boolean isSelected)
protected int getTabLabelShiftY(int tabPlacement, int tabIndex, boolean isSelected)
protected void paintFocusIndicator(Graphics g, int tabPlacement, Rectangle[] rects, int tabIndex, Rectangle iconRect, 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 MouseListener createMouseListener()
protected MouseWheelListener createMouseWheelListener()
protected MouseMotionListener createMouseMotionListener()
protected boolean isTabLeadingComponentVisible()
protected boolean isTabTrailingComponentVisible()
protected boolean isTabTopVisible(int tabPlacement)
protected boolean showFocusIndicator()
protected String getResourceString(String key)
key
- the resource key
|
JIDE 3.5.15 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |