private static final class PlasticTabbedPaneUI.BottomRenderer extends PlasticTabbedPaneUI.AbstractRenderer
darkShadow, EAST_INSETS, EMPTY_INSETS, focus, lightHighlight, NORTH_INSETS, selectColor, selectHighlight, selectLight, shadowColor, SOUTH_INSETS, tabPane, tabPlacement, WEST_INSETS| Modifier | Constructor and Description |
|---|---|
private |
BottomRenderer(javax.swing.JTabbedPane tabPane) |
| Modifier and Type | Method and Description |
|---|---|
protected java.awt.Insets |
getSelectedTabPadInsets()
Returns additional the insets for the selected tab.
|
protected java.awt.Insets |
getTabAreaInsets(java.awt.Insets defaultInsets) |
protected java.awt.Insets |
getTabInsets(int tabIndex,
java.awt.Insets tabInsets)
Returns the insets for the given tab.
|
protected int |
getTabLabelShiftY(int tabIndex,
boolean isSelected)
Returns the amount by which the label should be shifted vertically.
|
protected int |
getTabRunIndent(int run)
Returns the amount by which the run number
run
should be indented. |
protected int |
getTabRunOverlay(int tabRunOverlay)
Returns the amount of overlap for two Runs.
|
protected int |
getTabsOverlay()
Returns the amount of overlap for two tabs.
|
protected void |
paintContentBorderBottomEdge(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 void |
paintFocusIndicator(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 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.
|
getContentBorderInsets, getTabLabelShiftX, isFirstDisplayedTab, paintContentBorderLeftEdge, paintContentBorderRightEdge, paintContentBorderTopEdge, shouldPadTabRunprotected java.awt.Insets getTabAreaInsets(java.awt.Insets defaultInsets)
getTabAreaInsets in class PlasticTabbedPaneUI.AbstractRendererprotected int getTabLabelShiftY(int tabIndex,
boolean isSelected)
PlasticTabbedPaneUI.AbstractRenderergetTabLabelShiftY in class PlasticTabbedPaneUI.AbstractRendererprotected int getTabRunOverlay(int tabRunOverlay)
PlasticTabbedPaneUI.AbstractRenderergetTabRunOverlay in class PlasticTabbedPaneUI.AbstractRendererprotected int getTabRunIndent(int run)
PlasticTabbedPaneUI.AbstractRendererrun
should be indented. Add a few pixels for every run to make
diagonal lines align.getTabRunIndent in class PlasticTabbedPaneUI.AbstractRendererprotected java.awt.Insets getSelectedTabPadInsets()
PlasticTabbedPaneUI.AbstractRenderergetSelectedTabPadInsets in class PlasticTabbedPaneUI.AbstractRendererprotected java.awt.Insets getTabInsets(int tabIndex,
java.awt.Insets tabInsets)
PlasticTabbedPaneUI.AbstractRenderergetTabInsets in class PlasticTabbedPaneUI.AbstractRendererprotected void paintFocusIndicator(java.awt.Graphics g,
java.awt.Rectangle[] rects,
int tabIndex,
java.awt.Rectangle iconRect,
java.awt.Rectangle textRect,
boolean isSelected)
PlasticTabbedPaneUI.AbstractRendererpaintFocusIndicator in class PlasticTabbedPaneUI.AbstractRendererprotected void paintTabBackground(java.awt.Graphics g,
int tabIndex,
int x,
int y,
int w,
int h,
boolean isSelected)
PlasticTabbedPaneUI.AbstractRendererpaintTabBackground in class PlasticTabbedPaneUI.AbstractRendererprotected void paintTabBorder(java.awt.Graphics g,
int tabIndex,
int x,
int y,
int w,
int h,
boolean isSelected)
PlasticTabbedPaneUI.AbstractRendererpaintTabBorder in class PlasticTabbedPaneUI.AbstractRendererprotected void paintContentBorderBottomEdge(java.awt.Graphics g,
int x,
int y,
int w,
int h,
boolean drawBroken,
java.awt.Rectangle selRect,
boolean isContentBorderPainted)
PlasticTabbedPaneUI.AbstractRendererpaintContentBorderBottomEdge in class PlasticTabbedPaneUI.AbstractRendererprotected int getTabsOverlay()
PlasticTabbedPaneUI.AbstractRenderergetTabsOverlay in class PlasticTabbedPaneUI.AbstractRenderer