net.infonode.gui.laf
Class InfoNodeLookAndFeelTheme

java.lang.Object
  extended by net.infonode.gui.laf.InfoNodeLookAndFeelTheme

public class InfoNodeLookAndFeelTheme
extends java.lang.Object

A theme for InfoNode look and feel. The theme infers some default colors from others, so modifying a color might affect other, unmodified colors.

Version:
$Revision: 1.16 $
Author:
$Author: jesper $

Field Summary
private  ColorValue activeInternalFrameTitleBackgroundColor
           
private  ColorValue activeInternalFrameTitleForegroundColor
           
private  ColorValue activeInternalFrameTitleGradientColor
           
private  ColorValue backgroundColor
           
private  javax.swing.plaf.FontUIResource boldFont
           
private  javax.swing.plaf.InsetsUIResource buttonMargin
           
private  ColorValue controlColor
           
private  javax.swing.plaf.ColorUIResource controlDarkShadowColor
           
private  javax.swing.plaf.ColorUIResource controlHighlightColor
           
private  javax.swing.plaf.ColorUIResource controlLightShadowColor
           
private  javax.swing.plaf.ColorUIResource controlShadowColor
           
static java.awt.Color DEFAULT_BACKGROUND_COLOR
           
static java.awt.Color DEFAULT_CONTROL_COLOR
           
static java.awt.Color DEFAULT_DESKTOP_COLOR
           
static int DEFAULT_FONT_SIZE
           
static java.awt.Color DEFAULT_PRIMARY_CONTROL_COLOR
           
static java.awt.Color DEFAULT_SELECTED_BACKGROUND_COLOR
           
static java.awt.Color DEFAULT_SELECTED_TEXT_COLOR
           
static java.awt.Color DEFAULT_TEXT_COLOR
           
static java.awt.Color DEFAULT_TOOLTIP_BACKGROUND_COLOR
           
static java.awt.Color DEFAULT_TOOLTIP_FOREGROUND_COLOR
           
private  ColorValue desktopColor
           
private  ColorValue focusColor
           
private  javax.swing.plaf.FontUIResource font
           
private static java.lang.String[] FONT_NAMES
           
private  ColorValue inactiveInternalFrameTitleBackgroundColor
           
private  ColorValue inactiveInternalFrameTitleForegroundColor
           
private  ColorValue inactiveInternalFrameTitleGradientColor
           
private  ColorValue inactiveTextColor
           
private  javax.swing.plaf.BorderUIResource internalFrameBorder
           
private  javax.swing.plaf.IconUIResource internalFrameCloseIcon
           
private  javax.swing.plaf.IconUIResource internalFrameIcon
           
private  javax.swing.plaf.IconUIResource internalFrameIconifyIcon
           
private  javax.swing.plaf.IconUIResource internalFrameMaximizeIcon
           
private  javax.swing.plaf.IconUIResource internalFrameMinimizeIcon
           
private  FontValue internalFrameTitleFont
           
private  BorderValue listFocusedItemBorder
           
private  BorderValue listItemBorder
           
private  BorderValue menuBarBorder
           
private  java.lang.String name
           
private  FontValue optionPaneButtonFont
           
private  BorderValue popupMenuBorder
           
private static float PRIMARY_BRIGHTNESS
           
private static float PRIMARY_HUE
           
private static float PRIMARY_SATURATION
           
private  ColorValue primaryControlColor
           
private  javax.swing.plaf.ColorUIResource primaryControlDarkShadowColor
           
private  javax.swing.plaf.ColorUIResource primaryControlHighlightColor
           
private  javax.swing.plaf.ColorUIResource primaryControlShadowColor
           
private  ColorValue scrollBarBackgroundColor
           
private  javax.swing.plaf.ColorUIResource scrollBarBackgroundShadowColor
           
private  int scrollBarWidth
           
private  ColorValue selectedMenuBackgroundColor
           
private  ColorValue selectedMenuForegroundColor
           
private  ColorValue selectedTextBackgroundColor
           
private  ColorValue selectedTextColor
           
private  double shadingFactor
           
private  int splitPaneDividerSize
           
private  BorderValue tableHeaderCellBorder
           
private  ColorValue textColor
           
private  BorderValue textFieldBorder
           
private  ColorValue tooltipBackgroundColor
           
private  ColorValue tooltipForegroundColor
           
private  javax.swing.plaf.IconUIResource treeClosedIcon
           
private  ColorValue treeIconBackgroundColor
           
private  javax.swing.plaf.IconUIResource treeLeafIcon
           
private  javax.swing.plaf.IconUIResource treeOpenIcon
           
 
Constructor Summary
InfoNodeLookAndFeelTheme()
          Creates a default InfoNode look and feel theme.
InfoNodeLookAndFeelTheme(java.lang.String name, java.awt.Color controlColor, java.awt.Color primaryControlColor, java.awt.Color backgroundColor, java.awt.Color textColor)
          Creates a theme with custom colors.
InfoNodeLookAndFeelTheme(java.lang.String name, java.awt.Color controlColor, java.awt.Color primaryControlColor, java.awt.Color backgroundColor, java.awt.Color textColor, java.awt.Color selectedBackgroundColor, java.awt.Color selectedTextColor)
          Creates a theme with custom colors.
InfoNodeLookAndFeelTheme(java.lang.String name, java.awt.Color controlColor, java.awt.Color primaryControlColor, java.awt.Color backgroundColor, java.awt.Color textColor, java.awt.Color selectedBackgroundColor, java.awt.Color selectedTextColor, double shadingFactor)
          Creates a theme with custom colors.
 
