Package net.infonode.docking.theme
Class ShapedGradientDockingTheme
java.lang.Object
net.infonode.docking.theme.DockingWindowsTheme
net.infonode.docking.theme.ShapedGradientDockingTheme
A theme with tabs with rounded edges, gradient backgrounds and support for
slopes on left/right side of tab.
- Since:
- IDW 1.2.0
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a default theme with sloped border on the right side of the tab (excluding tabs on window bars) and with colors based on the active look and feelShapedGradientDockingTheme
(float leftSlope, float rightSlope) Creates a theme with the given slopes on the left and right side of the tab (excluding tabs on window bars) and with colors based on the active look and feelShapedGradientDockingTheme
(float leftSlope, float rightSlope, int slopeHeight, ColorProvider lineColor, ColorProvider highlightColor, boolean focusHighlighterEnabled) Creates a theme with the given slopes on the left and right side of the tab (excluding tabs on window bars) and with the given colorsShapedGradientDockingTheme
(float leftSlope, float rightSlope, ColorProvider lineColor, ColorProvider highlightColor, boolean focusHighlighterEnabled) Creates a theme with the given slopes on the left and right side of the tab (excluding tabs on window bars) and with the given colors -
Method Summary
Modifier and TypeMethodDescriptiongetName()
Gets the theme nameGets the theme RootWindowPropertiesMethods inherited from class net.infonode.docking.theme.DockingWindowsTheme
toString
-
Constructor Details
-
ShapedGradientDockingTheme
public ShapedGradientDockingTheme()Creates a default theme with sloped border on the right side of the tab (excluding tabs on window bars) and with colors based on the active look and feel -
ShapedGradientDockingTheme
public ShapedGradientDockingTheme(float leftSlope, float rightSlope) Creates a theme with the given slopes on the left and right side of the tab (excluding tabs on window bars) and with colors based on the active look and feel- Parameters:
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 height
-
ShapedGradientDockingTheme
public ShapedGradientDockingTheme(float leftSlope, float rightSlope, ColorProvider lineColor, ColorProvider highlightColor, boolean focusHighlighterEnabled) Creates a theme with the given slopes on the left and right side of the tab (excluding tabs on window bars) and with the given colors- Parameters:
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 highlightingfocusHighlighterEnabled
- if true the currently focused tab is highlighted
-
ShapedGradientDockingTheme
public ShapedGradientDockingTheme(float leftSlope, float rightSlope, int slopeHeight, ColorProvider lineColor, ColorProvider highlightColor, boolean focusHighlighterEnabled) Creates a theme with the given slopes on the left and right side of the tab (excluding tabs on window bars) and with the given colors- Parameters:
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 highlightingfocusHighlighterEnabled
- if true the currently focused tab is highlighted
-
-
Method Details
-
getName
Gets the theme name- Specified by:
getName
in classDockingWindowsTheme
- Returns:
- name
-
getRootWindowProperties
Gets the theme RootWindowProperties- Specified by:
getRootWindowProperties
in classDockingWindowsTheme
- Returns:
- the RootWindowProperties
-