Package com.explodingpixels.widgets.plaf
Class EPTabbedPaneUI
java.lang.Object
javax.swing.plaf.ComponentUI
javax.swing.plaf.TabbedPaneUI
javax.swing.plaf.basic.BasicTabbedPaneUI
com.explodingpixels.widgets.plaf.EPTabbedPaneUI
- All Implemented Interfaces:
SwingConstants
-
Nested Class Summary
Nested classes/interfaces inherited from class javax.swing.plaf.basic.BasicTabbedPaneUI
BasicTabbedPaneUI.FocusHandler, BasicTabbedPaneUI.MouseHandler, BasicTabbedPaneUI.PropertyChangeHandler, BasicTabbedPaneUI.TabbedPaneLayout, BasicTabbedPaneUI.TabSelectionHandler
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
static final Object
static final Object
static final String
Fields inherited from class javax.swing.plaf.basic.BasicTabbedPaneUI
calcRect, 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
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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected LayoutManager
protected Insets
getContentBorderInsets
(int tabPlacement) protected int
getTabLabelShiftX
(int tabPlacement, int tabIndex, boolean isSelected) protected int
getTabLabelShiftY
(int tabPlacement, int tabIndex, boolean isSelected) protected void
protected void
void
paint
(Graphics g, JComponent c) 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 width, int height) protected void
paintTab
(Graphics g, int tabPlacement, Rectangle[] rects, int tabIndex, Rectangle iconRect, Rectangle textRect) void
setCloseButtonLocation
(EPTabPainter.CloseButtonLocation closeButtonLocation) void
setPaintsFullContentBorder
(boolean paintsFullContentBorder) Methods inherited from class javax.swing.plaf.basic.BasicTabbedPaneUI
assureRectsCreated, calculateMaxTabHeight, calculateMaxTabWidth, calculateTabAreaHeight, calculateTabAreaWidth, calculateTabHeight, calculateTabWidth, createChangeListener, createFocusListener, createMouseListener, createPropertyChangeListener, createScrollButton, createUI, expandTabRunsArray, getBaseline, getBaseline, getBaselineOffset, getBaselineResizeBehavior, getFocusIndex, getFontMetrics, getIconForTab, getMaximumSize, getMinimumSize, getNextTabIndex, getNextTabIndexInRun, getNextTabRun, getPreviousTabIndex, getPreviousTabIndexInRun, getPreviousTabRun, getRolloverTab, getRunForTab, getSelectedTabPadInsets, getTabAreaInsets, getTabBounds, getTabBounds, getTabInsets, getTabRunCount, getTabRunIndent, getTabRunOffset, getTabRunOverlay, getTextViewForTab, getVisibleComponent, installComponents, installKeyboardActions, installUI, lastTabInRun, layoutLabel, navigateSelectedTab, paintContentBorder, paintFocusIndicator, paintIcon, paintTabArea, paintTabBackground, paintTabBorder, paintText, rotateInsets, selectAdjacentRunTab, selectNextTab, selectNextTabInRun, selectPreviousTab, selectPreviousTabInRun, setRolloverTab, setVisibleComponent, shouldPadTabRun, shouldRotateTabRuns, tabForCoordinate, uninstallComponents, uninstallDefaults, uninstallKeyboardActions, uninstallListeners, uninstallUI
Methods inherited from class javax.swing.plaf.ComponentUI
contains, getAccessibleChild, getAccessibleChildrenCount, getPreferredSize, update
-
Field Details
-
TAB_CLOSE_LISTENER_KEY
- See Also:
-
CLOSE_BUTTON_LOCATION_KEY
- See Also:
-
CLOSE_BUTTON_LOCATION_VALUE_LEFT
-
CLOSE_BUTTON_LOCATION_VALUE_RIGHT
-
-
Constructor Details
-
EPTabbedPaneUI
public EPTabbedPaneUI()
-
-
Method Details
-
installDefaults
protected void installDefaults()- Overrides:
installDefaults
in classBasicTabbedPaneUI
-
installListeners
protected void installListeners()- Overrides:
installListeners
in classBasicTabbedPaneUI
-
createLayoutManager
- Overrides:
createLayoutManager
in classBasicTabbedPaneUI
-
getContentBorderInsets
- Overrides:
getContentBorderInsets
in classBasicTabbedPaneUI
-
paint
- Overrides:
paint
in classBasicTabbedPaneUI
-
paintTab
protected void paintTab(Graphics g, int tabPlacement, Rectangle[] rects, int tabIndex, Rectangle iconRect, Rectangle textRect) - Overrides:
paintTab
in classBasicTabbedPaneUI
-
paintContentBorderTopEdge
protected void paintContentBorderTopEdge(Graphics g, int tabPlacement, int selectedIndex, int x, int y, int width, int height) - Overrides:
paintContentBorderTopEdge
in classBasicTabbedPaneUI
-
paintContentBorderLeftEdge
protected void paintContentBorderLeftEdge(Graphics g, int tabPlacement, int selectedIndex, int x, int y, int w, int h) - Overrides:
paintContentBorderLeftEdge
in classBasicTabbedPaneUI
-
paintContentBorderRightEdge
protected void paintContentBorderRightEdge(Graphics g, int tabPlacement, int selectedIndex, int x, int y, int w, int h) - Overrides:
paintContentBorderRightEdge
in classBasicTabbedPaneUI
-
paintContentBorderBottomEdge
protected void paintContentBorderBottomEdge(Graphics g, int tabPlacement, int selectedIndex, int x, int y, int w, int h) - Overrides:
paintContentBorderBottomEdge
in classBasicTabbedPaneUI
-
getTabLabelShiftX
protected int getTabLabelShiftX(int tabPlacement, int tabIndex, boolean isSelected) - Overrides:
getTabLabelShiftX
in classBasicTabbedPaneUI
-
getTabLabelShiftY
protected int getTabLabelShiftY(int tabPlacement, int tabIndex, boolean isSelected) - Overrides:
getTabLabelShiftY
in classBasicTabbedPaneUI
-
setPaintsFullContentBorder
public void setPaintsFullContentBorder(boolean paintsFullContentBorder) -
setCloseButtonLocation
-