Method Summary
 javax.swing.plaf.ColorUIResource getActiveInternalFrameTitleBackgroundColor()
          Gets the background color for active JInternalFrame's.
 javax.swing.plaf.ColorUIResource getActiveInternalFrameTitleForegroundColor()
          Gets the foreground color for active JInternalFrame's.
 javax.swing.plaf.ColorUIResource getActiveInternalFrameTitleGradientColor()
          Gets the gradient color for active JInternalFrame's.
 javax.swing.plaf.ColorUIResource getBackgroundColor()
          Gets the background color for JViewport, JTree, JTable etc.
 javax.swing.plaf.InsetsUIResource getButtonMargin()
          Gets the margin of a JButton.
 javax.swing.plaf.ColorUIResource getControlColor()
          Gets the background color used for JComponent.
 javax.swing.plaf.ColorUIResource getControlDarkShadowColor()
          Gets the control dark shadow color.
 javax.swing.plaf.ColorUIResource getControlHighlightColor()
          Gets the control highlight color.
 javax.swing.plaf.ColorUIResource getControlLightShadowColor()
          Gets the control light shadow color.
 javax.swing.plaf.ColorUIResource getControlShadowColor()
          Gets the control shadow color.
 javax.swing.plaf.ColorUIResource getDesktopColor()
          Gets the desktop color used in JDesktopPane etc.
 javax.swing.plaf.ColorUIResource getFocusColor()
          Gets the control focus marker color.
 javax.swing.plaf.FontUIResource getFont()
          Returns the base font.
 javax.swing.plaf.ColorUIResource getInactiveInternalFrameTitleBackgroundColor()
          Gets the background color for inactive JInternalFrame's.
 javax.swing.plaf.ColorUIResource getInactiveInternalFrameTitleForegroundColor()
          Gets the foreground color for inactive JInternalFrame's.
 javax.swing.plaf.ColorUIResource getInactiveInternalFrameTitleGradientColor()
          Gets the gradient color for inactive JInternalFrame's.
 javax.swing.plaf.ColorUIResource getInactiveTextColor()
          Gets the color used for inactive text.
 javax.swing.plaf.BorderUIResource getInternalFrameBorder()
          Gets the border used around JInternalFrame's.
 javax.swing.plaf.IconUIResource getInternalFrameCloseIcon()
          Gets the icon used in the close button in the title bar of JInternalFrame's.
 javax.swing.plaf.IconUIResource getInternalFrameIcon()
          Gets the icon to the left in the title bar of JInternalFrame's.
 javax.swing.plaf.IconUIResource getInternalFrameIconifyIcon()
          Gets the icon used in the iconify button in the title of a JInternalFrame.
 javax.swing.plaf.IconUIResource getInternalFrameMaximizeIcon()
          Gets the icon used in the maximize button in the title bar of JInternalFrame's.
 javax.swing.plaf.IconUIResource getInternalFrameMinimizeIcon()
          Gets the icon used in the minimize button in the title bar of JInternalFrame's.
 javax.swing.plaf.FontUIResource getInternalFrameTitleFont()
          Gets the font used in the title of JInternalFrame's.
 javax.swing.plaf.BorderUIResource getListFocusedItemBorder()
          Gets the border used around the focused list item in JList's and JComboBox's.
 javax.swing.plaf.BorderUIResource getListItemBorder()
          Gets the border used around list items in JList's and JComboBox's.
 javax.swing.plaf.BorderUIResource getMenuBarBorder()
          Gets the border used around JMenuBar's.
 java.lang.String getName()
          Returns the theme name.
 javax.swing.plaf.FontUIResource getOptionPaneButtonFont()
          Gets the font used in JOptionPane buttons.
 javax.swing.plaf.BorderUIResource getPopupMenuBorder()
          Gets the border of a JPopupMenu.
 javax.swing.plaf.ColorUIResource getPrimaryControlColor()
          Gets the color of scrollbar "knobs" etc.
 javax.swing.plaf.ColorUIResource getPrimaryControlDarkShadowColor()
          Gets the primary control dark shadow color.
 javax.swing.plaf.ColorUIResource getPrimaryControlHighlightColor()
          Gets the primary control highlight color.
 javax.swing.plaf.ColorUIResource getPrimaryControlShadowColor()
          Gets the primary control shadow color.
 javax.swing.plaf.ColorUIResource getScrollBarBackgroundColor()
          Gets the background color for JScrollBar's.
 javax.swing.plaf.ColorUIResource getScrollBarBackgroundShadowColor()
          Gets the background shadow color for JScrollBar's.
 int getScrollBarWidth()
          Gets the width of a JScrollBar.
 javax.swing.plaf.ColorUIResource getSelectedMenuBackgroundColor()
          Gets the background color used for selected JMenuItem's.
 javax.swing.plaf.ColorUIResource getSelectedMenuForegroundColor()
          Gets the foreground color used for selected JMenuItem's.
 javax.swing.plaf.ColorUIResource getSelectedTextBackgroundColor()
          Gets the selected text background color.
 javax.swing.plaf.ColorUIResource getSelectedTextColor()
          Gets the selected text color.
 double getShadingFactor()
          Returns the shading factor.
 int getSplitPaneDividerSize()
          Gets the size of the JSplitPane divider.
 javax.swing.plaf.BorderUIResource getTableHeaderCellBorder()
          Gets the border around cells in JTableHeader's.
 javax.swing.plaf.ColorUIResource getTextColor()
          Gets the text color.
 javax.swing.plaf.BorderUIResource getTextFieldBorder()
          Gets the border used around JTextField (including spinners etc.).
 javax.swing.plaf.ColorUIResource getTooltipBackgroundColor()
          Gets the background color for JToolTip.
 javax.swing.plaf.ColorUIResource getTooltipForegroundColor()
          Gets the background color used in JToolTip.
 javax.swing.plaf.IconUIResource getTreeClosedIcon()
          Gets the icon used with closed nodes in a JTree.
 javax.swing.plaf.ColorUIResource getTreeIconBackgroundColor()
          Gets the background color used for collapse and expand icons in a JTree.
 javax.swing.plaf.IconUIResource getTreeLeafIcon()
          Gets the icon used with leaf nodes in a JTree.
 javax.swing.plaf.IconUIResource getTreeOpenIcon()
          Gets the icon used with open nodes in a JTree.
 void setActiveInternalFrameTitleBackgroundColor(java.awt.Color activeInternalFrameTitleBackgroundColor)
          Sets the background color for the title of an active JInternalFrame.
 void setActiveInternalFrameTitleForegroundColor(java.awt.Color activeInternalFrameTitleForegroundColor)
          Sets the foreground color for the title of an active JInternalFrame.
 void setActiveInternalFrameTitleGradientColor(java.awt.Color activeInternalFrameTitleGradientColor)
          Sets the gradient color for the title of an active JInternalFrame.
 void setBackgroundColor(java.awt.Color c)
          Sets the background color used in JViewport, JTree, JTable etc.
 void setButtonMargin(javax.swing.plaf.InsetsUIResource buttonMargin)
          Sets the margin of a JButton.
 void setControlColor(java.awt.Color color)
          Sets the background color for JComponent's.
 void setDesktopColor(java.awt.Color desktopColor)
          Sets the background color for a JDesktopPane.
 void setFocusColor(java.awt.Color focusColor)
          Sets the focus marker color.
 void setFont(javax.swing.plaf.FontUIResource font)
          Sets the base font.
 void setInactiveInternalFrameTitleBackgroundColor(java.awt.Color inactiveInternalFrameTitleBackgroundColor)
          Sets the background color for the title of an inactive JInternalFrame.
 void setInactiveInternalFrameTitleForegroundColor(java.awt.Color inactiveInternalFrameTitleForegroundColor)
          Sets the foreground color for the title of an inactive JInternalFrame.
 void setInactiveInternalFrameTitleGradientColor(java.awt.Color inactiveInternalFrameTitleGradientColor)
          Sets the gradient color for the title of an inactive JInternalFrame.
 void setInactiveTextColor(java.awt.Color inactiveTextColor)
          Sets the inactive text color.
 void setInternalFrameBorder(javax.swing.plaf.BorderUIResource internalFrameBorder)
          Sets the border used around JInternalFrame's.
 void setInternalFrameCloseIcon(javax.swing.plaf.IconUIResource internalFrameCloseIcon)
          Sets the icon used in the close button in the title bar of JInternalFrame's.
 void setInternalFrameIcon(javax.swing.plaf.IconUIResource internalFrameIcon)
          Sets the icon to the left in the title bar of JInternalFrame's.
 void setInternalFrameIconifyIcon(javax.swing.plaf.IconUIResource internalFrameIconifyIcon)
          Sets the icon used in the iconify button in the title of a JInternalFrame.
 void setInternalFrameMaximizeIcon(javax.swing.plaf.IconUIResource internalFrameMaximizeIcon)
          Sets the icon used in the maximize button in the title bar of JInternalFrame's.
 void setInternalFrameMinimizeIcon(javax.swing.plaf.IconUIResource internalFrameMinimizeIcon)
          Sets the icon used in the minimize button in the title bar of JInternalFrame's.
 void setInternalFrameTitleFont(java.awt.Font frameTitleFont)
          Sets the title font of an JInternalFrame.
 void setInternalFrameTitleFont(javax.swing.plaf.FontUIResource internalFrameTitleFont)
          Sets the font used in the title of JInternalFrame's.
 void setListFocusedItemBorder(javax.swing.plaf.BorderUIResource listFocusedItemBorder)
          Sets the border used around the focused list item in JList's and JComboBox's.
 void setListItemBorder(javax.swing.plaf.BorderUIResource listItemBorder)
          Sets the border used around list items in JList's and JComboBox's.
 void setMenuBarBorder(javax.swing.plaf.BorderUIResource menuBarBorder)
          Sets the border used around JMenuBar's.
 void setOptionPaneButtonFont(java.awt.Font optionPaneButtonFont)
          Sets the button font for a JOptionPane.
 void setOptionPaneButtonFont(javax.swing.plaf.FontUIResource optionPaneButtonFont)
          Sets the font used in JOptionPane buttons.
 void setPopupMenuBorder(javax.swing.plaf.BorderUIResource popupMenuBorder)
          Sets the border of a JPopupMenu.
 void setPrimaryControlColor(java.awt.Color c)
          Sets the primary control background color used in scroll bar knobs etc.
 void setScrollBarBackgroundColor(java.awt.Color scrollBarBackgroundColor)
          Sets the JScrollBar background color.
 void setScrollBarWidth(int scrollBarWidth)
          Sets the width of a JScrollBar.
 void setSelectedMenuBackgroundColor(java.awt.Color selectedMenuBackgroundColor)
          Sets the background color for a selected menu item.
 void setSelectedMenuForegroundColor(java.awt.Color selectedMenuForegroundColor)
          Sets the foreground color for a selected menu item.
 void setSelectedTextBackgroundColor(java.awt.Color selectedTextBackgroundColor)
          Sets the selected text background color.
 void setSelectedTextColor(java.awt.Color selectedTextColor)
          Sets the selected text color.
 void setShadingFactor(double shadingFactor)
          Sets the shading factor.
 void setSplitPaneDividerSize(int splitPaneDividerSize)
          Sets the size of the JSplitPane divider.
 void setTableHeaderCellBorder(javax.swing.plaf.BorderUIResource tableHeaderCellBorder)
          Sets the border for the cells of a JTableHeader.
 void setTextColor(java.awt.Color c)
          Sets the text color.
 void setTextFieldBorder(javax.swing.plaf.BorderUIResource textFieldBorder)
          Sets the border used around JTextField (including spinners etc.).
 void setTooltipBackgroundColor(java.awt.Color tooltipBackgroundColor)
          Sets the tooltip background color.
 void setTooltipForegroundColor(javax.swing.plaf.ColorUIResource tooltipForegroundColor)
          Sets the foreground color used in JToolTip.
 void setTreeClosedIcon(javax.swing.plaf.IconUIResource treeClosedIcon)
          Sets the icon used with closed nodes in a JTree.
 void setTreeIconBackgroundColor(java.awt.Color treeIconBackgroundColor)
          Sets the background color for the expand/collapse icons in a JTree.
 void setTreeLeafIcon(javax.swing.plaf.IconUIResource treeLeafIcon)
          Sets the icon used with leaf nodes in a JTree.
 void setTreeOpenIcon(javax.swing.plaf.IconUIResource treeOpenIcon)
          Sets the icon used with open nodes in a JTree.
