class DraggableTabbedPane.CloseableTabbedPaneUI extends BasicTabbedPaneUI
BasicTabbedPaneUI.FocusHandler, BasicTabbedPaneUI.MouseHandler, BasicTabbedPaneUI.PropertyChangeHandler, BasicTabbedPaneUI.TabbedPaneLayout, BasicTabbedPaneUI.TabSelectionHandler
Modifier and Type | Field and Description |
---|---|
private Insets |
borderInsets |
private int |
horizontalTextPosition |
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 |
---|
CloseableTabbedPaneUI() |
CloseableTabbedPaneUI(int horizontalTextPosition) |
Modifier and Type | Method and Description |
---|---|
protected int |
calculateTabAreaHeight(int placement,
int count,
int height) |
protected Insets |
getContentBorderInsets(int tabPlacement) |
protected void |
layoutLabel(int tabPlacement,
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 isSelected) |
protected void |
paintTabBorder(Graphics g,
int placement,
int idx,
int x,
int y,
int w,
int h,
boolean isSel) |
assureRectsCreated, calculateMaxTabHeight, calculateMaxTabWidth, calculateTabAreaWidth, calculateTabHeight, calculateTabWidth, createChangeListener, createFocusListener, createLayoutManager, 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, getTabLabelShiftX, getTabLabelShiftY, getTabRunCount, getTabRunIndent, getTabRunOffset, getTabRunOverlay, getTextViewForTab, getVisibleComponent, installComponents, installDefaults, installKeyboardActions, installListeners, installUI, lastTabInRun, navigateSelectedTab, paint, paintContentBorderBottomEdge, paintContentBorderLeftEdge, paintContentBorderRightEdge, paintContentBorderTopEdge, paintFocusIndicator, paintIcon, paintTab, paintTabArea, paintText, rotateInsets, selectAdjacentRunTab, selectNextTab, selectNextTabInRun, selectPreviousTab, selectPreviousTabInRun, setRolloverTab, setVisibleComponent, shouldPadTabRun, shouldRotateTabRuns, tabForCoordinate, uninstallComponents, uninstallDefaults, uninstallKeyboardActions, uninstallListeners, uninstallUI
contains, getAccessibleChild, getAccessibleChildrenCount, getPreferredSize, update
private final Insets borderInsets
private int horizontalTextPosition
public CloseableTabbedPaneUI()
public CloseableTabbedPaneUI(int horizontalTextPosition)
protected void paintContentBorder(Graphics g, int tabPlacement, int selectedIndex)
paintContentBorder
in class BasicTabbedPaneUI
protected Insets getContentBorderInsets(int tabPlacement)
getContentBorderInsets
in class BasicTabbedPaneUI
protected void layoutLabel(int tabPlacement, FontMetrics metrics, int tabIndex, String title, Icon icon, Rectangle tabRect, Rectangle iconRect, Rectangle textRect, boolean isSelected)
layoutLabel
in class BasicTabbedPaneUI
protected int calculateTabAreaHeight(int placement, int count, int height)
calculateTabAreaHeight
in class BasicTabbedPaneUI
protected void paintTabBorder(Graphics g, int placement, int idx, int x, int y, int w, int h, boolean isSel)
paintTabBorder
in class BasicTabbedPaneUI
protected void paintTabBackground(Graphics g, int placement, int idx, int x, int y, int w, int h, boolean isSelected)
paintTabBackground
in class BasicTabbedPaneUI