private static final class PlasticTabbedPaneUI.RightRenderer 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 |
RightRenderer(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 |
getTabInsets(int tabIndex,
java.awt.Insets tabInsets)
Returns the insets for the given tab.
|
protected int |
getTabLabelShiftX(int tabIndex,
boolean isSelected)
Returns the amount by which the label should be shifted horizontally.
|
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)
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.
|
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.
|
getContentBorderInsets, getTabAreaInsets, getTabLabelShiftY, getTabRunIndent, getTabsOverlay, isFirstDisplayedTab, paintContentBorderBottomEdge, paintContentBorderLeftEdge, paintContentBorderTopEdgeprotected int getTabLabelShiftX(int tabIndex,
boolean isSelected)
PlasticTabbedPaneUI.AbstractRenderergetTabLabelShiftX in class PlasticTabbedPaneUI.AbstractRendererprotected int getTabRunOverlay(int tabRunOverlay)
PlasticTabbedPaneUI.AbstractRenderergetTabRunOverlay in class PlasticTabbedPaneUI.AbstractRendererprotected boolean shouldPadTabRun(int run,
boolean aPriori)
PlasticTabbedPaneUI.AbstractRenderershouldPadTabRun in class PlasticTabbedPaneUI.AbstractRendererprotected java.awt.Insets getTabInsets(int tabIndex,
java.awt.Insets tabInsets)
PlasticTabbedPaneUI.AbstractRenderergetTabInsets in class PlasticTabbedPaneUI.AbstractRendererprotected java.awt.Insets getSelectedTabPadInsets()
PlasticTabbedPaneUI.AbstractRenderergetSelectedTabPadInsets 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 paintContentBorderRightEdge(java.awt.Graphics g,
int x,
int y,
int w,
int h,
boolean drawBroken,
java.awt.Rectangle selRect,
boolean isContentBorderPainted)
PlasticTabbedPaneUI.AbstractRendererpaintContentBorderRightEdge in class PlasticTabbedPaneUI.AbstractRenderer