private  void updateColors()
           
private  void updateFonts()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PRIMARY_HUE

private static final float PRIMARY_HUE
See Also:
Constant Field Values

PRIMARY_SATURATION

private static final float PRIMARY_SATURATION
See Also:
Constant Field Values

PRIMARY_BRIGHTNESS

private static final float PRIMARY_BRIGHTNESS
See Also:
Constant Field Values

DEFAULT_CONTROL_COLOR

public static final java.awt.Color DEFAULT_CONTROL_COLOR

DEFAULT_PRIMARY_CONTROL_COLOR

public static final java.awt.Color DEFAULT_PRIMARY_CONTROL_COLOR

DEFAULT_BACKGROUND_COLOR

public static final java.awt.Color DEFAULT_BACKGROUND_COLOR

DEFAULT_TEXT_COLOR

public static final java.awt.Color DEFAULT_TEXT_COLOR

DEFAULT_SELECTED_BACKGROUND_COLOR

public static final java.awt.Color DEFAULT_SELECTED_BACKGROUND_COLOR

DEFAULT_SELECTED_TEXT_COLOR

public static final java.awt.Color DEFAULT_SELECTED_TEXT_COLOR

DEFAULT_TOOLTIP_BACKGROUND_COLOR

public static final java.awt.Color DEFAULT_TOOLTIP_BACKGROUND_COLOR

