Package net.infonode.gui.laf
Class InfoNodeLookAndFeelTheme
- java.lang.Object
-
- net.infonode.gui.laf.InfoNodeLookAndFeelTheme
-
public class InfoNodeLookAndFeelTheme extends java.lang.ObjectA theme for InfoNode look and feel. The theme infers some default colors from others, so modifying a color might affect other, unmodified colors.
-
-
Field Summary
Fields Modifier and Type Field Description static java.awt.ColorDEFAULT_BACKGROUND_COLORstatic java.awt.ColorDEFAULT_CONTROL_COLORstatic java.awt.ColorDEFAULT_DESKTOP_COLORstatic intDEFAULT_FONT_SIZEstatic java.awt.ColorDEFAULT_PRIMARY_CONTROL_COLORstatic java.awt.ColorDEFAULT_SELECTED_BACKGROUND_COLORstatic java.awt.ColorDEFAULT_SELECTED_TEXT_COLORstatic java.awt.ColorDEFAULT_TEXT_COLORstatic java.awt.ColorDEFAULT_TOOLTIP_BACKGROUND_COLORstatic java.awt.ColorDEFAULT_TOOLTIP_FOREGROUND_COLOR
-
Constructor Summary
Constructors Constructor Description 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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.swing.plaf.ColorUIResourcegetActiveInternalFrameTitleBackgroundColor()Gets the background color for activeJInternalFrame's.javax.swing.plaf.ColorUIResourcegetActiveInternalFrameTitleForegroundColor()Gets the foreground color for activeJInternalFrame's.javax.swing.plaf.ColorUIResourcegetActiveInternalFrameTitleGradientColor()Gets the gradient color for activeJInternalFrame's.javax.swing.plaf.ColorUIResourcegetBackgroundColor()Gets the background color forJViewport,JTree,JTableetc.javax.swing.plaf.InsetsUIResourcegetButtonMargin()Gets the margin of aJButton.javax.swing.plaf.ColorUIResourcegetControlColor()Gets the background color used forJComponent.javax.swing.plaf.ColorUIResourcegetControlDarkShadowColor()Gets the control dark shadow color.javax.swing.plaf.ColorUIResourcegetControlHighlightColor()Gets the control highlight color.javax.swing.plaf.ColorUIResourcegetControlLightShadowColor()Gets the control light shadow color.javax.swing.plaf.ColorUIResourcegetControlShadowColor()Gets the control shadow color.javax.swing.plaf.ColorUIResourcegetDesktopColor()Gets the desktop color used inJDesktopPaneetc.javax.swing.plaf.ColorUIResourcegetFocusColor()Gets the control focus marker color.javax.swing.plaf.FontUIResourcegetFont()Returns the base font.javax.swing.plaf.ColorUIResourcegetInactiveInternalFrameTitleBackgroundColor()Gets the background color for inactiveJInternalFrame's.javax.swing.plaf.ColorUIResourcegetInactiveInternalFrameTitleForegroundColor()Gets the foreground color for inactiveJInternalFrame's.javax.swing.plaf.ColorUIResourcegetInactiveInternalFrameTitleGradientColor()Gets the gradient color for inactiveJInternalFrame's.javax.swing.plaf.ColorUIResourcegetInactiveTextColor()Gets the color used for inactive text.javax.swing.plaf.BorderUIResourcegetInternalFrameBorder()Gets the border used aroundJInternalFrame's.javax.swing.plaf.IconUIResourcegetInternalFrameCloseIcon()Gets the icon used in the close button in the title bar ofJInternalFrame's.javax.swing.plaf.IconUIResourcegetInternalFrameIcon()Gets the icon to the left in the title bar ofJInternalFrame's.javax.swing.plaf.IconUIResourcegetInternalFrameIconifyIcon()Gets the icon used in the iconify button in the title of aJInternalFrame.javax.swing.plaf.IconUIResourcegetInternalFrameMaximizeIcon()Gets the icon used in the maximize button in the title bar ofJInternalFrame's.javax.swing.plaf.IconUIResourcegetInternalFrameMinimizeIcon()Gets the icon used in the minimize button in the title bar ofJInternalFrame's.javax.swing.plaf.FontUIResourcegetInternalFrameTitleFont()Gets the font used in the title ofJInternalFrame's.javax.swing.plaf.BorderUIResourcegetListFocusedItemBorder()Gets the border used around the focused list item inJList's andJComboBox's.javax.swing.plaf.BorderUIResourcegetListItemBorder()Gets the border used around list items inJList's andJComboBox's.javax.swing.plaf.BorderUIResourcegetMenuBarBorder()Gets the border used aroundJMenuBar's.java.lang.StringgetName()Returns the theme name.javax.swing.plaf.FontUIResourcegetOptionPaneButtonFont()Gets the font used inJOptionPanebuttons.javax.swing.plaf.BorderUIResourcegetPopupMenuBorder()Gets the border of aJPopupMenu.javax.swing.plaf.ColorUIResourcegetPrimaryControlColor()Gets the color of scrollbar "knobs" etc.javax.swing.plaf.ColorUIResourcegetPrimaryControlDarkShadowColor()Gets the primary control dark shadow color.javax.swing.plaf.ColorUIResourcegetPrimaryControlHighlightColor()Gets the primary control highlight color.javax.swing.plaf.ColorUIResourcegetPrimaryControlShadowColor()Gets the primary control shadow color.javax.swing.plaf.ColorUIResourcegetScrollBarBackgroundColor()Gets the background color forJScrollBar's.javax.swing.plaf.ColorUIResourcegetScrollBarBackgroundShadowColor()Gets the background shadow color forJScrollBar's.intgetScrollBarWidth()Gets the width of aJScrollBar.javax.swing.plaf.ColorUIResourcegetSelectedMenuBackgroundColor()Gets the background color used for selectedJMenuItem's.javax.swing.plaf.ColorUIResourcegetSelectedMenuForegroundColor()Gets the foreground color used for selectedJMenuItem's.javax.swing.plaf.ColorUIResourcegetSelectedTextBackgroundColor()Gets the selected text background color.javax.swing.plaf.ColorUIResourcegetSelectedTextColor()Gets the selected text color.doublegetShadingFactor()Returns the shading factor.intgetSplitPaneDividerSize()Gets the size of theJSplitPanedivider.javax.swing.plaf.BorderUIResourcegetTableHeaderCellBorder()Gets the border around cells inJTableHeader's.javax.swing.plaf.ColorUIResourcegetTextColor()Gets the text color.javax.swing.plaf.BorderUIResourcegetTextFieldBorder()Gets the border used aroundJTextField(including spinners etc.).javax.swing.plaf.ColorUIResourcegetTooltipBackgroundColor()Gets the background color forJToolTip.javax.swing.plaf.ColorUIResourcegetTooltipForegroundColor()Gets the background color used inJToolTip.javax.swing.plaf.IconUIResourcegetTreeClosedIcon()Gets the icon used with closed nodes in aJTree.javax.swing.plaf.ColorUIResourcegetTreeIconBackgroundColor()Gets the background color used for collapse and expand icons in aJTree.javax.swing.plaf.IconUIResourcegetTreeLeafIcon()Gets the icon used with leaf nodes in aJTree.javax.swing.plaf.IconUIResourcegetTreeOpenIcon()Gets the icon used with open nodes in aJTree.voidsetActiveInternalFrameTitleBackgroundColor(java.awt.Color activeInternalFrameTitleBackgroundColor)Sets the background color for the title of an activeJInternalFrame.voidsetActiveInternalFrameTitleForegroundColor(java.awt.Color activeInternalFrameTitleForegroundColor)Sets the foreground color for the title of an activeJInternalFrame.voidsetActiveInternalFrameTitleGradientColor(java.awt.Color activeInternalFrameTitleGradientColor)Sets the gradient color for the title of an activeJInternalFrame.voidsetBackgroundColor(java.awt.Color c)Sets the background color used inJViewport,JTree,JTableetc.voidsetButtonMargin(javax.swing.plaf.InsetsUIResource buttonMargin)Sets the margin of aJButton.voidsetControlColor(java.awt.Color color)Sets the background color forJComponent's.voidsetDesktopColor(java.awt.Color desktopColor)Sets the background color for aJDesktopPane.voidsetFocusColor(java.awt.Color focusColor)Sets the focus marker color.voidsetFont(javax.swing.plaf.FontUIResource font)Sets the base font.voidsetInactiveInternalFrameTitleBackgroundColor(java.awt.Color inactiveInternalFrameTitleBackgroundColor)Sets the background color for the title of an inactiveJInternalFrame.voidsetInactiveInternalFrameTitleForegroundColor(java.awt.Color inactiveInternalFrameTitleForegroundColor)Sets the foreground color for the title of an inactiveJInternalFrame.voidsetInactiveInternalFrameTitleGradientColor(java.awt.Color inactiveInternalFrameTitleGradientColor)Sets the gradient color for the title of an inactiveJInternalFrame.voidsetInactiveTextColor(java.awt.Color inactiveTextColor)Sets the inactive text color.voidsetInternalFrameBorder(javax.swing.plaf.BorderUIResource internalFrameBorder)Sets the border used aroundJInternalFrame's.voidsetInternalFrameCloseIcon(javax.swing.plaf.IconUIResource internalFrameCloseIcon)Sets the icon used in the close button in the title bar ofJInternalFrame's.voidsetInternalFrameIcon(javax.swing.plaf.IconUIResource internalFrameIcon)Sets the icon to the left in the title bar ofJInternalFrame's.voidsetInternalFrameIconifyIcon(javax.swing.plaf.IconUIResource internalFrameIconifyIcon)Sets the icon used in the iconify button in the title of aJInternalFrame.voidsetInternalFrameMaximizeIcon(javax.swing.plaf.IconUIResource internalFrameMaximizeIcon)Sets the icon used in the maximize button in the title bar ofJInternalFrame's.voidsetInternalFrameMinimizeIcon(javax.swing.plaf.IconUIResource internalFrameMinimizeIcon)Sets the icon used in the minimize button in the title bar ofJInternalFrame's.voidsetInternalFrameTitleFont(java.awt.Font frameTitleFont)Sets the title font of anJInternalFrame.voidsetInternalFrameTitleFont(javax.swing.plaf.FontUIResource internalFrameTitleFont)Sets the font used in the title ofJInternalFrame's.voidsetListFocusedItemBorder(javax.swing.plaf.BorderUIResource listFocusedItemBorder)Sets the border used around the focused list item inJList's andJComboBox's.voidsetListItemBorder(javax.swing.plaf.BorderUIResource listItemBorder)Sets the border used around list items inJList's andJComboBox's.voidsetMenuBarBorder(javax.swing.plaf.BorderUIResource menuBarBorder)Sets the border used aroundJMenuBar's.voidsetOptionPaneButtonFont(java.awt.Font optionPaneButtonFont)Sets the button font for aJOptionPane.voidsetOptionPaneButtonFont(javax.swing.plaf.FontUIResource optionPaneButtonFont)Sets the font used inJOptionPanebuttons.voidsetPopupMenuBorder(javax.swing.plaf.BorderUIResource popupMenuBorder)Sets the border of aJPopupMenu.voidsetPrimaryControlColor(java.awt.Color c)Sets the primary control background color used in scroll bar knobs etc.voidsetScrollBarBackgroundColor(java.awt.Color scrollBarBackgroundColor)Sets theJScrollBarbackground color.voidsetScrollBarWidth(int scrollBarWidth)Sets the width of aJScrollBar.voidsetSelectedMenuBackgroundColor(java.awt.Color selectedMenuBackgroundColor)Sets the background color for a selected menu item.voidsetSelectedMenuForegroundColor(java.awt.Color selectedMenuForegroundColor)Sets the foreground color for a selected menu item.voidsetSelectedTextBackgroundColor(java.awt.Color selectedTextBackgroundColor)Sets the selected text background color.voidsetSelectedTextColor(java.awt.Color selectedTextColor)Sets the selected text color.voidsetShadingFactor(double shadingFactor)Sets the shading factor.voidsetSplitPaneDividerSize(int splitPaneDividerSize)Sets the size of theJSplitPanedivider.voidsetTableHeaderCellBorder(javax.swing.plaf.BorderUIResource tableHeaderCellBorder)Sets the border for the cells of aJTableHeader.voidsetTextColor(java.awt.Color c)Sets the text color.voidsetTextFieldBorder(javax.swing.plaf.BorderUIResource textFieldBorder)Sets the border used aroundJTextField(including spinners etc.).voidsetTooltipBackgroundColor(java.awt.Color tooltipBackgroundColor)Sets the tooltip background color.voidsetTooltipForegroundColor(javax.swing.plaf.ColorUIResource tooltipForegroundColor)Sets the foreground color used inJToolTip.voidsetTreeClosedIcon(javax.swing.plaf.IconUIResource treeClosedIcon)Sets the icon used with closed nodes in aJTree.voidsetTreeIconBackgroundColor(java.awt.Color treeIconBackgroundColor)Sets the background color for the expand/collapse icons in aJTree.voidsetTreeLeafIcon(javax.swing.plaf.IconUIResource treeLeafIcon)Sets the icon used with leaf nodes in aJTree.voidsetTreeOpenIcon(javax.swing.plaf.IconUIResource treeOpenIcon)Sets the icon used with open nodes in aJTree.
-
-
-
Field Detail
-
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
-
-
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 themecontrolColor- the background color for buttons, labels etc.primaryControlColor- the color of scrollbar "knobs", text and menu selection backgroundbackgroundColor- 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 themecontrolColor- 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 colorselectedBackgroundColor- the background color for selected text, selected menu itemsselectedTextColor- 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 themecontrolColor- 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 colorselectedBackgroundColor- the background color for selected text, selected menu itemsselectedTextColor- the text color for selected text, selected menu itemsshadingFactor- the shading factor is used when calculating brighter and darker control colors. A higher factor gives brighter and darker colors.
-
-
Method Detail
-
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 forJComponent.- 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 forJViewport,JTree,JTableetc.- Returns:
- the background color for
JViewport,JTree,JTableetc.
-
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 forJToolTip.- Returns:
- the background color for
JToolTip
-
getDesktopColor
public javax.swing.plaf.ColorUIResource getDesktopColor()
Gets the desktop color used inJDesktopPaneetc.- Returns:
- the desktop color used in
JDesktopPaneetc.
-
getTreeIconBackgroundColor
public javax.swing.plaf.ColorUIResource getTreeIconBackgroundColor()
Gets the background color used for collapse and expand icons in aJTree.- 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 selectedJMenuItem's.- Returns:
- the background color used for selected
JMenuItem's
-
getSelectedMenuForegroundColor
public javax.swing.plaf.ColorUIResource getSelectedMenuForegroundColor()
Gets the foreground color used for selectedJMenuItem'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 forJScrollBar's.- Returns:
- the background color for
JScrollBar's
-
getScrollBarBackgroundShadowColor
public javax.swing.plaf.ColorUIResource getScrollBarBackgroundShadowColor()
Gets the background shadow color forJScrollBar'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 activeJInternalFrame's.- Returns:
- the background color for active
JInternalFrame's
-
getActiveInternalFrameTitleForegroundColor
public javax.swing.plaf.ColorUIResource getActiveInternalFrameTitleForegroundColor()
Gets the foreground color for activeJInternalFrame's.- Returns:
- the foreground color for active
JInternalFrame's
-
getActiveInternalFrameTitleGradientColor
public javax.swing.plaf.ColorUIResource getActiveInternalFrameTitleGradientColor()
Gets the gradient color for activeJInternalFrame's.- Returns:
- the gradient color for active
JInternalFrame's
-
getInactiveInternalFrameTitleBackgroundColor
public javax.swing.plaf.ColorUIResource getInactiveInternalFrameTitleBackgroundColor()
Gets the background color for inactiveJInternalFrame's.- Returns:
- the background color for inactive
JInternalFrame's
-
getInactiveInternalFrameTitleForegroundColor
public javax.swing.plaf.ColorUIResource getInactiveInternalFrameTitleForegroundColor()
Gets the foreground color for inactiveJInternalFrame's.- Returns:
- the foreground color for inactive
JInternalFrame's
-
getInactiveInternalFrameTitleGradientColor
public javax.swing.plaf.ColorUIResource getInactiveInternalFrameTitleGradientColor()
Gets the gradient color for inactiveJInternalFrame's.- Returns:
- the gradient color for inactive
JInternalFrame's
-
getTableHeaderCellBorder
public javax.swing.plaf.BorderUIResource getTableHeaderCellBorder()
Gets the border around cells inJTableHeader'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 ofJInternalFrame'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 ofJInternalFrame's.- Parameters:
internalFrameIcon- the icon
-
getInternalFrameMinimizeIcon
public javax.swing.plaf.IconUIResource getInternalFrameMinimizeIcon()
Gets the icon used in the minimize button in the title bar ofJInternalFrame'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 ofJInternalFrame's.- Parameters:
internalFrameMinimizeIcon- the icon
-
getInternalFrameMaximizeIcon
public javax.swing.plaf.IconUIResource getInternalFrameMaximizeIcon()
Gets the icon used in the maximize button in the title bar ofJInternalFrame'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 ofJInternalFrame's.- Parameters:
internalFrameMaximizeIcon- the icon
-
getInternalFrameCloseIcon
public javax.swing.plaf.IconUIResource getInternalFrameCloseIcon()
Gets the icon used in the close button in the title bar ofJInternalFrame'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 ofJInternalFrame's.- Parameters:
internalFrameCloseIcon- the icon
-
getInternalFrameBorder
public javax.swing.plaf.BorderUIResource getInternalFrameBorder()
Gets the border used aroundJInternalFrame's.- Returns:
- the border used around
JInternalFrame's
-
setInternalFrameBorder
public void setInternalFrameBorder(javax.swing.plaf.BorderUIResource internalFrameBorder)
Sets the border used aroundJInternalFrame's.- Parameters:
internalFrameBorder- the border used aroundJInternalFrame's
-
getInternalFrameTitleFont
public javax.swing.plaf.FontUIResource getInternalFrameTitleFont()
Gets the font used in the title ofJInternalFrame'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 ofJInternalFrame'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 forJComponent'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 inJViewport,JTree,JTableetc.- Parameters:
c- the background color used inJViewport,JTree,JTableetc.
-
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 inJOptionPanebuttons. Defaults to the text font with bold style.- Returns:
- the font used in
JOptionPanebuttons
-
setOptionPaneButtonFont
public void setOptionPaneButtonFont(javax.swing.plaf.FontUIResource optionPaneButtonFont)
Sets the font used inJOptionPanebuttons. Defaults to the text font with bold style.- Parameters:
optionPaneButtonFont- the font used inJOptionPanebuttons
-
getSplitPaneDividerSize
public int getSplitPaneDividerSize()
Gets the size of theJSplitPanedivider.- Returns:
- the size of the
JSplitPanedivider
-
setSplitPaneDividerSize
public void setSplitPaneDividerSize(int splitPaneDividerSize)
Sets the size of theJSplitPanedivider.- Parameters:
splitPaneDividerSize- the size of theJSplitPanedivider
-
getTextFieldBorder
public javax.swing.plaf.BorderUIResource getTextFieldBorder()
Gets the border used aroundJTextField(including spinners etc.).- Returns:
- the border used around
JTextField
-
setTextFieldBorder
public void setTextFieldBorder(javax.swing.plaf.BorderUIResource textFieldBorder)
Sets the border used aroundJTextField(including spinners etc.).- Parameters:
textFieldBorder- the border used aroundJTextField
-
getTreeOpenIcon
public javax.swing.plaf.IconUIResource getTreeOpenIcon()
Gets the icon used with open nodes in aJTree.- 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 aJTree.- Parameters:
treeOpenIcon- the icon used with open nodes in aJTree
-
getTreeClosedIcon
public javax.swing.plaf.IconUIResource getTreeClosedIcon()
Gets the icon used with closed nodes in aJTree.- 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 aJTree.- Parameters:
treeClosedIcon- the icon used with closed nodes in aJTree
-
getTreeLeafIcon
public javax.swing.plaf.IconUIResource getTreeLeafIcon()
Gets the icon used with leaf nodes in aJTree.- 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 aJTree.- Parameters:
treeLeafIcon- the icon used with leaf nodes in aJTree
-
getMenuBarBorder
public javax.swing.plaf.BorderUIResource getMenuBarBorder()
Gets the border used aroundJMenuBar's.- Returns:
- the border used around
JMenuBar's
-
setMenuBarBorder
public void setMenuBarBorder(javax.swing.plaf.BorderUIResource menuBarBorder)
Sets the border used aroundJMenuBar's.- Parameters:
menuBarBorder- the border used aroundJMenuBar'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 aJDesktopPane.- Parameters:
desktopColor- the background color for aJDesktopPane
-
setTreeIconBackgroundColor
public void setTreeIconBackgroundColor(java.awt.Color treeIconBackgroundColor)
Sets the background color for the expand/collapse icons in aJTree.- Parameters:
treeIconBackgroundColor- the background color for the expand/collapse icons in aJTree
-
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 theJScrollBarbackground color.- Parameters:
scrollBarBackgroundColor- theJScrollBarbackground color
-
setActiveInternalFrameTitleBackgroundColor
public void setActiveInternalFrameTitleBackgroundColor(java.awt.Color activeInternalFrameTitleBackgroundColor)
Sets the background color for the title of an activeJInternalFrame.- Parameters:
activeInternalFrameTitleBackgroundColor- the background color for the title of an activeJInternalFrame
-
setActiveInternalFrameTitleForegroundColor
public void setActiveInternalFrameTitleForegroundColor(java.awt.Color activeInternalFrameTitleForegroundColor)
Sets the foreground color for the title of an activeJInternalFrame.- Parameters:
activeInternalFrameTitleForegroundColor- the background color for the title of an activeJInternalFrame
-
setActiveInternalFrameTitleGradientColor
public void setActiveInternalFrameTitleGradientColor(java.awt.Color activeInternalFrameTitleGradientColor)
Sets the gradient color for the title of an activeJInternalFrame.- Parameters:
activeInternalFrameTitleGradientColor- the gradient color for the title of an activeJInternalFrame
-
setInactiveInternalFrameTitleBackgroundColor
public void setInactiveInternalFrameTitleBackgroundColor(java.awt.Color inactiveInternalFrameTitleBackgroundColor)
Sets the background color for the title of an inactiveJInternalFrame.- Parameters:
inactiveInternalFrameTitleBackgroundColor- the background color for the title of an inactiveJInternalFrame
-
setInactiveInternalFrameTitleForegroundColor
public void setInactiveInternalFrameTitleForegroundColor(java.awt.Color inactiveInternalFrameTitleForegroundColor)
Sets the foreground color for the title of an inactiveJInternalFrame.- Parameters:
inactiveInternalFrameTitleForegroundColor- the background color for the title of an activeJInternalFrame
-
setInactiveInternalFrameTitleGradientColor
public void setInactiveInternalFrameTitleGradientColor(java.awt.Color inactiveInternalFrameTitleGradientColor)
Sets the gradient color for the title of an inactiveJInternalFrame.- Parameters:
inactiveInternalFrameTitleGradientColor- the gradient color for the title of an inactiveJInternalFrame
-
setInternalFrameTitleFont
public void setInternalFrameTitleFont(java.awt.Font frameTitleFont)
Sets the title font of anJInternalFrame.- Parameters:
frameTitleFont- the title font of anJInternalFrame
-
setOptionPaneButtonFont
public void setOptionPaneButtonFont(java.awt.Font optionPaneButtonFont)
Sets the button font for aJOptionPane. Default to the text font with bold style.- Parameters:
optionPaneButtonFont- the button font for aJOptionPane
-
setTableHeaderCellBorder
public void setTableHeaderCellBorder(javax.swing.plaf.BorderUIResource tableHeaderCellBorder)
Sets the border for the cells of aJTableHeader.- Parameters:
tableHeaderCellBorder- the border for the cells of aJTableHeader
-
getScrollBarWidth
public int getScrollBarWidth()
Gets the width of aJScrollBar.- Returns:
- the width of a
JScrollBar
-
setScrollBarWidth
public void setScrollBarWidth(int scrollBarWidth)
Sets the width of aJScrollBar.- Parameters:
scrollBarWidth- the width of aJScrollBar
-
getButtonMargin
public javax.swing.plaf.InsetsUIResource getButtonMargin()
Gets the margin of aJButton.- Returns:
- the margin of a
JButton
-
setButtonMargin
public void setButtonMargin(javax.swing.plaf.InsetsUIResource buttonMargin)
Sets the margin of aJButton.- Parameters:
buttonMargin- the margin of aJButton
-
getPopupMenuBorder
public javax.swing.plaf.BorderUIResource getPopupMenuBorder()
Gets the border of aJPopupMenu.- Returns:
- the border of a
JPopupMenu
-
setPopupMenuBorder
public void setPopupMenuBorder(javax.swing.plaf.BorderUIResource popupMenuBorder)
Sets the border of aJPopupMenu.- Parameters:
popupMenuBorder- the border of aJPopupMenu
-
getInternalFrameIconifyIcon
public javax.swing.plaf.IconUIResource getInternalFrameIconifyIcon()
Gets the icon used in the iconify button in the title of aJInternalFrame.- 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 aJInternalFrame.- Parameters:
internalFrameIconifyIcon- the icon used in the iconify button in the title of aJInternalFrame
-
getTooltipForegroundColor
public javax.swing.plaf.ColorUIResource getTooltipForegroundColor()
Gets the background color used inJToolTip.- Returns:
- the background color used in
JToolTip
-
setTooltipForegroundColor
public void setTooltipForegroundColor(javax.swing.plaf.ColorUIResource tooltipForegroundColor)
Sets the foreground color used inJToolTip.- Parameters:
tooltipForegroundColor- the foreground color used inJToolTip
-
getListItemBorder
public javax.swing.plaf.BorderUIResource getListItemBorder()
Gets the border used around list items inJList's andJComboBox's.- Returns:
- the border used around list items in
JList's andJComboBox's
-
setListItemBorder
public void setListItemBorder(javax.swing.plaf.BorderUIResource listItemBorder)
Sets the border used around list items inJList's andJComboBox's.- Parameters:
listItemBorder- the border used around list items inJList's andJComboBox's
-
getListFocusedItemBorder
public javax.swing.plaf.BorderUIResource getListFocusedItemBorder()
Gets the border used around the focused list item inJList's andJComboBox's.- Returns:
- the border used around the focused list item in
JList's andJComboBox's
-
setListFocusedItemBorder
public void setListFocusedItemBorder(javax.swing.plaf.BorderUIResource listFocusedItemBorder)
Sets the border used around the focused list item inJList's andJComboBox's.- Parameters:
listFocusedItemBorder- the border used around the focused list item inJList's andJComboBox's
-
-