com.neatech.climbplan.userinterface.components
Class CloseableTabbedPane.CloseableMetalTabbedPaneUI
java.lang.Object
javax.swing.plaf.ComponentUI
javax.swing.plaf.TabbedPaneUI
javax.swing.plaf.basic.BasicTabbedPaneUI
javax.swing.plaf.metal.MetalTabbedPaneUI
com.neatech.climbplan.userinterface.components.CloseableTabbedPane.CloseableMetalTabbedPaneUI
- All Implemented Interfaces:
- SwingConstants
- Enclosing class:
- CloseableTabbedPane
class CloseableTabbedPane.CloseableMetalTabbedPaneUI
- extends MetalTabbedPaneUI
A specific MetalTabbedPaneUI
.
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 |
Methods inherited from class javax.swing.plaf.metal.MetalTabbedPaneUI |
calculateMaxTabHeight, createLayoutManager, createUI, getColorForGap, getTabLabelShiftX, getTabLabelShiftY, getTabRunOverlay, installDefaults, paint, paintBottomTabBorder, paintContentBorderBottomEdge, paintContentBorderLeftEdge, paintContentBorderRightEdge, paintContentBorderTopEdge, paintFocusIndicator, paintHighlightBelowTab, paintLeftTabBorder, paintRightTabBorder, paintTabBackground, paintTabBorder, paintTopTabBorder, shouldFillGap, shouldPadTabRun, shouldRotateTabRuns, update |
Methods inherited from class javax.swing.plaf.basic.BasicTabbedPaneUI |
assureRectsCreated, calculateMaxTabWidth, calculateTabAreaHeight, calculateTabAreaWidth, calculateTabHeight, calculateTabWidth, createChangeListener, createFocusListener, createMouseListener, createPropertyChangeListener, createScrollButton, expandTabRunsArray, 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, navigateSelectedTab, paintContentBorder, paintIcon, paintTab, paintTabArea, paintText, rotateInsets, selectAdjacentRunTab, selectNextTab, selectNextTabInRun, selectPreviousTab, selectPreviousTabInRun, setRolloverTab, setVisibleComponent, shouldRotateTabRuns, tabForCoordinate, uninstallComponents, uninstallDefaults, uninstallKeyboardActions, uninstallListeners, uninstallUI |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
horizontalTextPosition
private int horizontalTextPosition
- the horizontal position of the text
CloseableTabbedPane.CloseableMetalTabbedPaneUI
public CloseableTabbedPane.CloseableMetalTabbedPaneUI()
- Creates a new instance of
CloseableMetalTabbedPaneUI
CloseableTabbedPane.CloseableMetalTabbedPaneUI
public CloseableTabbedPane.CloseableMetalTabbedPaneUI(int horizontalTextPosition)
- Creates a new instance of
CloseableMetalTabbedPaneUI
- Parameters:
horizontalTextPosition
- the horizontal position of the text (e.g.
SwingUtilities.TRAILING or SwingUtilities.LEFT)
layoutLabel
protected void layoutLabel(int tabPlacement,
FontMetrics metrics,
int tabIndex,
String title,
Icon icon,
Rectangle tabRect,
Rectangle iconRect,
Rectangle textRect,
boolean isSelected)
- Layouts the label
- Overrides:
layoutLabel
in class BasicTabbedPaneUI
- Parameters:
tabPlacement
- the placement of the tabsmetrics
- the font metricstabIndex
- the index of the tabtitle
- the title of the tabicon
- the icon of the tabtabRect
- the tab boundariesiconRect
- the icon boundariestextRect
- the text boundariesisSelected
- true whether the tab is selected, false otherwise