DEFAULT_TOOLTIP_FOREGROUND_COLOR

public static final java.awt.Color DEFAULT_TOOLTIP_FOREGROUND_COLOR

DEFAULT_DESKTOP_COLOR

public static final java.awt.Color DEFAULT_DESKTOP_COLOR

DEFAULT_FONT_SIZE

public static final int DEFAULT_FONT_SIZE
See Also:
Constant Field Values

FONT_NAMES

private static final java.lang.String[] FONT_NAMES

font

private javax.swing.plaf.FontUIResource font

boldFont

private javax.swing.plaf.FontUIResource boldFont

controlColor

private ColorValue controlColor

primaryControlColor

private ColorValue primaryControlColor

backgroundColor

private ColorValue backgroundColor

textColor

private ColorValue textColor

selectedTextBackgroundColor

private ColorValue selectedTextBackgroundColor

focusColor

private ColorValue focusColor

selectedTextColor

private ColorValue selectedTextColor

tooltipBackgroundColor

private ColorValue tooltipBackgroundColor

tooltipForegroundColor

private ColorValue tooltipForegroundColor

desktopColor

private ColorValue desktopColor

treeIconBackgroundColor

private ColorValue treeIconBackgroundColor

selectedMenuBackgroundColor

private ColorValue selectedMenuBackgroundColor

selectedMenuForegroundColor

private ColorValue selectedMenuForegroundColor

inactiveTextColor

private ColorValue inactiveTextColor

controlHighlightColor

private javax.swing.plaf.ColorUIResource controlHighlightColor

controlLightShadowColor

private javax.swing.plaf.ColorUIResource controlLightShadowColor

controlShadowColor

private javax.swing.plaf.ColorUIResource controlShadowColor

controlDarkShadowColor

private javax.swing.plaf.ColorUIResource controlDarkShadowColor

primaryControlHighlightColor

private javax.swing.plaf.ColorUIResource primaryControlHighlightColor

primaryControlShadowColor

private javax.swing.plaf.ColorUIResource primaryControlShadowColor

primaryControlDarkShadowColor

private javax.swing.plaf.ColorUIResource primaryControlDarkShadowColor

scrollBarBackgroundColor

private ColorValue scrollBarBackgroundColor

scrollBarBackgroundShadowColor

private javax.swing.plaf.ColorUIResource scrollBarBackgroundShadowColor

activeInternalFrameTitleBackgroundColor

private ColorValue activeInternalFrameTitleBackgroundColor

activeInternalFrameTitleGradientColor

private ColorValue activeInternalFrameTitleGradientColor

activeInternalFrameTitleForegroundColor

private ColorValue activeInternalFrameTitleForegroundColor

inactiveInternalFrameTitleBackgroundColor

private ColorValue inactiveInternalFrameTitleBackgroundColor

inactiveInternalFrameTitleGradientColor

private ColorValue inactiveInternalFrameTitleGradientColor

inactiveInternalFrameTitleForegroundColor

private ColorValue inactiveInternalFrameTitleForegroundColor

internalFrameIcon

private javax.swing.plaf.IconUIResource internalFrameIcon

internalFrameIconifyIcon

private javax.swing.plaf.IconUIResource internalFrameIconifyIcon

internalFrameMinimizeIcon

private javax.swing.plaf.IconUIResource internalFrameMinimizeIcon

internalFrameMaximizeIcon

private javax.swing.plaf.IconUIResource internalFrameMaximizeIcon

internalFrameCloseIcon

private javax.swing.plaf.IconUIResource internalFrameCloseIcon

internalFrameBorder

private javax.swing.plaf.BorderUIResource internalFrameBorder

internalFrameTitleFont

private FontValue internalFrameTitleFont

optionPaneButtonFont

private FontValue optionPaneButtonFont

treeOpenIcon

private javax.swing.plaf.IconUIResource treeOpenIcon

treeClosedIcon

private javax.swing.plaf.IconUIResource treeClosedIcon

treeLeafIcon

private javax.swing.plaf.IconUIResource treeLeafIcon

menuBarBorder

private BorderValue menuBarBorder

popupMenuBorder

private BorderValue popupMenuBorder

tableHeaderCellBorder

private BorderValue tableHeaderCellBorder

textFieldBorder

private BorderValue textFieldBorder

listItemBorder

private BorderValue listItemBorder

listFocusedItemBorder

private BorderValue listFocusedItemBorder

splitPaneDividerSize

private int splitPaneDividerSize

scrollBarWidth

private int scrollBarWidth

buttonMargin

private javax.swing.plaf.InsetsUIResource buttonMargin

shadingFactor

private double shadingFactor

