public class ShapedGradientTheme extends TabbedPanelTitledTabTheme
Constructor and Description |
---|
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
|
Modifier and Type | Method and Description |
---|---|
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
|
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 highlightingpublic 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