Class CloseTabPaneEclipseUI
- java.lang.Object
-
- javax.swing.plaf.ComponentUI
-
- javax.swing.plaf.TabbedPaneUI
-
- javax.swing.plaf.basic.BasicTabbedPaneUI
-
- com.openindex.openestate.tool.utils.tabs.CloseTabPaneUI
-
- com.openindex.openestate.tool.utils.tabs.CloseTabPaneEclipseUI
-
- All Implemented Interfaces:
SwingConstants
public class CloseTabPaneEclipseUI extends CloseTabPaneUI
CloseTabPaneEclipseUI.- Author:
- David Bismut, davidou@mageos.com, Andreas Rudolph
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected classCloseTabPaneEclipseUI.ScrollableTabButton-
Nested classes/interfaces inherited from class com.openindex.openestate.tool.utils.tabs.CloseTabPaneUI
CloseTabPaneUI.MyMouseMotionListener, CloseTabPaneUI.ScrollableTabPanel, CloseTabPaneUI.ScrollableTabSupport, CloseTabPaneUI.ScrollableTabViewport, CloseTabPaneUI.TabSelectionHandler
-
Nested classes/interfaces inherited from class javax.swing.plaf.basic.BasicTabbedPaneUI
BasicTabbedPaneUI.FocusHandler, BasicTabbedPaneUI.MouseHandler, BasicTabbedPaneUI.PropertyChangeHandler, BasicTabbedPaneUI.TabbedPaneLayout
-
-
Field Summary
-
Fields inherited from class com.openindex.openestate.tool.utils.tabs.CloseTabPaneUI
actionPopupMenu, BUTTONSIZE, closeItem, maxItem, motionListener, tabScroller, WIDTHDELTA
-
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
-
-
Constructor Summary
Constructors Constructor Description CloseTabPaneEclipseUI()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected CloseTabPaneUI.ScrollableTabButtoncreateScrollableTabButton(int direction)static ComponentUIcreateUI(JComponent c)protected voidpaintContentBorderBottomEdge(Graphics g, int tabPlacement, int selectedIndex, int x, int y, int w, int h)protected voidpaintContentBorderLeftEdge(Graphics g, int tabPlacement, int selectedIndex, int x, int y, int w, int h)protected voidpaintContentBorderRightEdge(Graphics g, int tabPlacement, int selectedIndex, int x, int y, int w, int h)protected voidpaintContentBorderTopEdge(Graphics g, int tabPlacement, int selectedIndex, int x, int y, int w, int h)protected voidpaintFocusIndicator(Graphics g, int tabPlacement, Rectangle[] rects, int tabIndex, Rectangle iconRect, Rectangle textRect, boolean isSelected)protected voidpaintTabBackground(Graphics g, int tabPlacement, int tabIndex, int x, int y, int w, int h, boolean isSelected)protected voidpaintTabBorder(Graphics g, int tabPlacement, int tabIndex, int x, int y, int w, int h, boolean isSelected)protected voidpaintText(Graphics g, int tabPlacement, Font font, FontMetrics metrics, int tabIndex, String title, Rectangle textRect, boolean isSelected)-
Methods inherited from class com.openindex.openestate.tool.utils.tabs.CloseTabPaneUI
calculateTabHeight, calculateTabWidth, createChangeListener, createLayoutManager, createMouseListener, getContentBorderInsets, getOverTabIndex, getShortTitle, getTabBounds, installComponents, installKeyboardActions, installListeners, isCloseEnabled, isMaxEnabled, isOneActionButtonEnabled, layoutLabel, newCloseRect, newMaxRect, paint, paintActionButton, paintCloseIcon, paintMaxIcon, paintTab, scroll, setCloseIcon, setCloseIconImage, setMaxIcon, setMaxIconImage, uninstallComponents, uninstallKeyboardActions, uninstallListeners, updateCloseIcon, updateMaxIcon, updateOverTab
-
Methods inherited from class javax.swing.plaf.basic.BasicTabbedPaneUI
assureRectsCreated, calculateMaxTabHeight, calculateMaxTabWidth, calculateTabAreaHeight, calculateTabAreaWidth, createFocusListener, createPropertyChangeListener, createScrollButton, expandTabRunsArray, getBaseline, getBaseline, getBaselineOffset, getBaselineResizeBehavior, getFocusIndex, getFontMetrics, getIconForTab, getMaximumSize, getMinimumSize, getNextTabIndex, getNextTabIndexInRun, getNextTabRun, getPreviousTabIndex, getPreviousTabIndexInRun, getPreviousTabRun, getRolloverTab, getRunForTab, getSelectedTabPadInsets, getTabAreaInsets, getTabBounds, getTabInsets, getTabLabelShiftX, getTabLabelShiftY, getTabRunCount, getTabRunIndent, getTabRunOffset, getTabRunOverlay, getTextViewForTab, getVisibleComponent, installDefaults, installUI, lastTabInRun, navigateSelectedTab, paintContentBorder, paintIcon, paintTabArea, rotateInsets, selectAdjacentRunTab, selectNextTab, selectNextTabInRun, selectPreviousTab, selectPreviousTabInRun, setRolloverTab, setVisibleComponent, shouldPadTabRun, shouldRotateTabRuns, tabForCoordinate, uninstallDefaults, uninstallUI
-
Methods inherited from class javax.swing.plaf.ComponentUI
contains, getAccessibleChild, getAccessibleChildrenCount, getPreferredSize, update
-
-
-
-
Method Detail
-
createUI
public static ComponentUI createUI(JComponent c)
-
paintFocusIndicator
protected void paintFocusIndicator(Graphics g, int tabPlacement, Rectangle[] rects, int tabIndex, Rectangle iconRect, Rectangle textRect, boolean isSelected)
- Overrides:
paintFocusIndicatorin classBasicTabbedPaneUI
-
paintTabBorder
protected void paintTabBorder(Graphics g, int tabPlacement, int tabIndex, int x, int y, int w, int h, boolean isSelected)
- Overrides:
paintTabBorderin classBasicTabbedPaneUI
-
paintContentBorderTopEdge
protected void paintContentBorderTopEdge(Graphics g, int tabPlacement, int selectedIndex, int x, int y, int w, int h)
- Overrides:
paintContentBorderTopEdgein classBasicTabbedPaneUI
-
paintContentBorderLeftEdge
protected void paintContentBorderLeftEdge(Graphics g, int tabPlacement, int selectedIndex, int x, int y, int w, int h)
- Overrides:
paintContentBorderLeftEdgein classBasicTabbedPaneUI
-
paintContentBorderBottomEdge
protected void paintContentBorderBottomEdge(Graphics g, int tabPlacement, int selectedIndex, int x, int y, int w, int h)
- Overrides:
paintContentBorderBottomEdgein classBasicTabbedPaneUI
-
paintContentBorderRightEdge
protected void paintContentBorderRightEdge(Graphics g, int tabPlacement, int selectedIndex, int x, int y, int w, int h)
- Overrides:
paintContentBorderRightEdgein classBasicTabbedPaneUI
-
paintTabBackground
protected void paintTabBackground(Graphics g, int tabPlacement, int tabIndex, int x, int y, int w, int h, boolean isSelected)
- Overrides:
paintTabBackgroundin classBasicTabbedPaneUI
-
paintText
protected void paintText(Graphics g, int tabPlacement, Font font, FontMetrics metrics, int tabIndex, String title, Rectangle textRect, boolean isSelected)
- Overrides:
paintTextin classBasicTabbedPaneUI
-
createScrollableTabButton
protected CloseTabPaneUI.ScrollableTabButton createScrollableTabButton(int direction)
- Overrides:
createScrollableTabButtonin classCloseTabPaneUI
-
-