public class WorkbookPaneUI extends MetalTabbedPaneUI
MetalTabbedPaneUI
that adds a number of
navigation buttons to the pane.Modifier and Type | Class and Description |
---|---|
protected class |
WorkbookPaneUI.NavigateAction
An action for navigating between the tabs in the pane.
|
protected class |
WorkbookPaneUI.SingleRowTabbedLayout
The layout used for the tabbed pane.
|
protected class |
WorkbookPaneUI.TabShifter |
MetalTabbedPaneUI.TabbedPaneLayout
BasicTabbedPaneUI.FocusHandler, BasicTabbedPaneUI.MouseHandler, BasicTabbedPaneUI.PropertyChangeHandler, BasicTabbedPaneUI.TabSelectionHandler
Modifier and Type | Field and Description |
---|---|
protected ActionListener[] |
buttonListeners |
minTabWidth, selectColor, selectHighlight, 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, upKey
BOTTOM, 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 |
---|
WorkbookPaneUI()
Creates a new WorkbookPane UI.
|
Modifier and Type | Method and Description |
---|---|
protected void |
assureRectsCreated(int tabCount) |
protected int |
calculateMaxTabHeight(int tabPlacement) |
protected int |
calculateTabWidth(int tabPlacement,
int tabIndex,
FontMetrics metrics) |
protected LayoutManager |
createLayoutManager() |
protected void |
ensureCurrentLayout() |
protected void |
ensureVisibleTabAt(int index) |
protected FontMetrics |
getFontMetrics() |
(package private) int |
getMaxTabHeight() |
(package private) Rectangle[] |
getRects() |
protected Insets |
getTabAreaInsets(int tabPlacement) |
(package private) WorkbookPane |
getTabbedPane() |
protected void |
installComponents() |
protected void |
installListeners() |
void |
installUI(JComponent c) |
protected int |
lastTabInRun(int tabCount,
int run) |
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 |
paintContentBorderTopEdge(Graphics g,
int tabPlacement,
int selectedIndex,
int x,
int y,
int w,
int h) |
protected void |
selectNextTab(int current) |
protected void |
selectPreviousTab(int current) |
protected void |
setButtonsEnabled() |
(package private) void |
setMaxTabHeight(int maxTabHeight) |
int |
tabForCoordinate(JTabbedPane pane,
int x,
int y) |
protected void |
uninstallComponents() |
protected void |
uninstallListeners() |
void |
uninstallUI(JComponent c) |
createUI, getBaselineOffset, getColorForGap, getTabLabelShiftX, getTabLabelShiftY, getTabRunOverlay, installDefaults, paintBottomTabBorder, paintContentBorderLeftEdge, paintContentBorderRightEdge, paintFocusIndicator, paintHighlightBelowTab, paintLeftTabBorder, paintRightTabBorder, paintTabBackground, paintTabBorder, paintTopTabBorder, shouldFillGap, shouldPadTabRun, shouldRotateTabRuns, update
calculateMaxTabWidth, calculateTabAreaHeight, calculateTabAreaWidth, calculateTabHeight, createChangeListener, createFocusListener, createMouseListener, createPropertyChangeListener, createScrollButton, expandTabRunsArray, getBaseline, getBaseline, getBaselineResizeBehavior, getContentBorderInsets, getFocusIndex, getIconForTab, getMaximumSize, getMinimumSize, getNextTabIndex, getNextTabIndexInRun, getNextTabRun, getPreviousTabIndex, getPreviousTabIndexInRun, getPreviousTabRun, getRolloverTab, getRunForTab, getSelectedTabPadInsets, getTabBounds, getTabBounds, getTabInsets, getTabRunCount, getTabRunIndent, getTabRunOffset, getTextViewForTab, getVisibleComponent, installKeyboardActions, layoutLabel, navigateSelectedTab, paintContentBorder, paintIcon, paintTab, paintTabArea, paintText, rotateInsets, selectAdjacentRunTab, selectNextTabInRun, selectPreviousTabInRun, setRolloverTab, setVisibleComponent, shouldRotateTabRuns, uninstallDefaults, uninstallKeyboardActions
contains, getAccessibleChild, getAccessibleChildrenCount, getPreferredSize
protected ActionListener[] buttonListeners
public WorkbookPaneUI()
public void installUI(JComponent c)
installUI
in class BasicTabbedPaneUI
public void uninstallUI(JComponent c)
uninstallUI
in class BasicTabbedPaneUI
protected LayoutManager createLayoutManager()
createLayoutManager
in class MetalTabbedPaneUI
protected void installComponents()
installComponents
in class BasicTabbedPaneUI
protected void uninstallComponents()
uninstallComponents
in class BasicTabbedPaneUI
protected void installListeners()
installListeners
in class BasicTabbedPaneUI
protected void uninstallListeners()
uninstallListeners
in class BasicTabbedPaneUI
public int tabForCoordinate(JTabbedPane pane, int x, int y)
tabForCoordinate
in class BasicTabbedPaneUI
public void paint(Graphics g, JComponent c)
paint
in class MetalTabbedPaneUI
protected void paintContentBorderTopEdge(Graphics g, int tabPlacement, int selectedIndex, int x, int y, int w, int h)
paintContentBorderTopEdge
in class MetalTabbedPaneUI
protected void paintContentBorderBottomEdge(Graphics g, int tabPlacement, int selectedIndex, int x, int y, int w, int h)
paintContentBorderBottomEdge
in class MetalTabbedPaneUI
protected Insets getTabAreaInsets(int tabPlacement)
getTabAreaInsets
in class BasicTabbedPaneUI
protected int lastTabInRun(int tabCount, int run)
lastTabInRun
in class BasicTabbedPaneUI
protected void ensureCurrentLayout()
protected void setButtonsEnabled()
protected void ensureVisibleTabAt(int index)
protected void selectNextTab(int current)
selectNextTab
in class BasicTabbedPaneUI
protected void selectPreviousTab(int current)
selectPreviousTab
in class BasicTabbedPaneUI
void setMaxTabHeight(int maxTabHeight)
int getMaxTabHeight()
WorkbookPane getTabbedPane()
protected FontMetrics getFontMetrics()
getFontMetrics
in class BasicTabbedPaneUI
protected int calculateMaxTabHeight(int tabPlacement)
calculateMaxTabHeight
in class MetalTabbedPaneUI
protected int calculateTabWidth(int tabPlacement, int tabIndex, FontMetrics metrics)
calculateTabWidth
in class BasicTabbedPaneUI
protected void assureRectsCreated(int tabCount)
assureRectsCreated
in class BasicTabbedPaneUI