class DraggableTabbedPane.CloseableMetalTabbedPaneUI extends MetalTabbedPaneUI
MetalTabbedPaneUI.TabbedPaneLayoutBasicTabbedPaneUI.FocusHandler, BasicTabbedPaneUI.MouseHandler, BasicTabbedPaneUI.PropertyChangeHandler, BasicTabbedPaneUI.TabSelectionHandler| Modifier and Type | Field and Description |
|---|---|
private Insets |
borderInsets |
private int |
horizontalTextPosition |
minTabWidth, selectColor, selectHighlight, tabAreaBackgroundcalcRect, 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 |
|---|
CloseableMetalTabbedPaneUI() |
CloseableMetalTabbedPaneUI(int newHorizontalTextPosition) |
| Modifier and Type | Method and Description |
|---|---|
protected int |
calculateTabAreaHeight(int placement,
int count,
int height) |
protected Insets |
getContentBorderInsets(int tabPlacement) |
protected void |
layoutLabel(int placement,
FontMetrics metrics,
int tabIndex,
String title,
Icon icon,
Rectangle tabRect,
Rectangle iconRect,
Rectangle textRect,
boolean isSelected) |
protected void |
paintContentBorder(Graphics g,
int tabPlacement,
int selectedIndex) |
protected void |
paintTabBackground(Graphics g,
int placement,
int idx,
int x,
int y,
int w,
int h,
boolean isSel) |
protected void |
paintTabBorder(Graphics g,
int placement,
int idx,
int x,
int y,
int w,
int h,
boolean isSel) |
calculateMaxTabHeight, createLayoutManager, createUI, getBaselineOffset, getColorForGap, getTabLabelShiftX, getTabLabelShiftY, getTabRunOverlay, installDefaults, paint, paintBottomTabBorder, paintContentBorderBottomEdge, paintContentBorderLeftEdge, paintContentBorderRightEdge, paintContentBorderTopEdge, paintFocusIndicator, paintHighlightBelowTab, paintLeftTabBorder, paintRightTabBorder, paintTopTabBorder, shouldFillGap, shouldPadTabRun, shouldRotateTabRuns, updateassureRectsCreated, calculateMaxTabWidth, calculateTabAreaWidth, calculateTabHeight, calculateTabWidth, createChangeListener, createFocusListener, createMouseListener, createPropertyChangeListener, createScrollButton, expandTabRunsArray, getBaseline, getBaseline, getBaselineResizeBehavior, 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, navigateSelectedTab, paintIcon, paintTab, paintTabArea, paintText, rotateInsets, selectAdjacentRunTab, selectNextTab, selectNextTabInRun, selectPreviousTab, selectPreviousTabInRun, setRolloverTab, setVisibleComponent, shouldRotateTabRuns, tabForCoordinate, uninstallComponents, uninstallDefaults, uninstallKeyboardActions, uninstallListeners, uninstallUIcontains, getAccessibleChild, getAccessibleChildrenCount, getPreferredSizeprivate final Insets borderInsets
private int horizontalTextPosition
public CloseableMetalTabbedPaneUI()
public CloseableMetalTabbedPaneUI(int newHorizontalTextPosition)
protected void paintContentBorder(Graphics g, int tabPlacement, int selectedIndex)
paintContentBorder in class BasicTabbedPaneUIprotected Insets getContentBorderInsets(int tabPlacement)
getContentBorderInsets in class BasicTabbedPaneUIprotected void paintTabBorder(Graphics g, int placement, int idx, int x, int y, int w, int h, boolean isSel)
paintTabBorder in class MetalTabbedPaneUIprotected void paintTabBackground(Graphics g, int placement, int idx, int x, int y, int w, int h, boolean isSel)
paintTabBackground in class MetalTabbedPaneUIprotected int calculateTabAreaHeight(int placement, int count, int height)
calculateTabAreaHeight in class BasicTabbedPaneUIprotected void layoutLabel(int placement, FontMetrics metrics, int tabIndex, String title, Icon icon, Rectangle tabRect, Rectangle iconRect, Rectangle textRect, boolean isSelected)
layoutLabel in class BasicTabbedPaneUI