net.infonode.gui.laf

Class InfoNodeLookAndFeelTheme

public class InfoNodeLookAndFeelTheme extends 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
static ColorDEFAULT_BACKGROUND_COLOR
static ColorDEFAULT_CONTROL_COLOR
static ColorDEFAULT_DESKTOP_COLOR
static intDEFAULT_FONT_SIZE
static ColorDEFAULT_PRIMARY_CONTROL_COLOR
static ColorDEFAULT_SELECTED_BACKGROUND_COLOR
static ColorDEFAULT_SELECTED_TEXT_COLOR
static ColorDEFAULT_TEXT_COLOR
static ColorDEFAULT_TOOLTIP_BACKGROUND_COLOR
static ColorDEFAULT_TOOLTIP_FOREGROUND_COLOR
Constructor Summary
InfoNodeLookAndFeelTheme()
Creates a default InfoNode look and feel theme.
InfoNodeLookAndFeelTheme(String name, Color controlColor, Color primaryControlColor, Color backgroundColor, Color textColor)
Creates a theme with custom colors.
InfoNodeLookAndFeelTheme(String name, Color controlColor, Color primaryControlColor, Color backgroundColor, Color textColor, Color selectedBackgroundColor, Color selectedTextColor)
Creates a theme with custom colors.
InfoNodeLookAndFeelTheme(String name, Color controlColor, Color primaryControlColor, Color backgroundColor, Color textColor, Color selectedBackgroundColor, Color selectedTextColor, double shadingFactor)
Creates a theme with custom colors.
Method Summary
ColorUIResourcegetActiveInternalFrameTitleBackgroundColor()
Gets the background color for active javax.swing.JInternalFrame's.
ColorUIResourcegetActiveInternalFrameTitleForegroundColor()
Gets the foreground color for active javax.swing.JInternalFrame's.
ColorUIResourcegetActiveInternalFrameTitleGradientColor()
Gets the gradient color for active javax.swing.JInternalFrame's.
ColorUIResourcegetBackgroundColor()
Gets the background color for javax.swing.JViewport, javax.swing.JTree, javax.swing.JTable etc.
InsetsUIResourcegetButtonMargin()
Gets the margin of a javax.swing.JButton.
ColorUIResourcegetControlColor()
Gets the background color used for javax.swing.JComponent.
ColorUIResourcegetControlDarkShadowColor()
Gets the control dark shadow color.
ColorUIResourcegetControlHighlightColor()
Gets the control highlight color.
ColorUIResourcegetControlLightShadowColor()
Gets the control light shadow color.
ColorUIResourcegetControlShadowColor()
Gets the control shadow color.
ColorUIResourcegetDesktopColor()
Gets the desktop color used in javax.swing.JDesktopPane etc.
ColorUIResourcegetFocusColor()
Gets the control focus marker color.
FontUIResourcegetFont()
Returns the base font.
ColorUIResourcegetInactiveInternalFrameTitleBackgroundColor()
Gets the background color for inactive javax.swing.JInternalFrame's.
ColorUIResourcegetInactiveInternalFrameTitleForegroundColor()
Gets the foreground color for inactive javax.swing.JInternalFrame's.
ColorUIResourcegetInactiveInternalFrameTitleGradientColor()
Gets the gradient color for inactive javax.swing.JInternalFrame's.
ColorUIResourcegetInactiveTextColor()
Gets the color used for inactive text.
BorderUIResourcegetInternalFrameBorder()
Gets the border used around javax.swing.JInternalFrame's.
IconUIResourcegetInternalFrameCloseIcon()
Gets the icon used in the close button in the title bar of javax.swing.JInternalFrame's.
IconUIResourcegetInternalFrameIcon()
Gets the icon to the left in the title bar of javax.swing.JInternalFrame's.
IconUIResourcegetInternalFrameIconifyIcon()
Gets the icon used in the iconify button in the title of a javax.swing.JInternalFrame.
IconUIResourcegetInternalFrameMaximizeIcon()
Gets the icon used in the maximize button in the title bar of javax.swing.JInternalFrame's.
IconUIResourcegetInternalFrameMinimizeIcon()
Gets the icon used in the minimize button in the title bar of javax.swing.JInternalFrame's.
FontUIResourcegetInternalFrameTitleFont()
Gets the font used in the title of javax.swing.JInternalFrame's.
BorderUIResourcegetListFocusedItemBorder()
Gets the border used around the focused list item in javax.swing.JList's and javax.swing.JComboBox's.
BorderUIResourcegetListItemBorder()
Gets the border used around list items in javax.swing.JList's and javax.swing.JComboBox's.
BorderUIResourcegetMenuBarBorder()
Gets the border used around javax.swing.JMenuBar's.
StringgetName()
Returns the theme name.
FontUIResourcegetOptionPaneButtonFont()
Gets the font used in javax.swing.JOptionPane buttons.
BorderUIResourcegetPopupMenuBorder()
Gets the border of a javax.swing.JPopupMenu.
ColorUIResourcegetPrimaryControlColor()
Gets the color of scrollbar "knobs" etc.
ColorUIResourcegetPrimaryControlDarkShadowColor()
Gets the primary control dark shadow color.
ColorUIResourcegetPrimaryControlHighlightColor()
Gets the primary control highlight color.
ColorUIResourcegetPrimaryControlShadowColor()
Gets the primary control shadow color.
ColorUIResourcegetScrollBarBackgroundColor()
Gets the background color for javax.swing.JScrollBar's.
ColorUIResourcegetScrollBarBackgroundShadowColor()
Gets the background shadow color for javax.swing.JScrollBar's.
intgetScrollBarWidth()
Gets the width of a javax.swing.JScrollBar.
ColorUIResourcegetSelectedMenuBackgroundColor()
Gets the background color used for selected javax.swing.JMenuItem's.
ColorUIResourcegetSelectedMenuForegroundColor()
Gets the foreground color used for selected javax.swing.JMenuItem's.
ColorUIResourcegetSelectedTextBackgroundColor()
Gets the selected text background color.
ColorUIResourcegetSelectedTextColor()
Gets the selected text color.
doublegetShadingFactor()
Returns the shading factor.
intgetSplitPaneDividerSize()
Gets the size of the javax.swing.JSplitPane divider.
BorderUIResourcegetTableHeaderCellBorder()
Gets the border around cells in javax.swing.table.JTableHeader's.
ColorUIResourcegetTextColor()
Gets the text color.
BorderUIResourcegetTextFieldBorder()
Gets the border used around javax.swing.JTextField (including spinners etc.).
ColorUIResourcegetTooltipBackgroundColor()
Gets the background color for javax.swing.JToolTip.
ColorUIResourcegetTooltipForegroundColor()
Gets the background color used in javax.swing.JToolTip.
IconUIResourcegetTreeClosedIcon()
Gets the icon used with closed nodes in a javax.swing.JTree.
ColorUIResourcegetTreeIconBackgroundColor()
Gets the background color used for collapse and expand icons in a javax.swing.JTree.
IconUIResourcegetTreeLeafIcon()
Gets the icon used with leaf nodes in a javax.swing.JTree.
IconUIResourcegetTreeOpenIcon()
Gets the icon used with open nodes in a javax.swing.JTree.
voidsetActiveInternalFrameTitleBackgroundColor(Color activeInternalFrameTitleBackgroundColor)
Sets the background color for the title of an active javax.swing.JInternalFrame.
voidsetActiveInternalFrameTitleForegroundColor(Color activeInternalFrameTitleForegroundColor)
Sets the foreground color for the title of an active javax.swing.JInternalFrame.
voidsetActiveInternalFrameTitleGradientColor(Color activeInternalFrameTitleGradientColor)
Sets the gradient color for the title of an active javax.swing.JInternalFrame.
voidsetBackgroundColor(Color c)
Sets the background color used in javax.swing.JViewport, javax.swing.JTree, javax.swing.JTable etc.
voidsetButtonMargin(InsetsUIResource buttonMargin)
Sets the margin of a javax.swing.JButton.
voidsetControlColor(Color color)
Sets the background color for javax.swing.JComponent's.
voidsetDesktopColor(Color desktopColor)
Sets the background color for a javax.swing.JDesktopPane.
voidsetFocusColor(Color focusColor)
Sets the focus marker color.
voidsetFont(FontUIResource font)
Sets the base font.
voidsetInactiveInternalFrameTitleBackgroundColor(Color inactiveInternalFrameTitleBackgroundColor)
Sets the background color for the title of an inactive javax.swing.JInternalFrame.
voidsetInactiveInternalFrameTitleForegroundColor(Color inactiveInternalFrameTitleForegroundColor)
Sets the foreground color for the title of an inactive javax.swing.JInternalFrame.
voidsetInactiveInternalFrameTitleGradientColor(Color inactiveInternalFrameTitleGradientColor)
Sets the gradient color for the title of an inactive javax.swing.JInternalFrame.
voidsetInactiveTextColor(Color inactiveTextColor)
Sets the inactive text color.
voidsetInternalFrameBorder(BorderUIResource internalFrameBorder)
Sets the border used around javax.swing.JInternalFrame's.
voidsetInternalFrameCloseIcon(IconUIResource internalFrameCloseIcon)
Sets the icon used in the close button in the title bar of javax.swing.JInternalFrame's.
voidsetInternalFrameIcon(IconUIResource internalFrameIcon)
Sets the icon to the left in the title bar of javax.swing.JInternalFrame's.
voidsetInternalFrameIconifyIcon(IconUIResource internalFrameIconifyIcon)
Sets the icon used in the iconify button in the title of a javax.swing.JInternalFrame.
voidsetInternalFrameMaximizeIcon(IconUIResource internalFrameMaximizeIcon)
Sets the icon used in the maximize button in the title bar of javax.swing.JInternalFrame's.
voidsetInternalFrameMinimizeIcon(IconUIResource internalFrameMinimizeIcon)
Sets the icon used in the minimize button in the title bar of javax.swing.JInternalFrame's.
voidsetInternalFrameTitleFont(FontUIResource internalFrameTitleFont)
Sets the font used in the title of javax.swing.JInternalFrame's.
voidsetInternalFrameTitleFont(Font frameTitleFont)
Sets the title font of an javax.swing.JInternalFrame.
voidsetListFocusedItemBorder(BorderUIResource listFocusedItemBorder)
Sets the border used around the focused list item in javax.swing.JList's and javax.swing.JComboBox's.
voidsetListItemBorder(BorderUIResource listItemBorder)
Sets the border used around list items in javax.swing.JList's and javax.swing.JComboBox's.
voidsetMenuBarBorder(BorderUIResource menuBarBorder)
Sets the border used around javax.swing.JMenuBar's.
voidsetOptionPaneButtonFont(FontUIResource optionPaneButtonFont)
Sets the font used in javax.swing.JOptionPane buttons.
voidsetOptionPaneButtonFont(Font optionPaneButtonFont)
Sets the button font for a javax.swing.JOptionPane.
voidsetPopupMenuBorder(BorderUIResource popupMenuBorder)
Sets the border of a javax.swing.JPopupMenu.
voidsetPrimaryControlColor(Color c)
Sets the primary control background color used in scroll bar knobs etc.
voidsetScrollBarBackgroundColor(Color scrollBarBackgroundColor)
Sets the javax.swing.JScrollBar background color.
voidsetScrollBarWidth(int scrollBarWidth)
Sets the width of a javax.swing.JScrollBar.
voidsetSelectedMenuBackgroundColor(Color selectedMenuBackgroundColor)
Sets the background color for a selected menu item.
voidsetSelectedMenuForegroundColor(Color selectedMenuForegroundColor)
Sets the foreground color for a selected menu item.
voidsetSelectedTextBackgroundColor(Color selectedTextBackgroundColor)
Sets the selected text background color.
voidsetSelectedTextColor(Color selectedTextColor)
Sets the selected text color.
voidsetShadingFactor(double shadingFactor)
Sets the shading factor.
voidsetSplitPaneDividerSize(int splitPaneDividerSize)
Sets the size of the javax.swing.JSplitPane divider.
voidsetTableHeaderCellBorder(BorderUIResource tableHeaderCellBorder)
Sets the border for the cells of a javax.swing.table.JTableHeader.
voidsetTextColor(Color c)
Sets the text color.
voidsetTextFieldBorder(BorderUIResource textFieldBorder)
Sets the border used around javax.swing.JTextField (including spinners etc.).
voidsetTooltipBackgroundColor(Color tooltipBackgroundColor)
Sets the tooltip background color.
voidsetTooltipForegroundColor(ColorUIResource tooltipForegroundColor)
Sets the foreground color used in javax.swing.JToolTip.
voidsetTreeClosedIcon(IconUIResource treeClosedIcon)
Sets the icon used with closed nodes in a javax.swing.JTree.
voidsetTreeIconBackgroundColor(Color treeIconBackgroundColor)
Sets the background color for the expand/collapse icons in a javax.swing.JTree.
voidsetTreeLeafIcon(IconUIResource treeLeafIcon)
Sets the icon used with leaf nodes in a javax.swing.JTree.
voidsetTreeOpenIcon(IconUIResource treeOpenIcon)
Sets the icon used with open nodes in a javax.swing.JTree.