name

private java.lang.String name
Constructor Detail

InfoNodeLookAndFeelTheme

public InfoNodeLookAndFeelTheme()
Creates a default InfoNode look and feel theme.


InfoNodeLookAndFeelTheme

public InfoNodeLookAndFeelTheme(java.lang.String name,
                                java.awt.Color controlColor,
                                java.awt.Color primaryControlColor,
                                java.awt.Color backgroundColor,
                                java.awt.Color textColor)
Creates a theme with custom colors.

Parameters:
name - the name of this theme
controlColor - the background color for buttons, labels etc.
primaryControlColor - the color of scrollbar "knobs", text and menu selection background
backgroundColor - the background color for viewports, tree's, tables etc.
textColor - the text color

InfoNodeLookAndFeelTheme

public InfoNodeLookAndFeelTheme(java.lang.String name,
                                java.awt.Color controlColor,
                                java.awt.Color primaryControlColor,
                                java.awt.Color backgroundColor,
                                java.awt.Color textColor,
                                java.awt.Color selectedBackgroundColor,
                                java.awt.Color selectedTextColor)
Creates a theme with custom colors.

Parameters:
name - the name of this theme
controlColor - the background color for buttons, labels etc.
primaryControlColor - the color of scrollbar "knobs"
backgroundColor - the background color for viewports, tree's, tables etc.
textColor - the text color
selectedBackgroundColor - the background color for selected text, selected menu items
selectedTextColor - the text color for selected text, selected menu items

InfoNodeLookAndFeelTheme

public InfoNodeLookAndFeelTheme(java.lang.String name,
                                java.awt.Color controlColor,
                                java.awt.Color primaryControlColor,
                                java.awt.Color backgroundColor,
                                java.awt.Color textColor,
                                java.awt.Color selectedBackgroundColor,
                                java.awt.Color selectedTextColor,
                                double shadingFactor)
Creates a theme with custom colors.

Parameters:
name - the name of this theme
controlColor - the background color for buttons, labels etc.
primaryControlColor - the color of scrollbar "knobs"
backgroundColor - the background color for viewports, tree's, tables etc.
textColor - the text color
selectedBackgroundColor - the background color for selected text, selected menu items
selectedTextColor - the text color for selected text, selected menu items
shadingFactor - the shading factor is used when calculating brighter and darker control colors. A higher factor gives brighter and darker colors.
Method Detail

updateFonts

private void updateFonts()

updateColors

private void updateColors()

getName

public java.lang.String getName()
Returns the theme name.

Returns:
the theme name

getShadingFactor

public double getShadingFactor()
Returns the shading factor. The shading factor is used when calculating brighter and darker control colors. A higher factor gives brighter and darker colors.

Returns:
the shading factor

setShadingFactor

public void setShadingFactor(double shadingFactor)
Sets the shading factor. The shading factor is used when calculating brighter and darker control colors. A higher factor gives brighter and darker colors.

Parameters:
shadingFactor - the shading factor

getFont

public javax.swing.plaf.FontUIResource getFont()
Returns the base font. This font is used as default font for all text.

Returns:
returns the base font

setFont

public void setFont(javax.swing.plaf.FontUIResource font)
Sets the base font. This font is used as default font for all text.

Parameters:
font - the base font

getControlColor

public javax.swing.plaf.ColorUIResource getControlColor()
Gets the background color used for JComponent.

Returns:
the background color used for JComponent

getPrimaryControlColor

public javax.swing.plaf.ColorUIResource getPrimaryControlColor()
Gets the color of scrollbar "knobs" etc.

Returns:
the color of scrollbar "knobs" etc,

getBackgroundColor

public javax.swing.plaf.ColorUIResource getBackgroundColor()
Gets the background color for JViewport, JTree, JTable etc.

Returns:
the background color for JViewport, JTree, JTable etc.

getTextColor

public javax.swing.plaf.ColorUIResource getTextColor()
Gets the text color.

Returns:
the text color

getSelectedTextBackgroundColor

public javax.swing.plaf.ColorUIResource getSelectedTextBackgroundColor()
Gets the selected text background color.

Returns:
the selected text background color

getFocusColor

public javax.swing.plaf.ColorUIResource getFocusColor()
Gets the control focus marker color.

Returns:
the control focus marker color

getSelectedTextColor

public javax.swing.plaf.ColorUIResource getSelectedTextColor()
Gets the selected text color.

Returns:
the selected text color

getTooltipBackgroundColor

public javax.swing.plaf.ColorUIResource getTooltipBackgroundColor()
Gets the background color for JToolTip.

Returns:
the background color for JToolTip

getDesktopColor

public javax.swing.plaf.ColorUIResource getDesktopColor()
Gets the desktop color used in JDesktopPane etc.

Returns:
the desktop color used in JDesktopPane etc.

getTreeIconBackgroundColor

public javax.swing.plaf.ColorUIResource getTreeIconBackgroundColor()
Gets the background color used for collapse and expand icons in a JTree.

Returns:
the background color used for collapse and expand icons in a JTree

getSelectedMenuBackgroundColor

public javax.swing.plaf.ColorUIResource getSelectedMenuBackgroundColor()
Gets the background color used for selected JMenuItem's.

Returns:
the background color used for selected JMenuItem's

getSelectedMenuForegroundColor

public javax.swing.plaf.ColorUIResource getSelectedMenuForegroundColor()
Gets the foreground color used for selected JMenuItem's.

Returns:
the foreground color used for selected JMenuItem's

getInactiveTextColor

public javax.swing.plaf.ColorUIResource getInactiveTextColor()
Gets the color used for inactive text.

Returns:
the color used for inactive text

getControlHighlightColor

public javax.swing.plaf.ColorUIResource getControlHighlightColor()
Gets the control highlight color. By default this is a color a little brighter than the control color.

Returns:
the control highlight color

getControlLightShadowColor

public javax.swing.plaf.ColorUIResource getControlLightShadowColor()
Gets the control light shadow color. By default this is a color a little darker than the control color.

Returns:
the control light shadow color

getControlShadowColor

