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, lightHighlight, NORTH_INSETS, selectColor, selectHighlight, selectLight, shadowColor, SOUTH_INSETS, tabPane, tabPlacement, WEST_INSETS
-
-
Constructor Summary
Constructors Modifier Constructor Description private
RightEmbeddedRenderer(javax.swing.JTabbedPane tabPane)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.awt.Insets
getContentBorderInsets(java.awt.Insets defaultInsets)
protected java.awt.Insets
getSelectedTabPadInsets()
Returns additional the insets for the selected tab.protected java.awt.Insets
getTabAreaInsets(java.awt.Insets insets)
protected java.awt.Insets
getTabInsets(int tabIndex, java.awt.Insets tabInsets)
Returns the insets for the given tab.protected int
getTabRunIndent(int run)
Returns the amount by which the run numberrun
should be indented.protected int
getTabRunOverlay(int tabRunOverlay)
Returns the amount of overlap for two Runs.protected void
paintContentBorderRightEdge(java.awt.Graphics g, int x, int y, int w, int h, boolean drawBroken, java.awt.Rectangle selRect, boolean isContentBorderPainted)
Draws the right edge of the Border around the content area.protected void
paintFocusIndicator(java.awt.Graphics g, java.awt.Rectangle[] rects, int tabIndex, java.awt.Rectangle iconRect, java.awt.Rectangle textRect, boolean isSelected)
Minimal decoration: no focus.protected void
paintTabBackground(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 void
paintTabBorder(java.awt.Graphics g, int tabIndex, int x, int y, int w, int h, boolean isSelected)
Paints the border around the given tab.protected boolean
shouldPadTabRun(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
-
-
-
-
Method Detail
-
getTabAreaInsets
protected java.awt.Insets getTabAreaInsets(java.awt.Insets insets)
- Overrides:
getTabAreaInsets
in classPlasticTabbedPaneUI.AbstractRenderer
-
getContentBorderInsets
protected java.awt.Insets getContentBorderInsets(java.awt.Insets defaultInsets)
- Overrides:
getContentBorderInsets
in classPlasticTabbedPaneUI.AbstractRenderer
-
getTabRunIndent
protected int getTabRunIndent(int run)
Description copied from class:PlasticTabbedPaneUI.AbstractRenderer
Returns the amount by which the run numberrun
should be indented. Add a few pixels for every run to make diagonal lines align.- Overrides:
getTabRunIndent
in classPlasticTabbedPaneUI.AbstractRenderer
-
getTabRunOverlay
protected int getTabRunOverlay(int tabRunOverlay)
Description copied from class:PlasticTabbedPaneUI.AbstractRenderer
Returns the amount of overlap for two Runs.- Overrides:
getTabRunOverlay
in classPlasticTabbedPaneUI.AbstractRenderer
-
shouldPadTabRun
protected boolean shouldPadTabRun(int run, boolean aPriori)
Description copied from class:PlasticTabbedPaneUI.AbstractRenderer
Returns if a run should be padded with empty space to take up as much room as the others.- Overrides:
shouldPadTabRun
in classPlasticTabbedPaneUI.AbstractRenderer
-
getTabInsets
protected java.awt.Insets getTabInsets(int tabIndex, java.awt.Insets tabInsets)
Description copied from class:PlasticTabbedPaneUI.AbstractRenderer
Returns the insets for the given tab.- Specified by:
getTabInsets
in classPlasticTabbedPaneUI.AbstractRenderer
-
getSelectedTabPadInsets
protected java.awt.Insets 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(java.awt.Graphics g, java.awt.Rectangle[] rects, int tabIndex, java.awt.Rectangle iconRect, java.awt.Rectangle textRect, boolean isSelected)
Minimal decoration: no focus.- Specified by:
paintFocusIndicator
in 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.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(java.awt.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
-
paintContentBorderRightEdge
protected void paintContentBorderRightEdge(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.AbstractRenderer
Draws 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:
paintContentBorderRightEdge
in classPlasticTabbedPaneUI.AbstractRenderer
-
-