Field Detail

DEFAULT_BACKGROUND_COLOR

public static final Color DEFAULT_BACKGROUND_COLOR

DEFAULT_CONTROL_COLOR

public static final Color DEFAULT_CONTROL_COLOR

DEFAULT_DESKTOP_COLOR

public static final Color DEFAULT_DESKTOP_COLOR

DEFAULT_FONT_SIZE

public static final int DEFAULT_FONT_SIZE

DEFAULT_PRIMARY_CONTROL_COLOR

public static final Color DEFAULT_PRIMARY_CONTROL_COLOR

DEFAULT_SELECTED_BACKGROUND_COLOR

public static final Color DEFAULT_SELECTED_BACKGROUND_COLOR

DEFAULT_SELECTED_TEXT_COLOR

public static final Color DEFAULT_SELECTED_TEXT_COLOR

DEFAULT_TEXT_COLOR

public static final Color DEFAULT_TEXT_COLOR

DEFAULT_TOOLTIP_BACKGROUND_COLOR

public static final Color DEFAULT_TOOLTIP_BACKGROUND_COLOR

DEFAULT_TOOLTIP_FOREGROUND_COLOR

public static final Color DEFAULT_TOOLTIP_FOREGROUND_COLOR

Constructor Detail

InfoNodeLookAndFeelTheme

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