public javax.swing.plaf.ColorUIResource getControlShadowColor()
Gets the control shadow color. By default this is a color a little darker than the control light shadow color.

Returns:
the control shadow color

getControlDarkShadowColor

public javax.swing.plaf.ColorUIResource getControlDarkShadowColor()
Gets the control dark shadow color. By default this is a color a little darker than the control shadow color.

Returns:
the control dark shadow color

getPrimaryControlHighlightColor

public javax.swing.plaf.ColorUIResource getPrimaryControlHighlightColor()
Gets the primary control highlight color. By default this color is the same as the control highlight color..

Returns:
the primary control highlight color

getPrimaryControlShadowColor

public javax.swing.plaf.ColorUIResource getPrimaryControlShadowColor()
Gets the primary control shadow color. By default this is a color a little darker than the primary control color.

Returns:
the primary control shadow color

getPrimaryControlDarkShadowColor

public javax.swing.plaf.ColorUIResource getPrimaryControlDarkShadowColor()
Gets the primary control dark shadow color. By default this is a color a little darker than the primary control shadow color.

Returns:
the primary control dark shadow color

getScrollBarBackgroundColor

public javax.swing.plaf.ColorUIResource getScrollBarBackgroundColor()
Gets the background color for JScrollBar's.

Returns:
the background color for JScrollBar's

getScrollBarBackgroundShadowColor

public javax.swing.plaf.ColorUIResource getScrollBarBackgroundShadowColor()
Gets the background shadow color for JScrollBar's. By default this is a color a little darker than the scroll bar background color.

Returns:
the background color for JScrollBar's.

getActiveInternalFrameTitleBackgroundColor

public javax.swing.plaf.ColorUIResource getActiveInternalFrameTitleBackgroundColor()
Gets the background color for active JInternalFrame's.

Returns:
the background color for active JInternalFrame's

getActiveInternalFrameTitleForegroundColor

public javax.swing.plaf.ColorUIResource getActiveInternalFrameTitleForegroundColor()
Gets the foreground color for active JInternalFrame's.

Returns:
the foreground color for active JInternalFrame's

getActiveInternalFrameTitleGradientColor

public javax.swing.plaf.ColorUIResource getActiveInternalFrameTitleGradientColor()
Gets the gradient color for active JInternalFrame's.

Returns:
the gradient color for active JInternalFrame's

getInactiveInternalFrameTitleBackgroundColor

public javax.swing.plaf.ColorUIResource getInactiveInternalFrameTitleBackgroundColor()
Gets the background color for inactive JInternalFrame's.

Returns:
the background color for inactive JInternalFrame's

getInactiveInternalFrameTitleForegroundColor

public javax.swing.plaf.ColorUIResource getInactiveInternalFrameTitleForegroundColor()
Gets the foreground color for inactive JInternalFrame's.

Returns:
the foreground color for inactive JInternalFrame's

getInactiveInternalFrameTitleGradientColor

public javax.swing.plaf.ColorUIResource getInactiveInternalFrameTitleGradientColor()
Gets the gradient color for inactive JInternalFrame's.

Returns:
the gradient color for inactive JInternalFrame's

getTableHeaderCellBorder

public javax.swing.plaf.BorderUIResource getTableHeaderCellBorder()
Gets the border around cells in JTableHeader's.

Returns:
the border around cells in JTableHeader's

getInternalFrameIcon

public javax.swing.plaf.IconUIResource getInternalFrameIcon()
Gets the icon to the left in the title bar of JInternalFrame's.

Returns:
the icon to the left in the title bar of JInternalFrame's

setInternalFrameIcon

public void setInternalFrameIcon(javax.swing.plaf.IconUIResource internalFrameIcon)
Sets the icon to the left in the title bar of JInternalFrame's.

Parameters:
internalFrameIcon - the icon

getInternalFrameMinimizeIcon

public javax.swing.plaf.IconUIResource getInternalFrameMinimizeIcon()
Gets the icon used in the minimize button in the title bar of JInternalFrame's.

Returns:
the icon used in the minimize button in the title bar of JInternalFrame's

setInternalFrameMinimizeIcon

public void setInternalFrameMinimizeIcon(javax.swing.plaf.IconUIResource internalFrameMinimizeIcon)
Sets the icon used in the minimize button in the title bar of JInternalFrame's.

Parameters:
internalFrameMinimizeIcon - the icon

getInternalFrameMaximizeIcon

public javax.swing.plaf.IconUIResource getInternalFrameMaximizeIcon()
Gets the icon used in the maximize button in the title bar of JInternalFrame's.

Returns:
the icon used in the minimize button in the title bar of JInternalFrame's

setInternalFrameMaximizeIcon

public void setInternalFrameMaximizeIcon(javax.swing.plaf.IconUIResource internalFrameMaximizeIcon)
Sets the icon used in the maximize button in the title bar of JInternalFrame's.

Parameters:
internalFrameMaximizeIcon - the icon

getInternalFrameCloseIcon

public javax.swing.plaf.IconUIResource getInternalFrameCloseIcon()
Gets the icon used in the close button in the title bar of JInternalFrame's.

Returns:
the icon used in the close button in the title bar of JInternalFrame's

setInternalFrameCloseIcon

public void setInternalFrameCloseIcon(javax.swing.plaf.IconUIResource internalFrameCloseIcon)
Sets the icon used in the close button in the title bar of JInternalFrame's.

Parameters:
internalFrameCloseIcon - the icon

getInternalFrameBorder

public javax.swing.plaf.BorderUIResource getInternalFrameBorder()
Gets the border used around JInternalFrame's.

Returns:
the border used around JInternalFrame's

setInternalFrameBorder

public void setInternalFrameBorder(javax.swing.plaf.BorderUIResource internalFrameBorder)
Sets the border used around JInternalFrame's.

Parameters:
internalFrameBorder - the border used around JInternalFrame's

getInternalFrameTitleFont

public javax.swing.plaf.FontUIResource getInternalFrameTitleFont()
Gets the font used in the title of JInternalFrame's. Defaults to the text font with bold style.

