| javax.swing.plaf.basic.BasicTabbedPaneUI org.jvnet.substance.SubstanceTabbedPaneUI
SubstanceTabbedPaneUI | public class SubstanceTabbedPaneUI extends BasicTabbedPaneUI (Code) | | UI for tabbed panes in Substance look and feel.
author: Kirill Grouchnikov |
Inner Class :final protected class TabbedContainerListener extends ContainerAdapter | |
Inner Class :protected class TabSelectionHandler implements ChangeListener | |
Inner Class :protected class TabRepaintCallback implements FadeTrackerCallback | |
Method Summary | |
protected int | calculateMaxTabHeight(int tabPlacement) | protected int | calculateTabHeight(int tabPlacement, int tabIndex, int fontHeight) | protected int | calculateTabWidth(int tabPlacement, int tabIndex, FontMetrics metrics) | protected ChangeListener | createChangeListener() | protected LayoutManager | createLayoutManager() | protected MouseListener | createMouseListener() | protected JButton | createScrollButton(int direction) | public static ComponentUI | createUI(JComponent tabPane) | protected void | ensureCurrentLayout() Ensures the current layout. | public FadeTrackerCallback | getCallback(int tabIndex) Returns the repaint callback for the specified tab index.
Parameters: tabIndex - Tab index. | protected Rectangle | getCloseButtonRectangleForDraw(int tabIndex, int x, int y, int width, int height) Retrieves the close button rectangle for drawing purposes.
Parameters: tabIndex - Tab index. Parameters: x - X coordinate of the tab. Parameters: y - Y coordinate of the tab. Parameters: width - The tab width. Parameters: height - The tab height. | protected Rectangle | getCloseButtonRectangleForEvents(int tabIndex, int x, int y, int w, int h) Retrieves the close button rectangle for event handling.
Parameters: tabIndex - Tab index. Parameters: x - X coordinate of the tab. Parameters: y - Y coordinate of the tab. Parameters: w - The tab width. Parameters: h - The tab height. | protected Insets | getContentBorderInsets(int tabPlacement) | protected Icon | getIconForTab(int tabIndex) | public static String | getMemoryUsage() Returns the memory usage string. | protected ComponentState | getPrevTabState(int tabIndex) Returns the previous state for the specified tab.
Parameters: tabIndex - Tab index. | public int | getRolloverTabIndex() Returns the index of the tab currently being rolled-over. | protected Insets | getTabAreaInsets(int tabPlacement) | public Insets | getTabAreaInsets() Returns tab area insets. | public Rectangle | getTabBounds(JTabbedPane pane, int i) | protected int | getTabExtraWidth(int tabPlacement, int tabIndex) Returns extra width for the specified tab.
Parameters: tabPlacement - Tab placement. Parameters: tabIndex - Tab index. | protected Insets | getTabInsets(int tabPlacement, int tabIndex) | protected int | getTabLabelShiftX(int tabPlacement, int tabIndex, boolean isSelected) | protected int | getTabLabelShiftY(int tabPlacement, int tabIndex, boolean isSelected) | public Rectangle | getTabRectangle(int tabIndex) Returns the tab rectangle for the specified tab.
Parameters: tabIndex - Index of a tab. | protected int | getTabRunOverlay(int tabPlacement) | protected ComponentState | getTabState(int tabIndex) Returns the current state for the specified tab.
Parameters: tabIndex - Tab index. | protected int | getTextAlignment(int tabPlacement) Returns the text alignment for the specified tab placement.
Parameters: tabPlacement - Tab placement. | protected void | installDefaults() | protected void | installListeners() | protected void | layoutLabel(int tabPlacement, FontMetrics metrics, int tabIndex, String title, Icon icon, Rectangle tabRect, Rectangle iconRect, Rectangle textRect, boolean isSelected) | protected void | paintContentBorderBottomEdge(Graphics g, int tabPlacement, int selectedIndex, int x, int y, int w, int h) | protected void | paintContentBorderLeftEdge(Graphics g, int tabPlacement, int selectedIndex, int x, int y, int w, int h) | protected void | paintContentBorderRightEdge(Graphics g, int tabPlacement, int selectedIndex, int x, int y, int w, int h) | protected void | paintContentBorderTopEdge(Graphics g, int tabPlacement, int selectedIndex, int x, int y, int w, int h) | protected void | paintFocusIndicator(Graphics g, int tabPlacement, Rectangle[] rects, int tabIndex, Rectangle iconRect, Rectangle textRect, boolean isSelected) | protected void | paintTab(Graphics g, int tabPlacement, Rectangle[] rects, int tabIndex, Rectangle iconRect, Rectangle textRect) | protected void | paintTabArea(Graphics g, int tabPlacement, int selectedIndex) | protected void | paintTabBackground(Graphics g, int tabPlacement, int tabIndex, int x, int y, int w, int h, boolean isSelected) | protected void | paintTabBorder(Graphics g, int tabPlacement, int tabIndex, int x, int y, int w, int h, boolean isSelected) | protected void | paintText(Graphics g, int tabPlacement, Font font, FontMetrics metrics, int tabIndex, String title, Rectangle textRect, boolean isSelected) | public static synchronized void | reset() Resets image maps (used when setting new theme). | public void | setTabAreaInsets(Insets insets) Sets new value for tab area insets. | protected boolean | shouldPadTabRun(int tabPlacement, int run) | protected void | tryCloseTab(int tabIndex) Tries closing a single tab. | protected void | tryCloseTabs(int tabIndex, TabCloseKind tabCloseKind) Tries closing tabs based on the specified tab index and tab close kind. | protected void | tryCloseTabs(Set<Integer> tabIndexes) Tries closing the specified tabs. | protected void | uninstallDefaults() | protected void | uninstallListeners() |
substanceContainerListener | protected TabbedContainerListener substanceContainerListener(Code) | | Tracks changes to the tabbed pane contents. Each tab component is tracked
for changes on the
SubstanceLookAndFeel.WINDOW_MODIFIED property.
|
substanceMouseLocation | protected Point substanceMouseLocation(Code) | | Current mouse location.
|
substanceRolloverHandler | protected MouseRolloverHandler substanceRolloverHandler(Code) | | Mouse handler for rollover effects.
|
substanceSelectionListener | protected ChangeListener substanceSelectionListener(Code) | | Listener for animation effects on tab selection.
|
SubstanceTabbedPaneUI | public SubstanceTabbedPaneUI()(Code) | | Creates the new UI delegate.
|
calculateMaxTabHeight | protected int calculateMaxTabHeight(int tabPlacement)(Code) | | |
calculateTabHeight | protected int calculateTabHeight(int tabPlacement, int tabIndex, int fontHeight)(Code) | | |
calculateTabWidth | protected int calculateTabWidth(int tabPlacement, int tabIndex, FontMetrics metrics)(Code) | | |
createScrollButton | protected JButton createScrollButton(int direction)(Code) | | |
ensureCurrentLayout | protected void ensureCurrentLayout()(Code) | | Ensures the current layout.
|
getCallback | public FadeTrackerCallback getCallback(int tabIndex)(Code) | | Returns the repaint callback for the specified tab index.
Parameters: tabIndex - Tab index. Repaint callback for the specified tab index. |
getCloseButtonRectangleForDraw | protected Rectangle getCloseButtonRectangleForDraw(int tabIndex, int x, int y, int width, int height)(Code) | | Retrieves the close button rectangle for drawing purposes.
Parameters: tabIndex - Tab index. Parameters: x - X coordinate of the tab. Parameters: y - Y coordinate of the tab. Parameters: width - The tab width. Parameters: height - The tab height. The close button rectangle. |
getCloseButtonRectangleForEvents | protected Rectangle getCloseButtonRectangleForEvents(int tabIndex, int x, int y, int w, int h)(Code) | | Retrieves the close button rectangle for event handling.
Parameters: tabIndex - Tab index. Parameters: x - X coordinate of the tab. Parameters: y - Y coordinate of the tab. Parameters: w - The tab width. Parameters: h - The tab height. The close button rectangle. |
getContentBorderInsets | protected Insets getContentBorderInsets(int tabPlacement)(Code) | | |
getIconForTab | protected Icon getIconForTab(int tabIndex)(Code) | | |
getMemoryUsage | public static String getMemoryUsage()(Code) | | Returns the memory usage string.
The memory usage string. |
getPrevTabState | protected ComponentState getPrevTabState(int tabIndex)(Code) | | Returns the previous state for the specified tab.
Parameters: tabIndex - Tab index. The previous state for the specified tab. |
getRolloverTabIndex | public int getRolloverTabIndex()(Code) | | Returns the index of the tab currently being rolled-over.
Index of the tab currently being rolled-over. |
getTabAreaInsets | protected Insets getTabAreaInsets(int tabPlacement)(Code) | | |
getTabAreaInsets | public Insets getTabAreaInsets()(Code) | | Returns tab area insets.
Tab area insets. |
getTabExtraWidth | protected int getTabExtraWidth(int tabPlacement, int tabIndex)(Code) | | Returns extra width for the specified tab.
Parameters: tabPlacement - Tab placement. Parameters: tabIndex - Tab index. Extra width for the specified tab. |
getTabInsets | protected Insets getTabInsets(int tabPlacement, int tabIndex)(Code) | | |
getTabLabelShiftX | protected int getTabLabelShiftX(int tabPlacement, int tabIndex, boolean isSelected)(Code) | | |
getTabLabelShiftY | protected int getTabLabelShiftY(int tabPlacement, int tabIndex, boolean isSelected)(Code) | | |
getTabRectangle | public Rectangle getTabRectangle(int tabIndex)(Code) | | Returns the tab rectangle for the specified tab.
Parameters: tabIndex - Index of a tab. The tab rectangle for the specified parameters. |
getTabRunOverlay | protected int getTabRunOverlay(int tabPlacement)(Code) | | |
getTabState | protected ComponentState getTabState(int tabIndex)(Code) | | Returns the current state for the specified tab.
Parameters: tabIndex - Tab index. The current state for the specified tab. |
getTextAlignment | protected int getTextAlignment(int tabPlacement)(Code) | | Returns the text alignment for the specified tab placement.
Parameters: tabPlacement - Tab placement. Tab text alignment. |
installDefaults | protected void installDefaults()(Code) | | |
installListeners | protected void installListeners()(Code) | | |
paintContentBorderBottomEdge | protected void paintContentBorderBottomEdge(Graphics g, int tabPlacement, int selectedIndex, int x, int y, int w, int h)(Code) | | |
paintContentBorderLeftEdge | protected void paintContentBorderLeftEdge(Graphics g, int tabPlacement, int selectedIndex, int x, int y, int w, int h)(Code) | | |
paintContentBorderRightEdge | protected void paintContentBorderRightEdge(Graphics g, int tabPlacement, int selectedIndex, int x, int y, int w, int h)(Code) | | |
paintContentBorderTopEdge | protected void paintContentBorderTopEdge(Graphics g, int tabPlacement, int selectedIndex, int x, int y, int w, int h)(Code) | | |
paintTabArea | protected void paintTabArea(Graphics g, int tabPlacement, int selectedIndex)(Code) | | |
paintTabBackground | protected void paintTabBackground(Graphics g, int tabPlacement, int tabIndex, int x, int y, int w, int h, boolean isSelected)(Code) | | |
paintTabBorder | protected void paintTabBorder(Graphics g, int tabPlacement, int tabIndex, int x, int y, int w, int h, boolean isSelected)(Code) | | |
setTabAreaInsets | public void setTabAreaInsets(Insets insets)(Code) | | Sets new value for tab area insets.
Parameters: insets - Tab area insets. |
shouldPadTabRun | protected boolean shouldPadTabRun(int tabPlacement, int run)(Code) | | |
tryCloseTab | protected void tryCloseTab(int tabIndex)(Code) | | Tries closing a single tab.
Parameters: tabIndex - Tab index. |
tryCloseTabs | protected void tryCloseTabs(int tabIndex, TabCloseKind tabCloseKind)(Code) | | Tries closing tabs based on the specified tab index and tab close kind.
Parameters: tabIndex - Tab index. Parameters: tabCloseKind - Tab close kind. |
tryCloseTabs | protected void tryCloseTabs(Set<Integer> tabIndexes)(Code) | | Tries closing the specified tabs.
Parameters: tabIndexes - Tab indexes. |
uninstallDefaults | protected void uninstallDefaults()(Code) | | |
uninstallListeners | protected void uninstallListeners()(Code) | | |
Methods inherited from javax.swing.plaf.basic.BasicTabbedPaneUI | protected void assureRectsCreated(int tabCount)(Code)(Java Doc) protected int calculateMaxTabHeight(int tabPlacement)(Code)(Java Doc) protected int calculateMaxTabWidth(int tabPlacement)(Code)(Java Doc) protected int calculateTabAreaHeight(int tabPlacement, int horizRunCount, int maxTabHeight)(Code)(Java Doc) protected int calculateTabAreaWidth(int tabPlacement, int vertRunCount, int maxTabWidth)(Code)(Java Doc) protected int calculateTabHeight(int tabPlacement, int tabIndex, int fontHeight)(Code)(Java Doc) protected int calculateTabWidth(int tabPlacement, int tabIndex, FontMetrics metrics)(Code)(Java Doc) protected ChangeListener createChangeListener()(Code)(Java Doc) protected FocusListener createFocusListener()(Code)(Java Doc) protected LayoutManager createLayoutManager()(Code)(Java Doc) protected MouseListener createMouseListener()(Code)(Java Doc) protected PropertyChangeListener createPropertyChangeListener()(Code)(Java Doc) protected JButton createScrollButton(int direction)(Code)(Java Doc) public static ComponentUI createUI(JComponent c)(Code)(Java Doc) protected void expandTabRunsArray()(Code)(Java Doc) public int getBaseline(JComponent c, int width, int height)(Code)(Java Doc) protected int getBaseline(int tab)(Code)(Java Doc) protected int getBaselineOffset()(Code)(Java Doc) public Component.BaselineResizeBehavior getBaselineResizeBehavior(JComponent c)(Code)(Java Doc) protected Insets getContentBorderInsets(int tabPlacement)(Code)(Java Doc) protected int getFocusIndex()(Code)(Java Doc) protected FontMetrics getFontMetrics()(Code)(Java Doc) protected Icon getIconForTab(int tabIndex)(Code)(Java Doc) public Dimension getMaximumSize(JComponent c)(Code)(Java Doc) public Dimension getMinimumSize(JComponent c)(Code)(Java Doc) protected int getNextTabIndex(int base)(Code)(Java Doc) protected int getNextTabIndexInRun(int tabCount, int base)(Code)(Java Doc) protected int getNextTabRun(int baseRun)(Code)(Java Doc) protected int getPreviousTabIndex(int base)(Code)(Java Doc) protected int getPreviousTabIndexInRun(int tabCount, int base)(Code)(Java Doc) protected int getPreviousTabRun(int baseRun)(Code)(Java Doc) protected int getRolloverTab()(Code)(Java Doc) protected int getRunForTab(int tabCount, int tabIndex)(Code)(Java Doc) protected Insets getSelectedTabPadInsets(int tabPlacement)(Code)(Java Doc) protected Insets getTabAreaInsets(int tabPlacement)(Code)(Java Doc) public Rectangle getTabBounds(JTabbedPane pane, int i)(Code)(Java Doc) protected Rectangle getTabBounds(int tabIndex, Rectangle dest)(Code)(Java Doc) protected Insets getTabInsets(int tabPlacement, int tabIndex)(Code)(Java Doc) protected int getTabLabelShiftX(int tabPlacement, int tabIndex, boolean isSelected)(Code)(Java Doc) protected int getTabLabelShiftY(int tabPlacement, int tabIndex, boolean isSelected)(Code)(Java Doc) public int getTabRunCount(JTabbedPane pane)(Code)(Java Doc) protected int getTabRunIndent(int tabPlacement, int run)(Code)(Java Doc) protected int getTabRunOffset(int tabPlacement, int tabCount, int tabIndex, boolean forward)(Code)(Java Doc) protected int getTabRunOverlay(int tabPlacement)(Code)(Java Doc) protected View getTextViewForTab(int tabIndex)(Code)(Java Doc) protected Component getVisibleComponent()(Code)(Java Doc) protected void installComponents()(Code)(Java Doc) protected void installDefaults()(Code)(Java Doc) protected void installKeyboardActions()(Code)(Java Doc) protected void installListeners()(Code)(Java Doc) public void installUI(JComponent c)(Code)(Java Doc) protected int lastTabInRun(int tabCount, int run)(Code)(Java Doc) protected void layoutLabel(int tabPlacement, FontMetrics metrics, int tabIndex, String title, Icon icon, Rectangle tabRect, Rectangle iconRect, Rectangle textRect, boolean isSelected)(Code)(Java Doc) protected void navigateSelectedTab(int direction)(Code)(Java Doc) public void paint(Graphics g, JComponent c)(Code)(Java Doc) protected void paintContentBorder(Graphics g, int tabPlacement, int selectedIndex)(Code)(Java Doc) protected void paintContentBorderBottomEdge(Graphics g, int tabPlacement, int selectedIndex, int x, int y, int w, int h)(Code)(Java Doc) protected void paintContentBorderLeftEdge(Graphics g, int tabPlacement, int selectedIndex, int x, int y, int w, int h)(Code)(Java Doc) protected void paintContentBorderRightEdge(Graphics g, int tabPlacement, int selectedIndex, int x, int y, int w, int h)(Code)(Java Doc) protected void paintContentBorderTopEdge(Graphics g, int tabPlacement, int selectedIndex, int x, int y, int w, int h)(Code)(Java Doc) protected void paintFocusIndicator(Graphics g, int tabPlacement, Rectangle[] rects, int tabIndex, Rectangle iconRect, Rectangle textRect, boolean isSelected)(Code)(Java Doc) protected void paintIcon(Graphics g, int tabPlacement, int tabIndex, Icon icon, Rectangle iconRect, boolean isSelected)(Code)(Java Doc) protected void paintTab(Graphics g, int tabPlacement, Rectangle[] rects, int tabIndex, Rectangle iconRect, Rectangle textRect)(Code)(Java Doc) protected void paintTabArea(Graphics g, int tabPlacement, int selectedIndex)(Code)(Java Doc) protected void paintTabBackground(Graphics g, int tabPlacement, int tabIndex, int x, int y, int w, int h, boolean isSelected)(Code)(Java Doc) protected void paintTabBorder(Graphics g, int tabPlacement, int tabIndex, int x, int y, int w, int h, boolean isSelected)(Code)(Java Doc) protected void paintText(Graphics g, int tabPlacement, Font font, FontMetrics metrics, int tabIndex, String title, Rectangle textRect, boolean isSelected)(Code)(Java Doc) protected static void rotateInsets(Insets topInsets, Insets targetInsets, int targetPlacement)(Code)(Java Doc) protected void selectAdjacentRunTab(int tabPlacement, int tabIndex, int offset)(Code)(Java Doc) protected void selectNextTab(int current)(Code)(Java Doc) protected void selectNextTabInRun(int current)(Code)(Java Doc) protected void selectPreviousTab(int current)(Code)(Java Doc) protected void selectPreviousTabInRun(int current)(Code)(Java Doc) protected void setRolloverTab(int index)(Code)(Java Doc) protected void setVisibleComponent(Component component)(Code)(Java Doc) protected boolean shouldPadTabRun(int tabPlacement, int run)(Code)(Java Doc) protected boolean shouldRotateTabRuns(int tabPlacement)(Code)(Java Doc) public int tabForCoordinate(JTabbedPane pane, int x, int y)(Code)(Java Doc) protected void uninstallComponents()(Code)(Java Doc) protected void uninstallDefaults()(Code)(Java Doc) protected void uninstallKeyboardActions()(Code)(Java Doc) protected void uninstallListeners()(Code)(Java Doc) public void uninstallUI(JComponent c)(Code)(Java Doc)
|
|
|