| com.jgoodies.looks.windows.WindowsTabbedPaneUI
WindowsTabbedPaneUI | final public class WindowsTabbedPaneUI extends com.sun.java.swing.plaf.windows.WindowsTabbedPaneUI (Code) | | The JGoodies Windows L&F implementation of TabbedPaneUI .
The flat appearance is work in progress; currently it works only
for a single line of tabs and paints distored tabs for multiple lines.
author: Karsten Lentzsch version: $Revision: 1.5 $ |
Method Summary | |
protected PropertyChangeListener | createPropertyChangeListener() Creates and answer a handler that listens to property changes. | public static ComponentUI | createUI(JComponent x) Creates and answers the WindowsTabbedPaneUI . | protected Insets | getContentBorderInsets(int tabPlacement) | protected Icon | getIconForTab(int tabIndex) Answers the icon for the tab with the specified index. | protected Insets | getSelectedTabPadInsets(int tabPlacement) | protected Insets | getTabAreaInsets(int tabPlacement) | protected int | getTabLabelShiftX(int tabPlacement, int tabIndex, boolean isSelected) | protected int | getTabLabelShiftY(int tabPlacement, int tabIndex, boolean isSelected) | public void | installUI(JComponent c) Installs the UI. | protected void | layoutLabel(int tabPlacement, FontMetrics metrics, int tabIndex, String title, Icon icon, Rectangle tabRect, Rectangle iconRect, Rectangle textRect, boolean isSelected) Copied here from super(super)class to avoid labels being centered on
vertical tab runs if they consist of icon and text. | protected void | paintContentBorderBottomEdge(Graphics g, int tabPlacement, int selectedIndex, int x, int y, int w, int h) Paints the bottom edge of the pane's content border. | protected void | paintContentBorderLeftEdge(Graphics g, int tabPlacement, int selectedIndex, int x, int y, int w, int h) Paints the left Edge of the pane's content border. | protected void | paintContentBorderRightEdge(Graphics g, int tabPlacement, int selectedIndex, int x, int y, int w, int h) Paints the right Edge of the pane's content border. | protected void | paintContentBorderTopEdge(Graphics g, int tabPlacement, int selectedIndex, int x, int y, int w, int h) Paints the top edge of the pane's content border. | protected void | paintFocusIndicator(Graphics g, int tabPlacement, Rectangle[] rectangles, int tabIndex, Rectangle iconRect, Rectangle textRect, boolean isSelected) | protected void | paintTabBorder(Graphics g, int tabPlacement, int tabIndex, int x, int y, int w, int h, boolean isSelected) Paints the border for a single tab; it does not paint the tab's background. | protected boolean | shouldRotateTabRuns(int tabPlacement) |
createPropertyChangeListener | protected PropertyChangeListener createPropertyChangeListener()(Code) | | Creates and answer a handler that listens to property changes.
Unlike the superclass BasicTabbedPane, the PlasticTabbedPaneUI
uses an extended Handler.
|
getContentBorderInsets | protected Insets getContentBorderInsets(int tabPlacement)(Code) | | |
getIconForTab | protected Icon getIconForTab(int tabIndex)(Code) | | Answers the icon for the tab with the specified index.
In case, we have globally switched of the use tab icons,
we answer null if and only if we have a title.
|
getSelectedTabPadInsets | protected Insets getSelectedTabPadInsets(int tabPlacement)(Code) | | |
getTabAreaInsets | protected Insets getTabAreaInsets(int tabPlacement)(Code) | | |
getTabLabelShiftX | protected int getTabLabelShiftX(int tabPlacement, int tabIndex, boolean isSelected)(Code) | | |
getTabLabelShiftY | protected int getTabLabelShiftY(int tabPlacement, int tabIndex, boolean isSelected)(Code) | | |
layoutLabel | protected void layoutLabel(int tabPlacement, FontMetrics metrics, int tabIndex, String title, Icon icon, Rectangle tabRect, Rectangle iconRect, Rectangle textRect, boolean isSelected)(Code) | | Copied here from super(super)class to avoid labels being centered on
vertical tab runs if they consist of icon and text.
|
paintContentBorderBottomEdge | protected void paintContentBorderBottomEdge(Graphics g, int tabPlacement, int selectedIndex, int x, int y, int w, int h)(Code) | | Paints the bottom edge of the pane's content border.
|
paintContentBorderLeftEdge | protected void paintContentBorderLeftEdge(Graphics g, int tabPlacement, int selectedIndex, int x, int y, int w, int h)(Code) | | Paints the left Edge of the pane's content border.
|
paintContentBorderRightEdge | protected void paintContentBorderRightEdge(Graphics g, int tabPlacement, int selectedIndex, int x, int y, int w, int h)(Code) | | Paints the right Edge of the pane's content border.
|
paintContentBorderTopEdge | protected void paintContentBorderTopEdge(Graphics g, int tabPlacement, int selectedIndex, int x, int y, int w, int h)(Code) | | Paints the top edge of the pane's content border.
|
paintTabBorder | protected void paintTabBorder(Graphics g, int tabPlacement, int tabIndex, int x, int y, int w, int h, boolean isSelected)(Code) | | Paints the border for a single tab; it does not paint the tab's background.
|
shouldRotateTabRuns | protected boolean shouldRotateTabRuns(int tabPlacement)(Code) | | |
|
|