javax.swing.plaf.metal
Class MetalLookAndFeel
java.lang.Object
|
+--javax.swing.LookAndFeel
|
+--javax.swing.plaf.basic.BasicLookAndFeel
|
+--javax.swing.plaf.metal.MetalLookAndFeel
- public class MetalLookAndFeel
- extends BasicLookAndFeel
Implements The Metal Look and Feel.
For the keyboard keys defined for each component in this Look and
Feel (L&F), see
Component Keystroke Actions for the Metal L&F.
Warning:
Serialized objects of this class will not be compatible with
future Swing releases. The current serialization support is appropriate
for short term storage or RMI between applications running the same
version of Swing. A future release of Swing will provide support for
long term persistence.
- See Also:
- Serialized Form
MetalLookAndFeel
public MetalLookAndFeel()
getName
public String getName()
- Overrides:
- getName in class LookAndFeel
getID
public String getID()
- Overrides:
- getID in class LookAndFeel
getDescription
public String getDescription()
- Overrides:
- getDescription in class LookAndFeel
isNativeLookAndFeel
public boolean isNativeLookAndFeel()
- Overrides:
- isNativeLookAndFeel in class LookAndFeel
isSupportedLookAndFeel
public boolean isSupportedLookAndFeel()
- Overrides:
- isSupportedLookAndFeel in class LookAndFeel
initClassDefaults
protected void initClassDefaults(UIDefaults table)
- Initialize the uiClassID to BasicComponentUI mapping.
The JComponent classes define their own uiClassID constants
(see AbstractComponent.getUIClassID). This table must
map those constants to a BasicComponentUI class of the
appropriate type.
- Overrides:
- initClassDefaults in class BasicLookAndFeel
- See Also:
BasicLookAndFeel.getDefaults()
initSystemColorDefaults
protected void initSystemColorDefaults(UIDefaults table)
- Load the SystemColors into the defaults table. The keys
for SystemColor defaults are the same as the names of
the public fields in SystemColor.
- Overrides:
- initSystemColorDefaults in class BasicLookAndFeel
initComponentDefaults
protected void initComponentDefaults(UIDefaults table)
- Overrides:
- initComponentDefaults in class BasicLookAndFeel
createDefaultTheme
protected void createDefaultTheme()
getDefaults
public UIDefaults getDefaults()
- Overrides:
- getDefaults in class BasicLookAndFeel
setCurrentTheme
public static void setCurrentTheme(MetalTheme theme)
getControlTextFont
public static FontUIResource getControlTextFont()
getSystemTextFont
public static FontUIResource getSystemTextFont()
getUserTextFont
public static FontUIResource getUserTextFont()
getMenuTextFont
public static FontUIResource getMenuTextFont()
getWindowTitleFont
public static FontUIResource getWindowTitleFont()
getSubTextFont
public static FontUIResource getSubTextFont()
getDesktopColor
public static ColorUIResource getDesktopColor()
getFocusColor
public static ColorUIResource getFocusColor()
getWhite
public static ColorUIResource getWhite()
getBlack
public static ColorUIResource getBlack()
getControl
public static ColorUIResource getControl()
getControlShadow
public static ColorUIResource getControlShadow()
getControlDarkShadow
public static ColorUIResource getControlDarkShadow()
getControlInfo
public static ColorUIResource getControlInfo()
getControlHighlight
public static ColorUIResource getControlHighlight()
getControlDisabled
public static ColorUIResource getControlDisabled()
getPrimaryControl
public static ColorUIResource getPrimaryControl()
getPrimaryControlShadow
public static ColorUIResource getPrimaryControlShadow()
getPrimaryControlDarkShadow
public static ColorUIResource getPrimaryControlDarkShadow()
getPrimaryControlInfo
public static ColorUIResource getPrimaryControlInfo()
getPrimaryControlHighlight
public static ColorUIResource getPrimaryControlHighlight()
getSystemTextColor
public static ColorUIResource getSystemTextColor()
getControlTextColor
public static ColorUIResource getControlTextColor()
getInactiveControlTextColor
public static ColorUIResource getInactiveControlTextColor()
getInactiveSystemTextColor
public static ColorUIResource getInactiveSystemTextColor()
getUserTextColor
public static ColorUIResource getUserTextColor()
getTextHighlightColor
public static ColorUIResource getTextHighlightColor()
getHighlightedTextColor
public static ColorUIResource getHighlightedTextColor()
getWindowBackground
public static ColorUIResource getWindowBackground()
getWindowTitleBackground
public static ColorUIResource getWindowTitleBackground()
getWindowTitleForeground
public static ColorUIResource getWindowTitleForeground()
getWindowTitleInactiveBackground
public static ColorUIResource getWindowTitleInactiveBackground()
getWindowTitleInactiveForeground
public static ColorUIResource getWindowTitleInactiveForeground()
getMenuBackground
public static ColorUIResource getMenuBackground()
getMenuForeground
public static ColorUIResource getMenuForeground()
getMenuSelectedBackground
public static ColorUIResource getMenuSelectedBackground()
getMenuSelectedForeground
public static ColorUIResource getMenuSelectedForeground()
getMenuDisabledForeground
public static ColorUIResource getMenuDisabledForeground()
getSeparatorBackground
public static ColorUIResource getSeparatorBackground()
getSeparatorForeground
public static ColorUIResource getSeparatorForeground()
getAcceleratorForeground
public static ColorUIResource getAcceleratorForeground()
getAcceleratorSelectedForeground
public static ColorUIResource getAcceleratorSelectedForeground()
Submit a bug or feature Version 1.2 of Java Platform API Specification
Java is a trademark or registered trademark of Sun Microsystems, Inc. in the US and other countries.
Copyright 1993-1998 Sun Microsystems, Inc. 901 San Antonio Road,
Palo Alto, California, 94303, U.S.A. All Rights Reserved.