net.infonode.docking.theme
Class ShapedGradientDockingTheme

java.lang.Object
  extended bynet.infonode.docking.theme.DockingWindowsTheme
      extended bynet.infonode.docking.theme.ShapedGradientDockingTheme

public class ShapedGradientDockingTheme
extends DockingWindowsTheme

A theme with tabs with rounded edges, gradient backgrounds and support for slopes on left/right side of tab.

Since:
IDW 1.2.0
Version:
$Revision: 1.26 $

Constructor Summary
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(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
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
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
 
Method Summary
 String getName()
          Gets the theme name
 RootWindowProperties getRootWindowProperties()
          Gets the theme RootWindowProperties
 
Methods inherited from class net.infonode.docking.theme.DockingWindowsTheme
toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

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 height
rightSlope - 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 height
rightSlope - leaning of right slope defined as right slope width divided by right slope height
lineColor - color provider for the lines
highlightColor - color provider for the highlighting, null for no highlighting
focusHighlighterEnabled - 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 height
rightSlope - leaning of right slope defined as right slope width divided by right slope height
slopeHeight - slope height in pixels, used when estimating slope width
lineColor - color provider for the lines
highlightColor - color provider for the highlighting, null for no highlighting
focusHighlighterEnabled - if true the currently focused tab is highlighted
Method Detail

getName

public String getName()
Gets the theme name

Specified by:
getName in class DockingWindowsTheme
Returns:
name

getRootWindowProperties

public RootWindowProperties getRootWindowProperties()
Gets the theme RootWindowProperties

Specified by:
getRootWindowProperties in class DockingWindowsTheme
Returns:
the RootWindowProperties


Copyright © 2007 NNL Technology AB. All Rights Reserved.