|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.infonode.tabbedpanel.theme.TabbedPanelTitledTabTheme
net.infonode.tabbedpanel.theme.ShapedGradientTheme
public class ShapedGradientTheme
A theme with tabs with rounded edges, gradient backgrounds and support for slopes on left/right side of tab.
Nested Class Summary | |
---|---|
private static class |
ShapedGradientTheme.TabBorder
|
Field Summary | |
---|---|
private ColorProvider |
alternateHighlight
|
private ColorProvider |
controlColor
|
private static int |
CORNER_INSET
|
private ColorProvider |
darkControlColor
|
private ColorProvider |
highlightColor
|
private int |
leftSlopeHeight
|
private ColorProvider |
lineColor
|
private int |
rightSlopeHeight
|
private TabbedPanelProperties |
tabbedPanelProperties
|
private TitledTabProperties |
titledTabProperties
|
Constructor Summary | |
---|---|
ShapedGradientTheme()
Creates a default theme with sloped border on the right side of the tab and with colors based on the active look and feel |
|
ShapedGradientTheme(float leftSlope,
float rightSlope)
Creates a theme with the given slopes on the left and right side of the tab and with colors based on the active look and feel |
|
ShapedGradientTheme(float leftSlope,
float rightSlope,
ColorProvider lineColor,
ColorProvider highlightColor)
Creates a theme with the given slopes on the left and right side of the tab and with the given colors |
|
ShapedGradientTheme(float leftSlope,
float rightSlope,
int slopeHeight,
ColorProvider lineColor,
ColorProvider highlightColor)
Creates a theme with the given slopes on the left and right side of the tab and with the given colors |
Method Summary | |
---|---|
javax.swing.border.Border |
createTabBorder(ColorProvider lineColor,
ColorProvider highlightColor,
float leftSlope,
float rightSlope,
boolean bottomLeftRounded,
boolean topLeftRounded,
boolean topRightRounded,
boolean bottomRightRounded,
boolean isNormal,
boolean highlightBottomLeftRounded,
int raised)
Creates a tab border |
ColorProvider |
getAlternateHighlightColor()
Gets the alternate highlight color provider used for tab area components gradient background and highlighted tab background (when no highlight color is specified) |
ColorProvider |
getControlColor()
Gets the control background color |
ColorProvider |
getDarkControlColor()
Gets the dark control background color used for gradient for normal tab and disabled tab |
ColorProvider |
getHighlightColor()
Gets the highlight color provider |
ColorProvider |
getLineColor()
Gets the line color provider |
java.lang.String |
getName()
Gets the theme name |
TabbedPanelProperties |
getTabbedPanelProperties()
Gets the TabbedPanelProperties for this theme |
TitledTabProperties |
getTitledTabProperties()
Gets the TitledTabProperties for this theme |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static final int CORNER_INSET
private ColorProvider highlightColor
private ColorProvider lineColor
private ColorProvider controlColor
private ColorProvider darkControlColor
private ColorProvider alternateHighlight
private int leftSlopeHeight
private int rightSlopeHeight
private TabbedPanelProperties tabbedPanelProperties
private TitledTabProperties titledTabProperties
Constructor Detail |
---|
public ShapedGradientTheme()
public ShapedGradientTheme(float leftSlope, float rightSlope)
leftSlope
- leaning of left slope defined as left slope width divided by left slope heightrightSlope
- leaning of right slope defined as right slope width divided by right slope heightpublic ShapedGradientTheme(float leftSlope, float rightSlope, ColorProvider lineColor, ColorProvider highlightColor)
leftSlope
- leaning of left slope defined as left slope width divided
by left slope heightrightSlope
- leaning of right slope defined as right slope width divided
by right slope heightlineColor
- color provider for the lineshighlightColor
- color provider for the highlighting, null for no highlightingpublic ShapedGradientTheme(float leftSlope, float rightSlope, int slopeHeight, ColorProvider lineColor, ColorProvider highlightColor)
leftSlope
- leaning of left slope defined as left slope width divided
by left slope heightrightSlope
- leaning of right slope defined as right slope width divided
by right slope heightslopeHeight
- slope height in pixels, used when estimating slope widthlineColor
- color provider for the lineshighlightColor
- color provider for the highlighting, null for no highlightingMethod Detail |
---|
public java.lang.String getName()
getName
in class TabbedPanelTitledTabTheme
public TabbedPanelProperties getTabbedPanelProperties()
getTabbedPanelProperties
in class TabbedPanelTitledTabTheme
public TitledTabProperties getTitledTabProperties()
getTitledTabProperties
in class TabbedPanelTitledTabTheme
public ColorProvider getLineColor()
public ColorProvider getHighlightColor()
public ColorProvider getAlternateHighlightColor()
public ColorProvider getControlColor()
public ColorProvider getDarkControlColor()
public javax.swing.border.Border createTabBorder(ColorProvider lineColor, ColorProvider highlightColor, float leftSlope, float rightSlope, boolean bottomLeftRounded, boolean topLeftRounded, boolean topRightRounded, boolean bottomRightRounded, boolean isNormal, boolean highlightBottomLeftRounded, int raised)
lineColor
- line color providerhighlightColor
- highlight color provider, null for no highlightleftSlope
- left sloperightSlope
- right slopebottomLeftRounded
- true if bottom left should be roundedtopLeftRounded
- true if top left should be roundedtopRightRounded
- true if top right should be roundedbottomRightRounded
- true if bottom right should be roundedisNormal
- true if this is a normal rendered borderhighlightBottomLeftRounded
- true if highlight has bottom left roundedraised
- raised
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |