net.infonode.gui.laf
public class InfoNodeLookAndFeelTheme extends Object
Version: $Revision: 1.16 $
Field Summary | |
---|---|
static Color | DEFAULT_BACKGROUND_COLOR |
static Color | DEFAULT_CONTROL_COLOR |
static Color | DEFAULT_DESKTOP_COLOR |
static int | DEFAULT_FONT_SIZE |
static Color | DEFAULT_PRIMARY_CONTROL_COLOR |
static Color | DEFAULT_SELECTED_BACKGROUND_COLOR |
static Color | DEFAULT_SELECTED_TEXT_COLOR |
static Color | DEFAULT_TEXT_COLOR |
static Color | DEFAULT_TOOLTIP_BACKGROUND_COLOR |
static Color | DEFAULT_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 | |
---|---|
ColorUIResource | getActiveInternalFrameTitleBackgroundColor()
Gets the background color for active {@link javax.swing.JInternalFrame}'s.
|
ColorUIResource | getActiveInternalFrameTitleForegroundColor()
Gets the foreground color for active {@link javax.swing.JInternalFrame}'s.
|
ColorUIResource | getActiveInternalFrameTitleGradientColor()
Gets the gradient color for active {@link javax.swing.JInternalFrame}'s.
|
ColorUIResource | getBackgroundColor()
Gets the background color for {@link javax.swing.JViewport}, {@link javax.swing.JTree}, {@link javax.swing.JTable}
etc.
|
InsetsUIResource | getButtonMargin()
Gets the margin of a {@link javax.swing.JButton}.
|
ColorUIResource | getControlColor()
Gets the background color used for {@link javax.swing.JComponent}.
|
ColorUIResource | getControlDarkShadowColor()
Gets the control dark shadow color. |
ColorUIResource | getControlHighlightColor()
Gets the control highlight color. |
ColorUIResource | getControlLightShadowColor()
Gets the control light shadow color. |
ColorUIResource | getControlShadowColor()
Gets the control shadow color. |
ColorUIResource | getDesktopColor()
Gets the desktop color used in {@link javax.swing.JDesktopPane} etc.
|
ColorUIResource | getFocusColor()
Gets the control focus marker color.
|
FontUIResource | getFont()
Returns the base font. |
ColorUIResource | getInactiveInternalFrameTitleBackgroundColor()
Gets the background color for inactive {@link javax.swing.JInternalFrame}'s.
|
ColorUIResource | getInactiveInternalFrameTitleForegroundColor()
Gets the foreground color for inactive {@link javax.swing.JInternalFrame}'s.
|
ColorUIResource | getInactiveInternalFrameTitleGradientColor()
Gets the gradient color for inactive {@link javax.swing.JInternalFrame}'s.
|
ColorUIResource | getInactiveTextColor()
Gets the color used for inactive text.
|
BorderUIResource | getInternalFrameBorder()
Gets the border used around {@link javax.swing.JInternalFrame}'s.
|
IconUIResource | getInternalFrameCloseIcon()
Gets the icon used in the close button in the title bar of {@link javax.swing.JInternalFrame}'s.
|
IconUIResource | getInternalFrameIcon()
Gets the icon to the left in the title bar of {@link javax.swing.JInternalFrame}'s.
|
IconUIResource | getInternalFrameIconifyIcon()
Gets the icon used in the iconify button in the title of a {@link javax.swing.JInternalFrame}.
|
IconUIResource | getInternalFrameMaximizeIcon()
Gets the icon used in the maximize button in the title bar of {@link javax.swing.JInternalFrame}'s.
|
IconUIResource | getInternalFrameMinimizeIcon()
Gets the icon used in the minimize button in the title bar of {@link javax.swing.JInternalFrame}'s.
|
FontUIResource | getInternalFrameTitleFont()
Gets the font used in the title of {@link javax.swing.JInternalFrame}'s. |
BorderUIResource | getListFocusedItemBorder()
Gets the border used around the focused list item in {@link javax.swing.JList}'s and {@link javax.swing.JComboBox}'s.
|
BorderUIResource | getListItemBorder()
Gets the border used around list items in {@link javax.swing.JList}'s and {@link javax.swing.JComboBox}'s.
|
BorderUIResource | getMenuBarBorder()
Gets the border used around {@link javax.swing.JMenuBar}'s.
|
String | getName()
Returns the theme name.
|
FontUIResource | getOptionPaneButtonFont()
Gets the font used in {@link javax.swing.JOptionPane} buttons. |
BorderUIResource | getPopupMenuBorder()
Gets the border of a {@link javax.swing.JPopupMenu}.
|
ColorUIResource | getPrimaryControlColor()
Gets the color of scrollbar "knobs" etc.
|
ColorUIResource | getPrimaryControlDarkShadowColor()
Gets the primary control dark shadow color. |
ColorUIResource | getPrimaryControlHighlightColor()
Gets the primary control highlight color. |
ColorUIResource | getPrimaryControlShadowColor()
Gets the primary control shadow color. |
ColorUIResource | getScrollBarBackgroundColor()
Gets the background color for {@link javax.swing.JScrollBar}'s.
|
ColorUIResource | getScrollBarBackgroundShadowColor()
Gets the background shadow color for {@link javax.swing.JScrollBar}'s. |
int | getScrollBarWidth()
Gets the width of a {@link javax.swing.JScrollBar}.
|
ColorUIResource | getSelectedMenuBackgroundColor()
Gets the background color used for selected {@link javax.swing.JMenuItem}'s.
|
ColorUIResource | getSelectedMenuForegroundColor()
Gets the foreground color used for selected {@link javax.swing.JMenuItem}'s.
|
ColorUIResource | getSelectedTextBackgroundColor()
Gets the selected text background color.
|
ColorUIResource | getSelectedTextColor()
Gets the selected text color.
|
double | getShadingFactor()
Returns the shading factor. |
int | getSplitPaneDividerSize()
Gets the size of the {@link javax.swing.JSplitPane} divider.
|
BorderUIResource | getTableHeaderCellBorder()
Gets the border around cells in {@link javax.swing.table.JTableHeader}'s.
|
ColorUIResource | getTextColor()
Gets the text color.
|
BorderUIResource | getTextFieldBorder()
Gets the border used around {@link javax.swing.JTextField} (including spinners etc.).
|
ColorUIResource | getTooltipBackgroundColor()
Gets the background color for {@link javax.swing.JToolTip}.
|
ColorUIResource | getTooltipForegroundColor()
Gets the background color used in {@link javax.swing.JToolTip}.
|
IconUIResource | getTreeClosedIcon()
Gets the icon used with closed nodes in a {@link javax.swing.JTree}.
|
ColorUIResource | getTreeIconBackgroundColor()
Gets the background color used for collapse and expand icons in a {@link javax.swing.JTree}.
|
IconUIResource | getTreeLeafIcon()
Gets the icon used with leaf nodes in a {@link javax.swing.JTree}.
|
IconUIResource | getTreeOpenIcon()
Gets the icon used with open nodes in a {@link javax.swing.JTree}.
|
void | setActiveInternalFrameTitleBackgroundColor(Color activeInternalFrameTitleBackgroundColor)
Sets the background color for the title of an active {@link javax.swing.JInternalFrame}.
|
void | setActiveInternalFrameTitleForegroundColor(Color activeInternalFrameTitleForegroundColor)
Sets the foreground color for the title of an active {@link javax.swing.JInternalFrame}.
|
void | setActiveInternalFrameTitleGradientColor(Color activeInternalFrameTitleGradientColor)
Sets the gradient color for the title of an active {@link javax.swing.JInternalFrame}.
|
void | setBackgroundColor(Color c)
Sets the background color used in {@link javax.swing.JViewport}, {@link javax.swing.JTree}, {@link
javax.swing.JTable} etc.
|
void | setButtonMargin(InsetsUIResource buttonMargin)
Sets the margin of a {@link javax.swing.JButton}.
|
void | setControlColor(Color color)
Sets the background color for {@link javax.swing.JComponent}'s.
|
void | setDesktopColor(Color desktopColor)
Sets the background color for a {@link javax.swing.JDesktopPane}.
|
void | setFocusColor(Color focusColor)
Sets the focus marker color.
|
void | setFont(FontUIResource font)
Sets the base font. |
void | setInactiveInternalFrameTitleBackgroundColor(Color inactiveInternalFrameTitleBackgroundColor)
Sets the background color for the title of an inactive {@link javax.swing.JInternalFrame}.
|
void | setInactiveInternalFrameTitleForegroundColor(Color inactiveInternalFrameTitleForegroundColor)
Sets the foreground color for the title of an inactive {@link javax.swing.JInternalFrame}.
|
void | setInactiveInternalFrameTitleGradientColor(Color inactiveInternalFrameTitleGradientColor)
Sets the gradient color for the title of an inactive {@link javax.swing.JInternalFrame}.
|
void | setInactiveTextColor(Color inactiveTextColor)
Sets the inactive text color.
|
void | setInternalFrameBorder(BorderUIResource internalFrameBorder)
Sets the border used around {@link javax.swing.JInternalFrame}'s.
|
void | setInternalFrameCloseIcon(IconUIResource internalFrameCloseIcon)
Sets the icon used in the close button in the title bar of {@link javax.swing.JInternalFrame}'s.
|
void | setInternalFrameIcon(IconUIResource internalFrameIcon)
Sets the icon to the left in the title bar of {@link javax.swing.JInternalFrame}'s.
|
void | setInternalFrameIconifyIcon(IconUIResource internalFrameIconifyIcon)
Sets the icon used in the iconify button in the title of a {@link javax.swing.JInternalFrame}.
|
void | setInternalFrameMaximizeIcon(IconUIResource internalFrameMaximizeIcon)
Sets the icon used in the maximize button in the title bar of {@link javax.swing.JInternalFrame}'s.
|
void | setInternalFrameMinimizeIcon(IconUIResource internalFrameMinimizeIcon)
Sets the icon used in the minimize button in the title bar of {@link javax.swing.JInternalFrame}'s.
|
void | setInternalFrameTitleFont(FontUIResource internalFrameTitleFont)
Sets the font used in the title of {@link javax.swing.JInternalFrame}'s. |
void | setInternalFrameTitleFont(Font frameTitleFont)
Sets the title font of an {@link javax.swing.JInternalFrame}.
|
void | setListFocusedItemBorder(BorderUIResource listFocusedItemBorder)
Sets the border used around the focused list item in {@link javax.swing.JList}'s and {@link javax.swing.JComboBox}'s.
|
void | setListItemBorder(BorderUIResource listItemBorder)
Sets the border used around list items in {@link javax.swing.JList}'s and {@link javax.swing.JComboBox}'s.
|
void | setMenuBarBorder(BorderUIResource menuBarBorder)
Sets the border used around {@link javax.swing.JMenuBar}'s.
|
void | setOptionPaneButtonFont(FontUIResource optionPaneButtonFont)
Sets the font used in {@link javax.swing.JOptionPane} buttons. |
void | setOptionPaneButtonFont(Font optionPaneButtonFont)
Sets the button font for a {@link javax.swing.JOptionPane}. |
void | setPopupMenuBorder(BorderUIResource popupMenuBorder)
Sets the border of a {@link javax.swing.JPopupMenu}.
|
void | setPrimaryControlColor(Color c)
Sets the primary control background color used in scroll bar knobs etc.
|
void | setScrollBarBackgroundColor(Color scrollBarBackgroundColor)
Sets the {@link javax.swing.JScrollBar} background color.
|
void | setScrollBarWidth(int scrollBarWidth)
Sets the width of a {@link javax.swing.JScrollBar}.
|
void | setSelectedMenuBackgroundColor(Color selectedMenuBackgroundColor)
Sets the background color for a selected menu item.
|
void | setSelectedMenuForegroundColor(Color selectedMenuForegroundColor)
Sets the foreground color for a selected menu item.
|
void | setSelectedTextBackgroundColor(Color selectedTextBackgroundColor)
Sets the selected text background color.
|
void | setSelectedTextColor(Color selectedTextColor)
Sets the selected text color.
|
void | setShadingFactor(double shadingFactor)
Sets the shading factor. |
void | setSplitPaneDividerSize(int splitPaneDividerSize)
Sets the size of the {@link javax.swing.JSplitPane} divider.
|
void | setTableHeaderCellBorder(BorderUIResource tableHeaderCellBorder)
Sets the border for the cells of a {@link javax.swing.table.JTableHeader}.
|
void | setTextColor(Color c)
Sets the text color.
|
void | setTextFieldBorder(BorderUIResource textFieldBorder)
Sets the border used around {@link javax.swing.JTextField} (including spinners etc.).
|
void | setTooltipBackgroundColor(Color tooltipBackgroundColor)
Sets the tooltip background color.
|
void | setTooltipForegroundColor(ColorUIResource tooltipForegroundColor)
Sets the foreground color used in {@link javax.swing.JToolTip}.
|
void | setTreeClosedIcon(IconUIResource treeClosedIcon)
Sets the icon used with closed nodes in a {@link javax.swing.JTree}.
|
void | setTreeIconBackgroundColor(Color treeIconBackgroundColor)
Sets the background color for the expand/collapse icons in a {@link javax.swing.JTree}.
|
void | setTreeLeafIcon(IconUIResource treeLeafIcon)
Sets the icon used with leaf nodes in a {@link javax.swing.JTree}.
|
void | setTreeOpenIcon(IconUIResource treeOpenIcon)
Sets the icon used with open nodes in a {@link javax.swing.JTree}.
|
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
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
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.
Returns: the background color for active {@link javax.swing.JInternalFrame}'s
Returns: the foreground color for active {@link javax.swing.JInternalFrame}'s
Returns: the gradient color for active {@link javax.swing.JInternalFrame}'s
Returns: the background color for {@link javax.swing.JViewport}, {@link javax.swing.JTree}, {@link javax.swing.JTable} etc.
Returns: the margin of a {@link javax.swing.JButton}
Returns: the background color used for {@link javax.swing.JComponent}
Returns: the control dark shadow color
Returns: the control highlight color
Returns: the control light shadow color
Returns: the control shadow color
Returns: the desktop color used in {@link javax.swing.JDesktopPane} etc.
Returns: the control focus marker color
Returns: returns the base font
Returns: the background color for inactive {@link javax.swing.JInternalFrame}'s
Returns: the foreground color for inactive {@link javax.swing.JInternalFrame}'s
Returns: the gradient color for inactive {@link javax.swing.JInternalFrame}'s
Returns: the color used for inactive text
Returns: the border used around {@link javax.swing.JInternalFrame}'s
Returns: the icon used in the close button in the title bar of {@link javax.swing.JInternalFrame}'s
Returns: the icon to the left in the title bar of {@link javax.swing.JInternalFrame}'s
Returns: the icon used in the iconify button in the title of a {@link javax.swing.JInternalFrame}
Returns: the icon used in the minimize button in the title bar of {@link javax.swing.JInternalFrame}'s
Returns: the icon used in the minimize button in the title bar of {@link javax.swing.JInternalFrame}'s
Returns: the font used in the title of {@link javax.swing.JInternalFrame}'s
Returns: the border used around the focused list item in {@link javax.swing.JList}'s and {@link javax.swing.JComboBox}'s
Returns: the border used around list items in {@link javax.swing.JList}'s and {@link javax.swing.JComboBox}'s
Returns: the border used around {@link javax.swing.JMenuBar}'s
Returns: the theme name
Returns: the font used in {@link javax.swing.JOptionPane} buttons
Returns: the border of a {@link javax.swing.JPopupMenu}
Returns: the color of scrollbar "knobs" etc,
Returns: the primary control dark shadow color
Returns: the primary control highlight color
Returns: the primary control shadow color
Returns: the background color for {@link javax.swing.JScrollBar}'s
Returns: the background color for {@link javax.swing.JScrollBar}'s.
Returns: the width of a {@link javax.swing.JScrollBar}
Returns: the background color used for selected {@link javax.swing.JMenuItem}'s
Returns: the foreground color used for selected {@link javax.swing.JMenuItem}'s
Returns: the selected text background color
Returns: the selected text color
Returns: the shading factor
Returns: the size of the {@link javax.swing.JSplitPane} divider
Returns: the border around cells in {@link javax.swing.table.JTableHeader}'s
Returns: the text color
Returns: the border used around {@link javax.swing.JTextField}
Returns: the background color for {@link javax.swing.JToolTip}
Returns: the background color used in {@link javax.swing.JToolTip}
Returns: the icon used with closed nodes in a {@link javax.swing.JTree}
Returns: the background color used for collapse and expand icons in a {@link javax.swing.JTree}
Returns: the icon used with leaf nodes in a {@link javax.swing.JTree}
Returns: the icon used with open nodes in a {@link javax.swing.JTree}
Parameters: activeInternalFrameTitleBackgroundColor the background color for the title of an active {@link javax.swing.JInternalFrame}
Parameters: activeInternalFrameTitleForegroundColor the background color for the title of an active {@link javax.swing.JInternalFrame}
Parameters: activeInternalFrameTitleGradientColor the gradient color for the title of an active {@link javax.swing.JInternalFrame}
Parameters: c the background color used in {@link javax.swing.JViewport}, {@link javax.swing.JTree}, {@link javax.swing.JTable} etc.
Parameters: buttonMargin the margin of a {@link javax.swing.JButton}
Parameters: color the control color
Parameters: desktopColor the background color for a {@link javax.swing.JDesktopPane}
Parameters: focusColor the focus marker color
Parameters: font the base font
Parameters: inactiveInternalFrameTitleBackgroundColor the background color for the title of an inactive {@link javax.swing.JInternalFrame}
Parameters: inactiveInternalFrameTitleForegroundColor the background color for the title of an active {@link javax.swing.JInternalFrame}
Parameters: inactiveInternalFrameTitleGradientColor the gradient color for the title of an inactive {@link javax.swing.JInternalFrame}
Parameters: inactiveTextColor the inactive text color
Parameters: internalFrameBorder the border used around {@link javax.swing.JInternalFrame}'s
Parameters: internalFrameCloseIcon the icon
Parameters: internalFrameIcon the icon
Parameters: internalFrameIconifyIcon the icon used in the iconify button in the title of a {@link javax.swing.JInternalFrame}
Parameters: internalFrameMaximizeIcon the icon
Parameters: internalFrameMinimizeIcon the icon
Parameters: internalFrameTitleFont the font
Parameters: frameTitleFont the title font of an {@link javax.swing.JInternalFrame}
Parameters: listFocusedItemBorder the border used around the focused list item in {@link javax.swing.JList}'s and {@link javax.swing.JComboBox}'s
Parameters: listItemBorder the border used around list items in {@link javax.swing.JList}'s and {@link javax.swing.JComboBox}'s
Parameters: menuBarBorder the border used around {@link javax.swing.JMenuBar}'s
Parameters: optionPaneButtonFont the font used in {@link javax.swing.JOptionPane} buttons
Parameters: optionPaneButtonFont the button font for a {@link javax.swing.JOptionPane}
Parameters: popupMenuBorder the border of a {@link javax.swing.JPopupMenu}
Parameters: c the primary control background color
Parameters: scrollBarBackgroundColor the {@link javax.swing.JScrollBar} background color
Parameters: scrollBarWidth the width of a {@link javax.swing.JScrollBar}
Parameters: selectedMenuBackgroundColor the background color for a selected menu item
Parameters: selectedMenuForegroundColor the foreground color for a selected menu item
Parameters: selectedTextBackgroundColor the selected text background color
Parameters: selectedTextColor the selected text color
Parameters: shadingFactor the shading factor
Parameters: splitPaneDividerSize the size of the {@link javax.swing.JSplitPane} divider
Parameters: tableHeaderCellBorder the border for the cells of a {@link javax.swing.table.JTableHeader}
Parameters: c the text color
Parameters: textFieldBorder the border used around {@link javax.swing.JTextField}
Parameters: tooltipBackgroundColor the tooltip background color
Parameters: tooltipForegroundColor the foreground color used in {@link javax.swing.JToolTip}
Parameters: treeClosedIcon the icon used with closed nodes in a {@link javax.swing.JTree}
Parameters: treeIconBackgroundColor the background color for the expand/collapse icons in a {@link javax.swing.JTree}
Parameters: treeLeafIcon the icon used with leaf nodes in a {@link javax.swing.JTree}
Parameters: treeOpenIcon the icon used with open nodes in a {@link javax.swing.JTree}