public class CustomTabbedPaneUI extends BasicTabbedPaneUI
MetalTabbedPaneUI without the slants| Modifier and Type | Class and Description |
|---|---|
class |
CustomTabbedPaneUI.TabbedPaneLayout
This class should be treated as a "protected" inner class.
|
BasicTabbedPaneUI.FocusHandler, BasicTabbedPaneUI.MouseHandler, BasicTabbedPaneUI.PropertyChangeHandler, BasicTabbedPaneUI.TabSelectionHandler| Modifier and Type | Field and Description |
|---|---|
protected int |
minTabWidth |
protected Color |
selectColor |
protected Color |
selectHighlight |
protected Color |
tabAreaBackground |
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, upKeyBOTTOM, CENTER, EAST, HORIZONTAL, LEADING, LEFT, NEXT, NORTH, NORTH_EAST, NORTH_WEST, PREVIOUS, RIGHT, SOUTH, SOUTH_EAST, SOUTH_WEST, TOP, TRAILING, VERTICAL, WEST| Constructor and Description |
|---|
CustomTabbedPaneUI() |
| Modifier and Type | Method and Description |
|---|---|
protected int |
calculateMaxTabHeight(int tabPlacement) |
protected LayoutManager |
createLayoutManager() |
static ComponentUI |
createUI(JComponent x) |
protected int |
getBaselineOffset() |
protected Color |
getColorForGap(int currentRun,
int x,
int y) |
protected int |
getTabLabelShiftX(int tabPlacement,
int tabIndex,
boolean isSelected)
Overridden to do nothing for the Java L&F.
|
protected int |
getTabLabelShiftY(int tabPlacement,
int tabIndex,
boolean isSelected)
Overridden to do nothing for the Java L&F.
|
protected int |
getTabRunOverlay(int tabPlacement) |
protected void |
installDefaults() |
void |
paint(Graphics g,
JComponent c) |
protected void |
paintBottomTabBorder(int tabIndex,
Graphics g,
int x,
int y,
int w,
int h,
int btm,
int rght,
boolean isSelected) |
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 |
paintHighlightBelowTab() |
protected void |
paintLeftTabBorder(int tabIndex,
Graphics g,
int x,
int y,
int w,
int h,
int btm,
int rght,
boolean isSelected) |
protected void |
paintRightTabBorder(int tabIndex,
Graphics g,
int x,
int y,
int w,
int h,
int btm,
int rght,
boolean isSelected) |
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) |
protected void |
paintTopTabBorder(int tabIndex,
Graphics g,
int x,
int y,
int w,
int h,
int btm,
int rght,
boolean isSelected) |
protected boolean |
shouldFillGap(int currentRun,
int tabIndex,
int x,
int y) |
protected boolean |
shouldPadTabRun(int tabPlacement,
int run) |
protected boolean |
shouldRotateTabRuns(int tabPlacement,
int selectedRun) |
void |
update(Graphics g,
JComponent c) |
assureRectsCreated, calculateMaxTabWidth, calculateTabAreaHeight, calculateTabAreaWidth, calculateTabHeight, calculateTabWidth, createChangeListener, createFocusListener, createMouseListener, createPropertyChangeListener, createScrollButton, expandTabRunsArray, getBaseline, getBaseline, getBaselineResizeBehavior, getContentBorderInsets, getFocusIndex, getFontMetrics, getIconForTab, getMaximumSize, getMinimumSize, getNextTabIndex, getNextTabIndexInRun, getNextTabRun, getPreviousTabIndex, getPreviousTabIndexInRun, getPreviousTabRun, getRolloverTab, getRunForTab, getSelectedTabPadInsets, getTabAreaInsets, getTabBounds, getTabBounds, getTabInsets, getTabRunCount, getTabRunIndent, getTabRunOffset, getTextViewForTab, getVisibleComponent, installComponents, installKeyboardActions, installListeners, installUI, lastTabInRun, layoutLabel, navigateSelectedTab, paintContentBorder, paintIcon, paintTab, paintTabArea, paintText, rotateInsets, selectAdjacentRunTab, selectNextTab, selectNextTabInRun, selectPreviousTab, selectPreviousTabInRun, setRolloverTab, setVisibleComponent, shouldRotateTabRuns, tabForCoordinate, uninstallComponents, uninstallDefaults, uninstallKeyboardActions, uninstallListeners, uninstallUIcontains, getAccessibleChild, getAccessibleChildrenCount, getPreferredSizeprotected int minTabWidth
protected Color tabAreaBackground
protected Color selectColor
protected Color selectHighlight
public static ComponentUI createUI(JComponent x)
protected LayoutManager createLayoutManager()
createLayoutManager in class BasicTabbedPaneUIprotected void installDefaults()
installDefaults in class BasicTabbedPaneUIprotected void paintTabBorder(Graphics g, int tabPlacement, int tabIndex, int x, int y, int w, int h, boolean isSelected)
paintTabBorder in class BasicTabbedPaneUIprotected void paintTopTabBorder(int tabIndex,
Graphics g,
int x,
int y,
int w,
int h,
int btm,
int rght,
boolean isSelected)
protected boolean shouldFillGap(int currentRun,
int tabIndex,
int x,
int y)
protected Color getColorForGap(int currentRun, int x, int y)
protected void paintLeftTabBorder(int tabIndex,
Graphics g,
int x,
int y,
int w,
int h,
int btm,
int rght,
boolean isSelected)
protected void paintBottomTabBorder(int tabIndex,
Graphics g,
int x,
int y,
int w,
int h,
int btm,
int rght,
boolean isSelected)
protected void paintRightTabBorder(int tabIndex,
Graphics g,
int x,
int y,
int w,
int h,
int btm,
int rght,
boolean isSelected)
public void update(Graphics g, JComponent c)
update in class ComponentUIprotected void paintTabBackground(Graphics g, int tabPlacement, int tabIndex, int x, int y, int w, int h, boolean isSelected)
paintTabBackground in class BasicTabbedPaneUIprotected int getTabLabelShiftX(int tabPlacement,
int tabIndex,
boolean isSelected)
getTabLabelShiftX in class BasicTabbedPaneUIprotected int getTabLabelShiftY(int tabPlacement,
int tabIndex,
boolean isSelected)
getTabLabelShiftY in class BasicTabbedPaneUIprotected int getBaselineOffset()
getBaselineOffset in class BasicTabbedPaneUIpublic void paint(Graphics g, JComponent c)
paint in class BasicTabbedPaneUIprotected void paintHighlightBelowTab()
protected void paintFocusIndicator(Graphics g, int tabPlacement, Rectangle[] rects, int tabIndex, Rectangle iconRect, Rectangle textRect, boolean isSelected)
paintFocusIndicator in class BasicTabbedPaneUIprotected void paintContentBorderTopEdge(Graphics g, int tabPlacement, int selectedIndex, int x, int y, int w, int h)
paintContentBorderTopEdge in class BasicTabbedPaneUIprotected void paintContentBorderBottomEdge(Graphics g, int tabPlacement, int selectedIndex, int x, int y, int w, int h)
paintContentBorderBottomEdge in class BasicTabbedPaneUIprotected void paintContentBorderLeftEdge(Graphics g, int tabPlacement, int selectedIndex, int x, int y, int w, int h)
paintContentBorderLeftEdge in class BasicTabbedPaneUIprotected void paintContentBorderRightEdge(Graphics g, int tabPlacement, int selectedIndex, int x, int y, int w, int h)
paintContentBorderRightEdge in class BasicTabbedPaneUIprotected int calculateMaxTabHeight(int tabPlacement)
calculateMaxTabHeight in class BasicTabbedPaneUIprotected int getTabRunOverlay(int tabPlacement)
getTabRunOverlay in class BasicTabbedPaneUIprotected boolean shouldRotateTabRuns(int tabPlacement,
int selectedRun)
protected boolean shouldPadTabRun(int tabPlacement,
int run)
shouldPadTabRun in class BasicTabbedPaneUICopyright © 2020–2023 Leibniz Institute for Natural Product Research and Infection Biology - Hans Knöll Institute (HKI). All rights reserved.