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