com.jidesoft.plaf.eclipse
Class Eclipse3xJideTabbedPaneUI
java.lang.Object
javax.swing.plaf.ComponentUI
javax.swing.plaf.TabbedPaneUI
com.jidesoft.plaf.JideTabbedPaneUI
com.jidesoft.plaf.basic.BasicJideTabbedPaneUI
com.jidesoft.plaf.vsnet.VsnetJideTabbedPaneUI
com.jidesoft.plaf.eclipse.Eclipse3xJideTabbedPaneUI
- All Implemented Interfaces:
- EventListener, DocumentListener, SwingConstants
public class Eclipse3xJideTabbedPaneUI
- extends VsnetJideTabbedPaneUI
A eclipse L&f implementation of JideTabbedPaneUI
Nested classes/interfaces inherited from class com.jidesoft.plaf.basic.BasicJideTabbedPaneUI |
BasicJideTabbedPaneUI.ActivateTabAction, BasicJideTabbedPaneUI.DefaultMouseHandler, BasicJideTabbedPaneUI.DefaultMouseMotionHandler, BasicJideTabbedPaneUI.MouseHandler, BasicJideTabbedPaneUI.MouseMotionHandler, BasicJideTabbedPaneUI.MouseWheelHandler, BasicJideTabbedPaneUI.PropertyChangeHandler, BasicJideTabbedPaneUI.RolloverMouseHandler, BasicJideTabbedPaneUI.RolloverMouseMotionHandler, BasicJideTabbedPaneUI.ScrollableTabPanel, BasicJideTabbedPaneUI.ScrollableTabSupport, BasicJideTabbedPaneUI.ScrollableTabViewport, BasicJideTabbedPaneUI.TabbedPaneLayout, BasicJideTabbedPaneUI.TabbedPaneScrollLayout, BasicJideTabbedPaneUI.TabCloseButton, BasicJideTabbedPaneUI.TabEditor, BasicJideTabbedPaneUI.TabFocusListener, BasicJideTabbedPaneUI.TabSelectionHandler, BasicJideTabbedPaneUI.TabSpaceAllocator |
Fields inherited from class com.jidesoft.plaf.basic.BasicJideTabbedPaneUI |
_activeBackground, _activeTabForeground, _additionalWidth, _alwaysShowLineBorder, _background, _buttonMargin, _buttonSize, _calcRect, _closeButtonAlignment, _closeButtonColor, _closeButtonLeftMargin, _closeButtonMarginHorizon, _closeButtonMarginVertical, _closeButtonRightMargin, _closeButtons, _closeButtonSelectedColor, _compressedStyleCloseButtonMarginHorizon, _compressedStyleCloseButtonMarginVertical, _compressedStyleIconMargin, _compressedStyleNoIconRectSize, _darkShadow, _defaultTabBorderShadowColor, _dt, _editingTab, _fitStyleBoundSize, _fitStyleFirstTabMargin, _fitStyleIconMinWidth, _fitStyleTextMinWidth, _fixedStyleRectSize, _focus, _gripLeftMargin, _gripperHeight, _gripperWidth, _highlight, _iconMargin, _ignoreContentBorderInsetsIfNoTabs, _inactiveSelectedTabForeground, _inactiveTabForeground, _indexMouseOver, _isEditing, _lightHighlight, _maxTabHeight, _maxTabWidth, _mouseEnter, _mouseListener, _mousemotionListener, _mouseWheelListener, _noIconMargin, _officeTabBorderColor, _oldPostfix, _oldPrefix, _oldValue, _originalFocusComponent, _popupColor, _propertyChangeListener, _rects, _rectSizeExtend, _runCount, _selectColor1, _selectColor2, _selectColor3, _selectedColor, _selectedRun, _selectedTabFont, _selectedTabPadInsets, _shadow, _showCloseButtonOnTab, _showFocusIndicator, _showIconOnTab, _tabAreaInsets, _tabBackground, _tabChangeListener, _tabCount, _tabEditor, _tabFocusListener, _tabInsets, _tabLeadingComponent, _tabListBackground, _tabModelChangeListener, _tabPane, _tabRectPadding, _tabRunOverlay, _tabRuns, _tabScroller, _tabTrailingComponent, _textIconGap, _textMarginVertical, _textPadding, _unselectColor1, _unselectColor2, _unselectColor3, BUTTON_NAME_CLOSE, BUTTON_NAME_SCROLL_BACKWARD, BUTTON_NAME_SCROLL_FORWARD, BUTTON_NAME_TAB_LIST, DEFAULT_LEFT_MARGIN, EXCEL_LEFT_MARGIN, OFFICE2003_LEFT_MARGIN, PAINT_CONTENT_BORDER, PAINT_CONTENT_BORDER_EDGE, PAINT_TAB, PAINT_TAB_BACKGROUND, PAINT_TAB_BORDER, PAINT_TABAREA, tabRegion, tryTabSpacer |
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 |
Method Summary |
protected BasicJideTabbedPaneUI.TabCloseButton |
createNoFocusButton(int type)
Creates a button. |
static ComponentUI |
createUI(JComponent c)
|
protected void |
ensureCurrentLayout()
|
protected Rectangle |
getTabsTextBoundsAt(int tabIndex)
|
protected void |
installDefaults()
|
void |
installUI(JComponent c)
|
protected void |
layoutLabel(int tabPlacement,
FontMetrics metrics,
int tabIndex,
String title,
Icon icon,
Rectangle tabRect,
Rectangle iconRect,
Rectangle textRect,
boolean isSelected)
|
void |
paintBackground(Graphics g,
Component c)
|
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 |
paintFocusIndicator(Graphics g,
int tabPlacement,
Rectangle[] rects,
int tabIndex,
Rectangle iconRect,
Rectangle textRect,
boolean isSelected)
|
protected void |
paintTabArea(Graphics g,
int tabPlacement,
int selectedIndex,
Component c)
Paints the tabs in the tab area. |
protected void |
paintTabBackground(Graphics g,
int tabPlacement,
int tabIndex,
int x,
int y,
int w,
int h,
boolean isSelected)
|
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. |
Methods inherited from class com.jidesoft.plaf.basic.BasicJideTabbedPaneUI |
assureRectsCreated, calculateMaxTabHeight, calculateMaxTabWidth, calculateTabAreaHeight, calculateTabAreaWidth, calculateTabHeight, calculateTabWidth, cancelTabEditing, changedUpdate, createChangeListener, createDefaultTabEditor, createDropListener, createFocusListener, createLayoutManager, createMouseListener, createMouseMotionListener, createMouseWheelListener, createPropertyChangeListener, editTabAt, ensureActiveTabIsVisible, ensureCloseButtonCreated, ensureCurrentRects, expandTabRunsArray, getBorderEdgeColor, getColorTheme, getContentBorderInsets, getCurrentDisplayTitleAt, getEditingTabIndex, getFontMetrics, getLayoutSize, getLeftMargin, getMaximumSize, getMinimumSize, getNextTabIndex, getNextTabIndexInRun, getNextTabRun, getPainter, getPreferredSize, getPreviousTabIndex, getPreviousTabIndexInRun, getPreviousTabRun, getResourceString, getRunForTab, getSelectedTabPadInsets, getTabAreaInsets, getTabAtLocation, getTabBounds, getTabBounds, getTabGap, getTabInsets, getTabLabelShiftX, getTabLabelShiftY, getTabListCellRenderer, getTabPanel, getTabResizeMode, getTabRightPadding, getTabRunCount, getTabRunIndent, getTabRunOffset, getTabRunOverlay, getTabShape, getTextViewForTab, getVisibleComponent, insertUpdate, installComponents, installKeyboardActions, installListeners, isEmptyTabArea, isRoundedCorner, isShowCloseButton, isShowCloseButtonOnTab, isShowTabButtons, isShrinkTabs, isTabEditing, isTabLeadingComponentVisible, isTabTopVisible, isTabTrailingComponentVisible, lastTabInRun, navigateSelectedTab, paint, paintBoxTabBorder, paintButtonTabBackground, paintDefaultTabBackground, paintExcelTabBackground, paintExcelTabBorder, paintFlatTabBackground, paintFlatTabBorder, paintIcon, paintOffice2003TabBackground, paintOffice2003TabBorder, paintRoundedFlatTabBorder, paintRoundedVsnetTabBorder, paintTab, paintTabAreaBackground, paintTabBackgroundMouseOver, paintTabBorderMouseOver, paintText, paintVsnetTabBackground, paintVsnetTabBorder, paintWindowsTabBorder, prepareEditor, removeUpdate, requestFocusForVisibleComponent, resizeEditor, rotateInsets, scrollableTabLayoutEnabled, selectAdjacentRunTab, selectNextTab, selectNextTabInRun, selectPreviousTab, selectPreviousTabInRun, setVisibleComponent, shouldPadTabRun, shouldRotateTabRuns, showFocusIndicator, startEditing, stopOrCancelEditing, stopTabEditing, tabForCoordinate, uninstallComponents, uninstallDefaults, uninstallKeyboardActions, uninstallListeners, uninstallUI, updateCloseAction, updateMnemonics |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
_closeButtonMargin
protected int _closeButtonMargin
_closeButtonMarginSize
protected int _closeButtonMarginSize
_iconMarginHorizon
protected int _iconMarginHorizon
_iconMarginVertical
protected int _iconMarginVertical
Eclipse3xJideTabbedPaneUI
public Eclipse3xJideTabbedPaneUI()
createUI
public static ComponentUI createUI(JComponent c)
installUI
public void installUI(JComponent c)
- Overrides:
installUI
in class BasicJideTabbedPaneUI
installDefaults
protected void installDefaults()
- Overrides:
installDefaults
in class BasicJideTabbedPaneUI
paintBackground
public void paintBackground(Graphics g,
Component c)
- Overrides:
paintBackground
in class BasicJideTabbedPaneUI
ensureCurrentLayout
protected void ensureCurrentLayout()
- Overrides:
ensureCurrentLayout
in class BasicJideTabbedPaneUI
paintTabArea
protected void paintTabArea(Graphics g,
int tabPlacement,
int selectedIndex,
Component c)
- Paints the tabs in the tab area. Invoked by paint(). The graphics parameter must be a valid
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.
- Overrides:
paintTabArea
in class BasicJideTabbedPaneUI
- Parameters:
g
- the graphics object to use for renderingtabPlacement
- the placement for the tabs within the JTabbedPaneselectedIndex
- the tab index of the selected componentc
- the component
layoutLabel
protected void layoutLabel(int tabPlacement,
FontMetrics metrics,
int tabIndex,
String title,
Icon icon,
Rectangle tabRect,
Rectangle iconRect,
Rectangle textRect,
boolean isSelected)
- Overrides:
layoutLabel
in class BasicJideTabbedPaneUI
paintTabBorder
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.
that is done elsewhere
- Overrides:
paintTabBorder
in class BasicJideTabbedPaneUI
- Parameters:
g
- the Graphics instancetabPlacement
- the tab placementtabIndex
- the tab indexx
- xy
- yw
- widthh
- heightisSelected
- if the tab is selected
paintTabBackground
protected void paintTabBackground(Graphics g,
int tabPlacement,
int tabIndex,
int x,
int y,
int w,
int h,
boolean isSelected)
- Overrides:
paintTabBackground
in class VsnetJideTabbedPaneUI
paintContentBorder
protected void paintContentBorder(Graphics g,
int tabPlacement,
int selectedIndex)
- Description copied from class:
BasicJideTabbedPaneUI
- Paints the border of the conten pane which should reflect the tabs as well.
- Overrides:
paintContentBorder
in class BasicJideTabbedPaneUI
- Parameters:
g
- the Graphics instancetabPlacement
- the tab placementselectedIndex
- the selected tab index
paintContentBorder
protected void paintContentBorder(Graphics g,
int x,
int y,
int w,
int h)
- Overrides:
paintContentBorder
in class VsnetJideTabbedPaneUI
paintContentBorderTopEdge
protected void paintContentBorderTopEdge(Graphics g,
int tabPlacement,
int selectedIndex,
int x,
int y,
int w,
int h)
- Overrides:
paintContentBorderTopEdge
in class VsnetJideTabbedPaneUI
paintContentBorderBottomEdge
protected void paintContentBorderBottomEdge(Graphics g,
int tabPlacement,
int selectedIndex,
int x,
int y,
int w,
int h)
- Overrides:
paintContentBorderBottomEdge
in class VsnetJideTabbedPaneUI
paintContentBorderLeftEdge
protected void paintContentBorderLeftEdge(Graphics g,
int tabPlacement,
int selectedIndex,
int x,
int y,
int w,
int h)
- Overrides:
paintContentBorderLeftEdge
in class VsnetJideTabbedPaneUI
paintContentBorderRightEdge
protected void paintContentBorderRightEdge(Graphics g,
int tabPlacement,
int selectedIndex,
int x,
int y,
int w,
int h)
- Overrides:
paintContentBorderRightEdge
in class VsnetJideTabbedPaneUI
getTabsTextBoundsAt
protected Rectangle getTabsTextBoundsAt(int tabIndex)
- Overrides:
getTabsTextBoundsAt
in class BasicJideTabbedPaneUI
paintFocusIndicator
protected void paintFocusIndicator(Graphics g,
int tabPlacement,
Rectangle[] rects,
int tabIndex,
Rectangle iconRect,
Rectangle textRect,
boolean isSelected)
- Overrides:
paintFocusIndicator
in class BasicJideTabbedPaneUI
createNoFocusButton
protected BasicJideTabbedPaneUI.TabCloseButton createNoFocusButton(int type)
- Description copied from class:
BasicJideTabbedPaneUI
- Creates a button.
- Overrides:
createNoFocusButton
in class BasicJideTabbedPaneUI
- Parameters:
type
- the button type
- Returns:
- the button