Returns:
the font used in the title of JInternalFrame's

setInternalFrameTitleFont

public void setInternalFrameTitleFont(javax.swing.plaf.FontUIResource internalFrameTitleFont)
Sets the font used in the title of JInternalFrame's. Defaults to the text font with bold style.

Parameters:
internalFrameTitleFont - the font

setControlColor

public void setControlColor(java.awt.Color color)
Sets the background color for JComponent's.

Parameters:
color - the control color

setPrimaryControlColor

public void setPrimaryControlColor(java.awt.Color c)
Sets the primary control background color used in scroll bar knobs etc.

Parameters:
c - the primary control background color

setBackgroundColor

public void setBackgroundColor(java.awt.Color c)
Sets the background color used in JViewport, JTree, JTable etc.

Parameters:
c - the background color used in JViewport, JTree, JTable etc.

setTextColor

public void setTextColor(java.awt.Color c)
Sets the text color.

Parameters:
c - the text color

getOptionPaneButtonFont

public javax.swing.plaf.FontUIResource getOptionPaneButtonFont()
Gets the font used in JOptionPane buttons. Defaults to the text font with bold style.

Returns:
the font used in JOptionPane buttons

setOptionPaneButtonFont

public void setOptionPaneButtonFont(javax.swing.plaf.FontUIResource optionPaneButtonFont)
Sets the font used in JOptionPane buttons. Defaults to the text font with bold style.

Parameters:
optionPaneButtonFont - the font used in JOptionPane buttons

getSplitPaneDividerSize

public int getSplitPaneDividerSize()
Gets the size of the JSplitPane divider.

Returns:
the size of the JSplitPane divider

setSplitPaneDividerSize

public void setSplitPaneDividerSize(int splitPaneDividerSize)
Sets the size of the JSplitPane divider.

Parameters:
splitPaneDividerSize - the size of the JSplitPane divider

getTextFieldBorder

public javax.swing.plaf.BorderUIResource getTextFieldBorder()
Gets the border used around JTextField (including spinners etc.).

Returns:
the border used around JTextField

setTextFieldBorder

public void setTextFieldBorder(javax.swing.plaf.BorderUIResource textFieldBorder)
Sets the border used around JTextField (including spinners etc.).

Parameters:
textFieldBorder - the border used around JTextField

getTreeOpenIcon

public javax.swing.plaf.IconUIResource getTreeOpenIcon()
Gets the icon used with open nodes in a JTree.

Returns:
the icon used with open nodes in a JTree

setTreeOpenIcon

public void setTreeOpenIcon(javax.swing.plaf.IconUIResource treeOpenIcon)
Sets the icon used with open nodes in a JTree.

Parameters:
treeOpenIcon - the icon used with open nodes in a JTree

getTreeClosedIcon

public javax.swing.plaf.IconUIResource getTreeClosedIcon()
Gets the icon used with closed nodes in a JTree.

Returns:
the icon used with closed nodes in a JTree

setTreeClosedIcon

public void setTreeClosedIcon(javax.swing.plaf.IconUIResource treeClosedIcon)
Sets the icon used with closed nodes in a JTree.

Parameters:
treeClosedIcon - the icon used with closed nodes in a JTree

getTreeLeafIcon

public javax.swing.plaf.IconUIResource getTreeLeafIcon()
Gets the icon used with leaf nodes in a JTree.

Returns:
the icon used with leaf nodes in a JTree

setTreeLeafIcon

public void setTreeLeafIcon(javax.swing.plaf.IconUIResource treeLeafIcon)
Sets the icon used with leaf nodes in a JTree.

Parameters:
treeLeafIcon - the icon used with leaf nodes in a JTree

getMenuBarBorder

public javax.swing.plaf.BorderUIResource getMenuBarBorder()
Gets the border used around JMenuBar's.

Returns:
the border used around JMenuBar's

setMenuBarBorder

public void setMenuBarBorder(javax.swing.plaf.BorderUIResource menuBarBorder)
Sets the border used around JMenuBar's.

Parameters:
menuBarBorder - the border used around JMenuBar's

setSelectedTextBackgroundColor

public void setSelectedTextBackgroundColor(java.awt.Color selectedTextBackgroundColor)
Sets the selected text background color.

Parameters:
selectedTextBackgroundColor - the selected text background color

setFocusColor

public void setFocusColor(java.awt.Color focusColor)
Sets the focus marker color.

Parameters:
focusColor - the focus marker color

setSelectedTextColor

public void setSelectedTextColor(java.awt.Color selectedTextColor)
Sets the selected text color.

Parameters:
selectedTextColor - the selected text color

setTooltipBackgroundColor

public void setTooltipBackgroundColor(java.awt.Color tooltipBackgroundColor)
Sets the tooltip background color.

Parameters:
tooltipBackgroundColor - the tooltip background color

setDesktopColor

public void setDesktopColor(java.awt.Color desktopColor)
Sets the background color for a JDesktopPane.

Parameters:
desktopColor - the background color for a JDesktopPane

setTreeIconBackgroundColor

public void setTreeIconBackgroundColor(java.awt.Color treeIconBackgroundColor)
Sets the background color for the expand/collapse icons in a JTree.

Parameters:
treeIconBackgroundColor - the background color for the expand/collapse icons in a JTree

setSelectedMenuBackgroundColor

public void setSelectedMenuBackgroundColor(java.awt.Color selectedMenuBackgroundColor)
Sets the background color for a selected menu item.

Parameters:
selectedMenuBackgroundColor - the background color for a selected menu item

setSelectedMenuForegroundColor

public void setSelectedMenuForegroundColor(java.awt.Color selectedMenuForegroundColor)
Sets the foreground color for a selected menu item.

Parameters:
selectedMenuForegroundColor - the foreground color for a selected menu item

setInactiveTextColor

public void setInactiveTextColor(java.awt.Color inactiveTextColor)
Sets the inactive text color.

Parameters:
inactiveTextColor - the inactive text color

setScrollBarBackgroundColor

