Package com.jgoodies.looks.plastic
Class PlasticTabbedPaneUI.BottomRenderer
- java.lang.Object
-
- com.jgoodies.looks.plastic.PlasticTabbedPaneUI.AbstractRenderer
-
- com.jgoodies.looks.plastic.PlasticTabbedPaneUI.BottomRenderer
-
- Enclosing class:
- PlasticTabbedPaneUI
private static final class PlasticTabbedPaneUI.BottomRenderer extends PlasticTabbedPaneUI.AbstractRenderer
The renderer for the case where Tabs are below the content and decoration is standard.
-
-
Field Summary
-
Fields inherited from class com.jgoodies.looks.plastic.PlasticTabbedPaneUI.AbstractRenderer
darkShadow, EAST_INSETS, EMPTY_INSETS, focus, lightHighlight, NORTH_INSETS, selectColor, selectHighlight, selectLight, shadowColor, SOUTH_INSETS, tabPane, tabPlacement, WEST_INSETS
-
-
Constructor Summary
Constructors Modifier Constructor Description privateBottomRenderer(javax.swing.JTabbedPane tabPane)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.awt.InsetsgetSelectedTabPadInsets()Returns additional the insets for the selected tab.protected java.awt.InsetsgetTabAreaInsets(java.awt.Insets defaultInsets)protected java.awt.InsetsgetTabInsets(int tabIndex, java.awt.Insets tabInsets)Returns the insets for the given tab.protected intgetTabLabelShiftY(int tabIndex, boolean isSelected)Returns the amount by which the label should be shifted vertically.protected intgetTabRunIndent(int run)Returns the amount by which the run numberrunshould be indented.protected intgetTabRunOverlay(int tabRunOverlay)Returns the amount of overlap for two Runs.protected intgetTabsOverlay()Returns the amount of overlap for two tabs.protected voidpaintContentBorderBottomEdge(java.awt.Graphics g, int x, int y, int w, int h, boolean drawBroken, java.awt.Rectangle selRect, boolean isContentBorderPainted)Draws the bottom edge of the Border around the content area.protected voidpaintFocusIndicator(java.awt.Graphics g, java.awt.Rectangle[] rects, int tabIndex, java.awt.Rectangle iconRect, java.awt.Rectangle textRect, boolean isSelected)Draws the rectancle around the Tab label which indicates keyboard focus.protected voidpaintTabBackground(java.awt.Graphics g, int tabIndex, int x, int y, int w, int h, boolean isSelected)Fills the background of the given tab to make sure overlap of tabs is handled correctly.protected voidpaintTabBorder(java.awt.Graphics g, int tabIndex, int x, int y, int w, int h, boolean isSelected)Paints the border around the given tab.-
Methods inherited from class com.jgoodies.looks.plastic.PlasticTabbedPaneUI.AbstractRenderer
getContentBorderInsets, getTabLabelShiftX, isFirstDisplayedTab, paintContentBorderLeftEdge, paintContentBorderRightEdge, paintContentBorderTopEdge, shouldPadTabRun
-
-
-
-
Method Detail
-
getTabAreaInsets
protected java.awt.Insets getTabAreaInsets(java.awt.Insets defaultInsets)
- Overrides:
getTabAreaInsetsin classPlasticTabbedPaneUI.AbstractRenderer
-
getTabLabelShiftY
protected int getTabLabelShiftY(int tabIndex, boolean isSelected)Description copied from class:PlasticTabbedPaneUI.AbstractRendererReturns the amount by which the label should be shifted vertically.- Overrides:
getTabLabelShiftYin classPlasticTabbedPaneUI.AbstractRenderer
-
getTabRunOverlay
protected int getTabRunOverlay(int tabRunOverlay)
Description copied from class:PlasticTabbedPaneUI.AbstractRendererReturns the amount of overlap for two Runs.- Overrides:
getTabRunOverlayin classPlasticTabbedPaneUI.AbstractRenderer
-
getTabRunIndent
protected int getTabRunIndent(int run)
Description copied from class:PlasticTabbedPaneUI.AbstractRendererReturns the amount by which the run numberrunshould be indented. Add a few pixels for every run to make diagonal lines align.- Overrides:
getTabRunIndentin classPlasticTabbedPaneUI.AbstractRenderer
-
getSelectedTabPadInsets
protected java.awt.Insets getSelectedTabPadInsets()
Description copied from class:PlasticTabbedPaneUI.AbstractRendererReturns additional the insets for the selected tab. This allows to "raise" The selected tab over the others- Overrides:
getSelectedTabPadInsetsin classPlasticTabbedPaneUI.AbstractRenderer
-
getTabInsets
protected java.awt.Insets getTabInsets(int tabIndex, java.awt.Insets tabInsets)Description copied from class:PlasticTabbedPaneUI.AbstractRendererReturns the insets for the given tab.- Specified by:
getTabInsetsin classPlasticTabbedPaneUI.AbstractRenderer
-
paintFocusIndicator
protected void paintFocusIndicator(java.awt.Graphics g, java.awt.Rectangle[] rects, int tabIndex, java.awt.Rectangle iconRect, java.awt.Rectangle textRect, boolean isSelected)Description copied from class:PlasticTabbedPaneUI.AbstractRendererDraws the rectancle around the Tab label which indicates keyboard focus.- Specified by:
paintFocusIndicatorin classPlasticTabbedPaneUI.AbstractRenderer
-
paintTabBackground
protected void paintTabBackground(java.awt.Graphics g, int tabIndex, int x, int y, int w, int h, boolean isSelected)Description copied from class:PlasticTabbedPaneUI.AbstractRendererFills the background of the given tab to make sure overlap of tabs is handled correctly.- Specified by:
paintTabBackgroundin classPlasticTabbedPaneUI.AbstractRenderer
-
paintTabBorder
protected void paintTabBorder(java.awt.Graphics g, int tabIndex, int x, int y, int w, int h, boolean isSelected)Description copied from class:PlasticTabbedPaneUI.AbstractRendererPaints the border around the given tab.- Specified by:
paintTabBorderin classPlasticTabbedPaneUI.AbstractRenderer
-
paintContentBorderBottomEdge
protected void paintContentBorderBottomEdge(java.awt.Graphics g, int x, int y, int w, int h, boolean drawBroken, java.awt.Rectangle selRect, boolean isContentBorderPainted)Description copied from class:PlasticTabbedPaneUI.AbstractRendererDraws the bottom edge of the Border around the content area. Draw broken line if selected tab is visible and adjacent to content and TabPlacement is same as painted edge.- Overrides:
paintContentBorderBottomEdgein classPlasticTabbedPaneUI.AbstractRenderer
-
getTabsOverlay
protected int getTabsOverlay()
Description copied from class:PlasticTabbedPaneUI.AbstractRendererReturns the amount of overlap for two tabs.- Overrides:
getTabsOverlayin classPlasticTabbedPaneUI.AbstractRenderer
-
-