Package com.jgoodies.looks.plastic
Class PlasticTabbedPaneUI.TopEmbeddedRenderer
java.lang.Object
com.jgoodies.looks.plastic.PlasticTabbedPaneUI.AbstractRenderer
com.jgoodies.looks.plastic.PlasticTabbedPaneUI.TopEmbeddedRenderer
- Enclosing class:
PlasticTabbedPaneUI
private static final class PlasticTabbedPaneUI.TopEmbeddedRenderer
extends PlasticTabbedPaneUI.AbstractRenderer
Renderer for tabs on top with minimal decoration.
-
Field Summary
Fields inherited from class com.jgoodies.looks.plastic.PlasticTabbedPaneUI.AbstractRenderer
darkShadow, EAST_INSETS, EMPTY_INSETS, focus, NORTH_INSETS, selectColor, selectHighlight, selectLight, shadowColor, SOUTH_INSETS, tabPane, WEST_INSETS
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected Insets
getContentBorderInsets
(Insets defaultInsets) protected Insets
Returns additional the insets for the selected tab.protected Insets
getTabAreaInsets
(Insets insets) protected Insets
getTabInsets
(int tabIndex, Insets tabInsets) Returns the insets for the given tab.protected void
paintContentBorderTopEdge
(Graphics g, int x, int y, int w, int h, boolean drawBroken, Rectangle selRect, boolean isContentBorderPainted) Draws the top edge of the border around the content area.protected void
paintFocusIndicator
(Graphics g, Rectangle[] rects, int tabIndex, Rectangle iconRect, Rectangle textRect, boolean isSelected) Minimal decoration: no focus.protected void
paintTabBackground
(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 void
paintTabBorder
(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
getTabLabelShiftX, getTabLabelShiftY, getTabRunIndent, getTabRunOverlay, getTabsOverlay, isFirstDisplayedTab, paintContentBorderBottomEdge, paintContentBorderLeftEdge, paintContentBorderRightEdge, shouldPadTabRun
-
Constructor Details
-
TopEmbeddedRenderer
-
-
Method Details
-
getTabAreaInsets
- Overrides:
getTabAreaInsets
in classPlasticTabbedPaneUI.AbstractRenderer
-
getContentBorderInsets
- Overrides:
getContentBorderInsets
in classPlasticTabbedPaneUI.AbstractRenderer
-
getTabInsets
Description copied from class:PlasticTabbedPaneUI.AbstractRenderer
Returns the insets for the given tab.- Specified by:
getTabInsets
in classPlasticTabbedPaneUI.AbstractRenderer
-
getSelectedTabPadInsets
Description copied from class:PlasticTabbedPaneUI.AbstractRenderer
Returns additional the insets for the selected tab. This allows to "raise" The selected tab over the others- Overrides:
getSelectedTabPadInsets
in classPlasticTabbedPaneUI.AbstractRenderer
-
paintFocusIndicator
protected void paintFocusIndicator(Graphics g, Rectangle[] rects, int tabIndex, Rectangle iconRect, Rectangle textRect, boolean isSelected) Minimal decoration: no focus.- Specified by:
paintFocusIndicator
in classPlasticTabbedPaneUI.AbstractRenderer
-
paintTabBackground
protected void paintTabBackground(Graphics g, int tabIndex, int x, int y, int w, int h, boolean isSelected) Description copied from class:PlasticTabbedPaneUI.AbstractRenderer
Fills the background of the given tab to make sure overlap of tabs is handled correctly.- Specified by:
paintTabBackground
in classPlasticTabbedPaneUI.AbstractRenderer
-
paintTabBorder
protected void paintTabBorder(Graphics g, int tabIndex, int x, int y, int w, int h, boolean isSelected) Description copied from class:PlasticTabbedPaneUI.AbstractRenderer
Paints the border around the given tab.- Specified by:
paintTabBorder
in classPlasticTabbedPaneUI.AbstractRenderer
-
paintContentBorderTopEdge
protected void paintContentBorderTopEdge(Graphics g, int x, int y, int w, int h, boolean drawBroken, Rectangle selRect, boolean isContentBorderPainted) Description copied from class:PlasticTabbedPaneUI.AbstractRenderer
Draws the top edge of the border around the content area. Draw unbroken line for tabs are not on TOP override where appropriate.- Overrides:
paintContentBorderTopEdge
in classPlasticTabbedPaneUI.AbstractRenderer
-