net.infonode.tabbedpanel
Class TabbedUIDefaults

java.lang.Object
  extended by net.infonode.tabbedpanel.TabbedUIDefaults

public class TabbedUIDefaults
extends java.lang.Object

Methods for retrieving UI defaults for the current "Look and Feel" from the UIManager. The values are adapted to be used with classes in the TabbedPanel package.

Version:
$Revision: 1.15 $
Author:
$Author: johan $

Field Summary
private static int BUTTON_ICON_SIZE
           
 
Constructor Summary
private TabbedUIDefaults()
           
 
Method Summary
static int getButtonIconSize()
          Gets the default icon size for buttons
static java.awt.Color getContentAreaBackground()
          Gets the content area background color
static java.awt.Insets getContentAreaInsets()
          Gets the insets for the content area
static java.awt.Color getDarkShadow()
          Gets the (border) dark shadow color
static java.awt.Color getDisabledBackground()
          Gets the tab disabled state background color
static java.awt.Color getDisabledForeground()
          Gets the tab disabled state foreground color
static java.awt.Font getFont()
          Gets the font
static java.awt.Color getHighlight()
          Gets the (border) highlight color
static java.awt.Color getHighlightedStateBackground()
          Gets the tab highlighted state backgound color
static java.awt.Color getHighlightedStateForeground()
          Gets the tab highlighted state foreground color
static int getIconTextGap()
          Gets the icon text gap
static java.awt.Color getNormalStateBackground()
          Gets the tab normal state background color
static java.awt.Color getNormalStateForeground()
          Gets the tab normal state foreground color
static java.awt.Insets getTabInsets()
          Gets the tab insets
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

BUTTON_ICON_SIZE

private static final int BUTTON_ICON_SIZE
See Also:
Constant Field Values
Constructor Detail

TabbedUIDefaults

private TabbedUIDefaults()
Method Detail

getContentAreaBackground

public static java.awt.Color getContentAreaBackground()
Gets the content area background color

Returns:
a copy of the color

getNormalStateForeground

public static java.awt.Color getNormalStateForeground()
Gets the tab normal state foreground color

Returns:
a copy of the color

getNormalStateBackground

public static java.awt.Color getNormalStateBackground()
Gets the tab normal state background color

Returns:
a copy of the color

getHighlightedStateForeground

public static java.awt.Color getHighlightedStateForeground()
Gets the tab highlighted state foreground color

Returns:
a copy of the color

getHighlightedStateBackground

public static java.awt.Color getHighlightedStateBackground()
Gets the tab highlighted state backgound color

Returns:
a copy of the color

getDisabledForeground

public static java.awt.Color getDisabledForeground()
Gets the tab disabled state foreground color

Returns:
a copy of the color

getDisabledBackground

public static java.awt.Color getDisabledBackground()
Gets the tab disabled state background color

Returns:
a copy of the color

getDarkShadow

public static java.awt.Color getDarkShadow()
Gets the (border) dark shadow color

Returns:
a copy of the color

getHighlight

public static java.awt.Color getHighlight()
Gets the (border) highlight color

Returns:
a copy of the color

getFont

public static java.awt.Font getFont()
Gets the font

Returns:
a copy of the font

getIconTextGap

public static int getIconTextGap()
Gets the icon text gap

Returns:
the icon text gap

getTabInsets

public static java.awt.Insets getTabInsets()
Gets the tab insets

Returns:
a copy of the insets

getContentAreaInsets

public static java.awt.Insets getContentAreaInsets()
Gets the insets for the content area

Returns:
a copy of the insets

getButtonIconSize

public static int getButtonIconSize()
Gets the default icon size for buttons

Returns:
icon size in pixels