Package edu.wisc.ssec.mcidasv.ui
Class DraggableTabbedPane.CloseableMetalTabbedPaneUI
java.lang.Object
javax.swing.plaf.ComponentUI
javax.swing.plaf.TabbedPaneUI
javax.swing.plaf.basic.BasicTabbedPaneUI
javax.swing.plaf.metal.MetalTabbedPaneUI
edu.wisc.ssec.mcidasv.ui.DraggableTabbedPane.CloseableMetalTabbedPaneUI
- All Implemented Interfaces:
SwingConstants
- Enclosing class:
DraggableTabbedPane
-
Nested Class Summary
Nested classes/interfaces inherited from class javax.swing.plaf.metal.MetalTabbedPaneUI
MetalTabbedPaneUI.TabbedPaneLayoutNested classes/interfaces inherited from class javax.swing.plaf.basic.BasicTabbedPaneUI
BasicTabbedPaneUI.FocusHandler, BasicTabbedPaneUI.MouseHandler, BasicTabbedPaneUI.PropertyChangeHandler, BasicTabbedPaneUI.TabSelectionHandler -
Field Summary
FieldsFields inherited from class javax.swing.plaf.metal.MetalTabbedPaneUI
minTabWidth, selectColor, selectHighlight, tabAreaBackgroundFields 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, upKeyFields 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 -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected intcalculateTabAreaHeight(int placement, int count, int height) protected InsetsgetContentBorderInsets(int tabPlacement) protected voidlayoutLabel(int placement, FontMetrics metrics, int tabIndex, String title, Icon icon, Rectangle tabRect, Rectangle iconRect, Rectangle textRect, boolean isSelected) protected voidpaintContentBorder(Graphics g, int tabPlacement, int selectedIndex) protected voidpaintTabBackground(Graphics g, int placement, int idx, int x, int y, int w, int h, boolean isSel) protected voidpaintTabBorder(Graphics g, int placement, int idx, int x, int y, int w, int h, boolean isSel) Methods inherited from class javax.swing.plaf.metal.MetalTabbedPaneUI
calculateMaxTabHeight, createLayoutManager, createUI, getBaselineOffset, getColorForGap, getTabLabelShiftX, getTabLabelShiftY, getTabRunOverlay, installDefaults, paint, paintBottomTabBorder, paintContentBorderBottomEdge, paintContentBorderLeftEdge, paintContentBorderRightEdge, paintContentBorderTopEdge, paintFocusIndicator, paintHighlightBelowTab, paintLeftTabBorder, paintRightTabBorder, paintTopTabBorder, shouldFillGap, shouldPadTabRun, shouldRotateTabRuns, updateMethods inherited from class javax.swing.plaf.basic.BasicTabbedPaneUI
assureRectsCreated, 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, uninstallUIMethods inherited from class javax.swing.plaf.ComponentUI
contains, getAccessibleChild, getAccessibleChildrenCount, getPreferredSize
-
Field Details
-
borderInsets
-
horizontalTextPosition
-
-
Constructor Details
-
CloseableMetalTabbedPaneUI
public CloseableMetalTabbedPaneUI() -
CloseableMetalTabbedPaneUI
-
-
Method Details
-
paintContentBorder
- Overrides:
paintContentBorderin classBasicTabbedPaneUI
-
getContentBorderInsets
- Overrides:
getContentBorderInsetsin classBasicTabbedPaneUI
-
paintTabBorder
protected void paintTabBorder(Graphics g, int placement, int idx, int x, int y, int w, int h, boolean isSel) - Overrides:
paintTabBorderin classMetalTabbedPaneUI
-
paintTabBackground
protected void paintTabBackground(Graphics g, int placement, int idx, int x, int y, int w, int h, boolean isSel) - Overrides:
paintTabBackgroundin classMetalTabbedPaneUI
-
calculateTabAreaHeight
- Overrides:
calculateTabAreaHeightin classBasicTabbedPaneUI
-
layoutLabel
protected void layoutLabel(int placement, FontMetrics metrics, int tabIndex, String title, Icon icon, Rectangle tabRect, Rectangle iconRect, Rectangle textRect, boolean isSelected) - Overrides:
layoutLabelin classBasicTabbedPaneUI
-