InfoNodeLookAndFeelTheme

public InfoNodeLookAndFeelTheme(String name, Color controlColor, Color primaryControlColor, Color backgroundColor, 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(String name, Color controlColor, Color primaryControlColor, Color backgroundColor, Color textColor, Color selectedBackgroundColor, 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(String name, Color controlColor, Color primaryControlColor, Color backgroundColor, Color textColor, Color selectedBackgroundColor, 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

getActiveInternalFrameTitleBackgroundColor

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

Returns: the background color for active javax.swing.JInternalFrame's

getActiveInternalFrameTitleForegroundColor

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

Returns: the foreground color for active javax.swing.JInternalFrame's

getActiveInternalFrameTitleGradientColor

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

Returns: the gradient color for active javax.swing.JInternalFrame's

getBackgroundColor

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

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

getButtonMargin

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

Returns: the margin of a javax.swing.JButton

getControlColor

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

Returns: the background color used for javax.swing.JComponent

getControlDarkShadowColor

public 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

getControlHighlightColor

public 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 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 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

getDesktopColor

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

Returns: the desktop color used in javax.swing.JDesktopPane etc.

getFocusColor

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

Returns: the control focus marker color

getFont

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

Returns: returns the base font

getInactiveInternalFrameTitleBackgroundColor

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

Returns: the background color for inactive javax.swing.JInternalFrame's

getInactiveInternalFrameTitleForegroundColor

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

Returns: the foreground color for inactive javax.swing.JInternalFrame's

getInactiveInternalFrameTitleGradientColor

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

Returns: the gradient color for inactive javax.swing.JInternalFrame's

getInactiveTextColor

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

Returns: the color used for inactive text

getInternalFrameBorder

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

Returns: the border used around javax.swing.JInternalFrame's

getInternalFrameCloseIcon

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

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

getInternalFrameIcon

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

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

getInternalFrameIconifyIcon

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

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

getInternalFrameMaximizeIcon

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

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

getInternalFrameMinimizeIcon

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

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

getInternalFrameTitleFont

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

Returns: the font used in the title of javax.swing.JInternalFrame's

getListFocusedItemBorder

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

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

getListItemBorder

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

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

getMenuBarBorder

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

Returns: the border used around javax.swing.JMenuBar's

getName

public String getName()
Returns the theme name.

Returns: the theme name

getOptionPaneButtonFont

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

Returns: the font used in javax.swing.JOptionPane buttons

getPopupMenuBorder

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

Returns: the border of a javax.swing.JPopupMenu

getPrimaryControlColor

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

Returns: the color of scrollbar "knobs" etc,

getPrimaryControlDarkShadowColor

public 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

getPrimaryControlHighlightColor

public 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 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

getScrollBarBackgroundColor

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

Returns: the background color for javax.swing.JScrollBar's

getScrollBarBackgroundShadowColor

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

Returns: the background color for javax.swing.JScrollBar's.

getScrollBarWidth

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

Returns: the width of a javax.swing.JScrollBar

getSelectedMenuBackgroundColor

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

Returns: the background color used for selected javax.swing.JMenuItem's

getSelectedMenuForegroundColor

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

Returns: the foreground color used for selected javax.swing.JMenuItem's

getSelectedTextBackgroundColor

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

Returns: the selected text background color

getSelectedTextColor

public ColorUIResource getSelectedTextColor()
Gets the selected text color.

Returns: the selected text color

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

getSplitPaneDividerSize

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

Returns: the size of the javax.swing.JSplitPane divider

getTableHeaderCellBorder

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

Returns: the border around cells in javax.swing.table.JTableHeader's

getTextColor

public ColorUIResource getTextColor()
Gets the text color.

Returns: the text color

getTextFieldBorder

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

Returns: the border used around javax.swing.JTextField

getTooltipBackgroundColor

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

Returns: the background color for javax.swing.JToolTip

getTooltipForegroundColor

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

Returns: the background color used in javax.swing.JToolTip

getTreeClosedIcon

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

Returns: the icon used with closed nodes in a javax.swing.JTree

getTreeIconBackgroundColor

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

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

getTreeLeafIcon

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

Returns: the icon used with leaf nodes in a javax.swing.JTree

getTreeOpenIcon

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

Returns: the icon used with open nodes in a javax.swing.JTree

setActiveInternalFrameTitleBackgroundColor

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

Parameters: activeInternalFrameTitleBackgroundColor the background color for the title of an active javax.swing.JInternalFrame

setActiveInternalFrameTitleForegroundColor

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

Parameters: activeInternalFrameTitleForegroundColor the background color for the title of an active javax.swing.JInternalFrame

setActiveInternalFrameTitleGradientColor

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

Parameters: activeInternalFrameTitleGradientColor the gradient color for the title of an active javax.swing.JInternalFrame

setBackgroundColor

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

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

setButtonMargin

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

Parameters: buttonMargin the margin of a javax.swing.JButton

setControlColor

public void setControlColor(Color color)
Sets the background color for javax.swing.JComponent's.

Parameters: color the control color

setDesktopColor

public void setDesktopColor(Color desktopColor)
Sets the background color for a javax.swing.JDesktopPane.

Parameters: desktopColor the background color for a javax.swing.JDesktopPane

setFocusColor

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

Parameters: focusColor the focus marker color

setFont

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

Parameters: font the base font

setInactiveInternalFrameTitleBackgroundColor

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

Parameters: inactiveInternalFrameTitleBackgroundColor the background color for the title of an inactive javax.swing.JInternalFrame

setInactiveInternalFrameTitleForegroundColor

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

Parameters: inactiveInternalFrameTitleForegroundColor the background color for the title of an active javax.swing.JInternalFrame

setInactiveInternalFrameTitleGradientColor

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

Parameters: inactiveInternalFrameTitleGradientColor the gradient color for the title of an inactive javax.swing.JInternalFrame

setInactiveTextColor

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

Parameters: inactiveTextColor the inactive text color

setInternalFrameBorder

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

Parameters: internalFrameBorder the border used around javax.swing.JInternalFrame's

setInternalFrameCloseIcon

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

Parameters: internalFrameCloseIcon the icon

setInternalFrameIcon

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

Parameters: internalFrameIcon the icon

setInternalFrameIconifyIcon

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

Parameters: internalFrameIconifyIcon the icon used in the iconify button in the title of a javax.swing.JInternalFrame

setInternalFrameMaximizeIcon

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

Parameters: internalFrameMaximizeIcon the icon

setInternalFrameMinimizeIcon

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

Parameters: internalFrameMinimizeIcon the icon

setInternalFrameTitleFont

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

Parameters: internalFrameTitleFont the font

setInternalFrameTitleFont

public void setInternalFrameTitleFont(Font frameTitleFont)
Sets the title font of an javax.swing.JInternalFrame.

Parameters: frameTitleFont the title font of an javax.swing.JInternalFrame

setListFocusedItemBorder

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

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

setListItemBorder

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

Parameters: listItemBorder the border used around list items in javax.swing.JList's and javax.swing.JComboBox's

setMenuBarBorder

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

Parameters: menuBarBorder the border used around javax.swing.JMenuBar's

setOptionPaneButtonFont

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

Parameters: optionPaneButtonFont the font used in javax.swing.JOptionPane buttons

setOptionPaneButtonFont

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

Parameters: optionPaneButtonFont the button font for a javax.swing.JOptionPane

setPopupMenuBorder

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

Parameters: popupMenuBorder the border of a javax.swing.JPopupMenu

setPrimaryControlColor

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

Parameters: c the primary control background color

setScrollBarBackgroundColor

public void setScrollBarBackgroundColor(Color scrollBarBackgroundColor)
Sets the javax.swing.JScrollBar background color.

Parameters: scrollBarBackgroundColor the javax.swing.JScrollBar background color

setScrollBarWidth

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

Parameters: scrollBarWidth the width of a javax.swing.JScrollBar

setSelectedMenuBackgroundColor

public void setSelectedMenuBackgroundColor(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(Color selectedMenuForegroundColor)
Sets the foreground color for a selected menu item.

Parameters: selectedMenuForegroundColor the foreground color for a selected menu item

setSelectedTextBackgroundColor

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

Parameters: selectedTextBackgroundColor the selected text background color

setSelectedTextColor

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

Parameters: selectedTextColor the selected text color

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

setSplitPaneDividerSize

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

Parameters: splitPaneDividerSize the size of the javax.swing.JSplitPane divider

setTableHeaderCellBorder

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

Parameters: tableHeaderCellBorder the border for the cells of a javax.swing.table.JTableHeader

setTextColor

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

Parameters: c the text color

setTextFieldBorder

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

Parameters: textFieldBorder the border used around javax.swing.JTextField

setTooltipBackgroundColor

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

Parameters: tooltipBackgroundColor the tooltip background color

setTooltipForegroundColor

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

Parameters: tooltipForegroundColor the foreground color used in javax.swing.JToolTip

setTreeClosedIcon

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

Parameters: treeClosedIcon the icon used with closed nodes in a javax.swing.JTree

setTreeIconBackgroundColor

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

Parameters: treeIconBackgroundColor the background color for the expand/collapse icons in a javax.swing.JTree

setTreeLeafIcon

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

Parameters: treeLeafIcon the icon used with leaf nodes in a javax.swing.JTree

setTreeOpenIcon

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

Parameters: treeOpenIcon the icon used with open nodes in a javax.swing.JTree