Package com.jgoodies.looks.plastic
Class PlasticTabbedPaneUI.RightEmbeddedRenderer
java.lang.Object
com.jgoodies.looks.plastic.PlasticTabbedPaneUI.AbstractRenderer
com.jgoodies.looks.plastic.PlasticTabbedPaneUI.RightEmbeddedRenderer
- Enclosing class:
- PlasticTabbedPaneUI
private static final class PlasticTabbedPaneUI.RightEmbeddedRenderer
extends PlasticTabbedPaneUI.AbstractRenderer
The renderer for tabs on the right 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 InsetsgetContentBorderInsets(Insets defaultInsets) protected InsetsReturns additional the insets for the selected tab.protected InsetsgetTabAreaInsets(Insets insets) protected InsetsgetTabInsets(int tabIndex, Insets tabInsets) Returns the insets for the given tab.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 voidpaintContentBorderRightEdge(Graphics g, int x, int y, int w, int h, boolean drawBroken, Rectangle selRect, boolean isContentBorderPainted) Draws the right edge of the Border around the content area.protected voidpaintFocusIndicator(Graphics g, Rectangle[] rects, int tabIndex, Rectangle iconRect, Rectangle textRect, boolean isSelected) Minimal decoration: no focus.protected voidpaintTabBackground(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(Graphics g, int tabIndex, int x, int y, int w, int h, boolean isSelected) Paints the border around the given tab.protected booleanshouldPadTabRun(int run, boolean aPriori) Returns if a run should be padded with empty space to take up as much room as the others.Methods inherited from class com.jgoodies.looks.plastic.PlasticTabbedPaneUI.AbstractRenderer
getTabLabelShiftX, getTabLabelShiftY, getTabsOverlay, isFirstDisplayedTab, paintContentBorderBottomEdge, paintContentBorderLeftEdge, paintContentBorderTopEdge
-
Constructor Details
-
RightEmbeddedRenderer
-
-
Method Details
-
getTabAreaInsets
- Overrides:
getTabAreaInsetsin classPlasticTabbedPaneUI.AbstractRenderer
-
getContentBorderInsets
- Overrides:
getContentBorderInsetsin 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
-
getTabRunOverlay
protected int getTabRunOverlay(int tabRunOverlay) Description copied from class:PlasticTabbedPaneUI.AbstractRendererReturns the amount of overlap for two Runs.- Overrides:
getTabRunOverlayin classPlasticTabbedPaneUI.AbstractRenderer
-
shouldPadTabRun
protected boolean shouldPadTabRun(int run, boolean aPriori) Description copied from class:PlasticTabbedPaneUI.AbstractRendererReturns if a run should be padded with empty space to take up as much room as the others.- Overrides:
shouldPadTabRunin classPlasticTabbedPaneUI.AbstractRenderer
-
getTabInsets
Description copied from class:PlasticTabbedPaneUI.AbstractRendererReturns the insets for the given tab.- Specified by:
getTabInsetsin classPlasticTabbedPaneUI.AbstractRenderer
-
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
-
paintFocusIndicator
protected void paintFocusIndicator(Graphics g, Rectangle[] rects, int tabIndex, Rectangle iconRect, Rectangle textRect, boolean isSelected) Minimal decoration: no focus.- Specified by:
paintFocusIndicatorin 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.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(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
-
paintContentBorderRightEdge
protected void paintContentBorderRightEdge(Graphics g, int x, int y, int w, int h, boolean drawBroken, Rectangle selRect, boolean isContentBorderPainted) Description copied from class:PlasticTabbedPaneUI.AbstractRendererDraws the right 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:
paintContentBorderRightEdgein classPlasticTabbedPaneUI.AbstractRenderer
-