public void setScrollBarBackgroundColor(java.awt.Color scrollBarBackgroundColor)
Sets the JScrollBar background color.

Parameters:
scrollBarBackgroundColor - the JScrollBar background color

setActiveInternalFrameTitleBackgroundColor

public void setActiveInternalFrameTitleBackgroundColor(java.awt.Color activeInternalFrameTitleBackgroundColor)
Sets the background color for the title of an active JInternalFrame.

Parameters:
activeInternalFrameTitleBackgroundColor - the background color for the title of an active JInternalFrame

setActiveInternalFrameTitleForegroundColor

public void setActiveInternalFrameTitleForegroundColor(java.awt.Color activeInternalFrameTitleForegroundColor)
Sets the foreground color for the title of an active JInternalFrame.

Parameters:
activeInternalFrameTitleForegroundColor - the background color for the title of an active JInternalFrame

setActiveInternalFrameTitleGradientColor

public void setActiveInternalFrameTitleGradientColor(java.awt.Color activeInternalFrameTitleGradientColor)
Sets the gradient color for the title of an active JInternalFrame.

Parameters:
activeInternalFrameTitleGradientColor - the gradient color for the title of an active JInternalFrame

setInactiveInternalFrameTitleBackgroundColor

public void setInactiveInternalFrameTitleBackgroundColor(java.awt.Color inactiveInternalFrameTitleBackgroundColor)
Sets the background color for the title of an inactive JInternalFrame.

Parameters:
inactiveInternalFrameTitleBackgroundColor - the background color for the title of an inactive JInternalFrame

setInactiveInternalFrameTitleForegroundColor

public void setInactiveInternalFrameTitleForegroundColor(java.awt.Color inactiveInternalFrameTitleForegroundColor)
Sets the foreground color for the title of an inactive JInternalFrame.

Parameters:
inactiveInternalFrameTitleForegroundColor - the background color for the title of an active JInternalFrame

setInactiveInternalFrameTitleGradientColor

public void setInactiveInternalFrameTitleGradientColor(java.awt.Color inactiveInternalFrameTitleGradientColor)
Sets the gradient color for the title of an inactive JInternalFrame.

Parameters:
inactiveInternalFrameTitleGradientColor - the gradient color for the title of an inactive JInternalFrame

setInternalFrameTitleFont

public void setInternalFrameTitleFont(java.awt.Font frameTitleFont)
Sets the title font of an JInternalFrame.

Parameters:
frameTitleFont - the title font of an JInternalFrame

setOptionPaneButtonFont

public void setOptionPaneButtonFont(java.awt.Font optionPaneButtonFont)
Sets the button font for a JOptionPane. Default to the text font with bold style.

Parameters:
optionPaneButtonFont - the button font for a JOptionPane

setTableHeaderCellBorder

public void setTableHeaderCellBorder(javax.swing.plaf.BorderUIResource tableHeaderCellBorder)
Sets the border for the cells of a JTableHeader.

Parameters:
tableHeaderCellBorder - the border for the cells of a JTableHeader

getScrollBarWidth

public int getScrollBarWidth()
Gets the width of a JScrollBar.

Returns:
the width of a JScrollBar

setScrollBarWidth

public void setScrollBarWidth(int scrollBarWidth)
Sets the width of a JScrollBar.

Parameters:
scrollBarWidth - the width of a JScrollBar

getButtonMargin

public javax.swing.plaf.InsetsUIResource getButtonMargin()
Gets the margin of a JButton.

Returns:
the margin of a JButton

setButtonMargin

public void setButtonMargin(javax.swing.plaf.InsetsUIResource buttonMargin)
Sets the margin of a JButton.

Parameters:
buttonMargin - the margin of a JButton

getPopupMenuBorder

public javax.swing.plaf.BorderUIResource getPopupMenuBorder()
Gets the border of a JPopupMenu.

Returns:
the border of a JPopupMenu

setPopupMenuBorder

public void setPopupMenuBorder(javax.swing.plaf.BorderUIResource popupMenuBorder)
Sets the border of a JPopupMenu.

Parameters:
popupMenuBorder - the border of a JPopupMenu

getInternalFrameIconifyIcon

public javax.swing.plaf.IconUIResource getInternalFrameIconifyIcon()
Gets the icon used in the iconify button in the title of a JInternalFrame.

Returns:
the icon used in the iconify button in the title of a JInternalFrame

setInternalFrameIconifyIcon

public void setInternalFrameIconifyIcon(javax.swing.plaf.IconUIResource internalFrameIconifyIcon)
Sets the icon used in the iconify button in the title of a JInternalFrame.

Parameters:
internalFrameIconifyIcon - the icon used in the iconify button in the title of a JInternalFrame

getTooltipForegroundColor

public javax.swing.plaf.ColorUIResource getTooltipForegroundColor()
Gets the background color used in JToolTip.

Returns:
the background color used in JToolTip

setTooltipForegroundColor

public void setTooltipForegroundColor(javax.swing.plaf.ColorUIResource tooltipForegroundColor)
Sets the foreground color used in JToolTip.

Parameters:
tooltipForegroundColor - the foreground color used in JToolTip

getListItemBorder

public javax.swing.plaf.BorderUIResource getListItemBorder()
Gets the border used around list items in JList's and JComboBox's.

Returns:
the border used around list items in JList's and JComboBox's

setListItemBorder

public void setListItemBorder(javax.swing.plaf.BorderUIResource listItemBorder)
Sets the border used around list items in JList's and JComboBox's.

Parameters:
listItemBorder - the border used around list items in JList's and JComboBox's

getListFocusedItemBorder

public javax.swing.plaf.BorderUIResource getListFocusedItemBorder()
Gets the border used around the focused list item in JList's and JComboBox's.

Returns:
the border used around the focused list item in JList's and JComboBox's

setListFocusedItemBorder

public void setListFocusedItemBorder(javax.swing.plaf.BorderUIResource listFocusedItemBorder)
Sets the border used around the focused list item in JList's and JComboBox's.

Parameters:
listFocusedItemBorder - the border used around the focused list item in JList's and JComboBox's