API Overview API Index Package Overview Direct link to this page
JDK 1.6
  javax.swing.plaf.metal. MetalLookAndFeel View Source
Author(s)
Steve Wilson
Since
Version
@(#)MetalLookAndFeel.java 1.206 06/07/12
Serial
Hierarchy
 Object
      LookAndFeel
          BasicLookAndFeel
              MetalLookAndFeel
Implements
Subclasses
Description
public class MetalLookAndFeel
  The Java Look and Feel, otherwise known as Metal.
Constructors
public MetalLookAndFeel ()
Methods
Hide/Show inherited methods
protected Action createAudioAction (Object key) [Inherited From BasicLookAndFeel]
  Creates and returns an Action used to play a sound.
protected void createDefaultTheme ()
  Ensures the current MetalTheme is non-null.
pack-privatestatic void flushUnreferenced ()
publicstatic ColorUIResource getAcceleratorForeground ()
  Returns the accelerator foreground color of the current theme.
publicstatic ColorUIResource getAcceleratorSelectedForeground ()
  Returns the accelerator selected foreground color of the current theme.
protected ActionMap getAudioActionMap () [Inherited From BasicLookAndFeel]
  Returns an ActionMap containing the audio actions for this look and feel.
publicstatic ColorUIResource getBlack ()
  Returns the black color of the current theme.
publicstatic ColorUIResource getControl ()
  Returns the control color of the current theme.
publicstatic ColorUIResource getControlDarkShadow ()
  Returns the control dark shadow color of the current theme.
publicstatic ColorUIResource getControlDisabled ()
  Returns the control disabled color of the current theme.
publicstatic ColorUIResource getControlHighlight ()
  Returns the control highlight color of the current theme.
publicstatic ColorUIResource getControlInfo ()
  Returns the control info color of the current theme.
publicstatic ColorUIResource getControlShadow ()
  Returns the control shadow color of the current theme.
publicstatic ColorUIResource getControlTextColor ()
  Returns the control text color of the current theme.
publicstatic FontUIResource getControlTextFont ()
  Returns the control text font of the current theme.
publicstatic MetalTheme getCurrentTheme ()
  Return the theme currently being used by MetalLookAndFeel.
public UIDefaults getDefaults () [Overrides BasicLookAndFeel]
  Returns the look and feel defaults.
public String getDescription () [Specified in LookAndFeel]
  Returns a short description of this look and feel.
publicstatic ColorUIResource getDesktopColor ()
  Returns the desktop color of the current theme.
publicstatic Object getDesktopPropertyValue (String systemPropertyName, Object fallbackValue) [Inherited From LookAndFeel]
  Returns the value of the specified system desktop property by invoking Toolkit.getDefaultToolkit().getDesktopProperty().
public Icon getDisabledIcon (JComponent component, Icon icon) [Overrides LookAndFeel]
  Returns an Icon with a disabled appearance.
public Icon getDisabledSelectedIcon (JComponent component, Icon icon) [Overrides LookAndFeel]
  Returns an Icon for use by disabled components that are also selected.
publicstatic ColorUIResource getFocusColor ()
  Returns the focus color of the current theme.
publicstatic ColorUIResource getHighlightedTextColor ()
  Returns the highlighted text color of the current theme.
public String getID () [Specified in LookAndFeel]
  Returns an identifier for this look and feel.
publicstatic ColorUIResource getInactiveControlTextColor ()
  Returns the inactive control text color of the current theme.
publicstatic ColorUIResource getInactiveSystemTextColor ()
  Returns the inactive system text color of the current theme.
public LayoutStyle getLayoutStyle () [Overrides LookAndFeel]
  Returns a LayoutStyle implementing the Java look and feel design guidelines as specified at http://java.sun.com/products/jlf/ed2/book/HIG.Visual2.html.
publicstatic ColorUIResource getMenuBackground ()
  Returns the menu background color of the current theme.
publicstatic ColorUIResource getMenuDisabledForeground ()
  Returns the menu disabled foreground color of the current theme.
publicstatic ColorUIResource getMenuForeground ()
  Returns the menu foreground color of the current theme.
publicstatic ColorUIResource getMenuSelectedBackground ()
  Returns the menu selected background color of the current theme.
publicstatic ColorUIResource getMenuSelectedForeground ()
  Returns the menu selected foreground color of the current theme.
publicstatic FontUIResource getMenuTextFont ()
  Returns the menu text font of the current theme.
public String getName () [Specified in LookAndFeel]
  Returns the name of this look and feel.
publicstatic ColorUIResource getPrimaryControl ()
  Returns the primary control color of the current theme.
publicstatic ColorUIResource getPrimaryControlDarkShadow ()
  Returns the primary control dark shadow color of the current theme.
publicstatic ColorUIResource getPrimaryControlHighlight ()
  Returns the primary control highlight color of the current theme.
publicstatic ColorUIResource getPrimaryControlInfo ()
  Returns the primary control info color of the current theme.
publicstatic ColorUIResource getPrimaryControlShadow ()
  Returns the primary control shadow color of the current theme.
publicstatic ColorUIResource getSeparatorBackground ()
  Returns the separator background color of the current theme.
publicstatic ColorUIResource getSeparatorForeground ()
  Returns the separator foreground color of the current theme.
publicstatic FontUIResource getSubTextFont ()
  Returns the sub-text font of the current theme.
public boolean getSupportsWindowDecorations () [Overrides LookAndFeel]
  Returns true; metal can provide Window decorations.
publicstatic ColorUIResource getSystemTextColor ()
  Returns the system text color of the current theme.
publicstatic FontUIResource getSystemTextFont ()
  Returns the sytem text font of the current theme.
publicstatic ColorUIResource getTextHighlightColor ()
  Returns the text highlight color of the current theme.
publicstatic ColorUIResource getUserTextColor ()
  Returns the user text color of the current theme.
publicstatic FontUIResource getUserTextFont ()
  Returns the user text font of the current theme.
publicstatic ColorUIResource getWhite ()
  Returns the white color of the current theme.
publicstatic ColorUIResource getWindowBackground ()
  Returns the window background color of the current theme.
publicstatic ColorUIResource getWindowTitleBackground ()
  Returns the window title background color of the current theme.
publicstatic FontUIResource getWindowTitleFont ()
  Returns the window title font of the current theme.
publicstatic ColorUIResource getWindowTitleForeground ()
  Returns the window title foreground color of the current theme.
publicstatic ColorUIResource getWindowTitleInactiveBackground ()
  Returns the window title inactive background color of the current theme.
publicstatic ColorUIResource getWindowTitleInactiveForeground ()
  Returns the window title inactive foreground color of the current theme.
protected void initClassDefaults (UIDefaults table) [Overrides BasicLookAndFeel]
  Populates table with mappings from uiClassID to the fully qualified name of the ui class.
protected void initComponentDefaults (UIDefaults table) [Overrides BasicLookAndFeel]
  Populates table with the defaults for metal.
public void initialize () [Inherited From BasicLookAndFeel]
  Initializes the look and feel.
protected void initSystemColorDefaults (UIDefaults table) [Overrides BasicLookAndFeel]
  Populates table with system colors.
publicstatic void installBorder (JComponent c, String defaultBorderName) [Inherited From LookAndFeel]
  Convenience method for setting a component's border property with a value from the defaults.
publicstatic void installColors (JComponent c, String defaultBgName, String defaultFgName) [Inherited From LookAndFeel]
  Convenience method for setting a component's foreground and background color properties with values from the defaults.
publicstatic void installColorsAndFont (JComponent c, String defaultBgName, String defaultFgName, String defaultFontName) [Inherited From LookAndFeel]
  Convenience method for setting a component's foreground, background and font properties with values from the defaults.
publicstatic void installProperty (JComponent c, String propertyName, Object propertyValue) [Inherited From LookAndFeel]
  Convenience method for installing a property with the specified name and value on a component if that property has not already been set by the developer.
public boolean isNativeLookAndFeel () [Specified in LookAndFeel]
  Returns false; MetalLookAndFeel is not a native look and feel.
public boolean isSupportedLookAndFeel () [Specified in LookAndFeel]
  Returns true; MetalLookAndFeel can be run on any platform.
pack-privatestatic boolean isWindows ()
Returns true if running on Windows.
publicstatic void loadKeyBindings (InputMap retMap, Object keys) [Inherited From LookAndFeel]
  Populates an InputMap with the specified bindings.
protected void loadSystemColors (UIDefaults table, String systemColors, boolean useNative) [Inherited From BasicLookAndFeel]
  Populates table with the name-color pairs in systemColors.
publicstatic ComponentInputMap makeComponentInputMap (JComponent c, Object keys) [Inherited From LookAndFeel]
  Creates a ComponentInputMapUIResource from keys.
publicstatic Object makeIcon (Class<Object> baseClass, String gifFile) [Inherited From LookAndFeel]
  Creates and returns a UIDefault.LazyValue that loads an image.
publicstatic InputMap makeInputMap (Object keys) [Inherited From LookAndFeel]
  Creates a InputMapUIResource from keys.
publicstatic KeyBinding makeKeyBindings (Object keyBindingList) [Inherited From LookAndFeel]
  Convenience method for building an array of KeyBindings.
protected void playSound (Action audioAction) [Inherited From BasicLookAndFeel]
  If necessary, invokes actionPerformed on audioAction to play a sound.
public void provideErrorFeedback (Component component) [Overrides LookAndFeel]
  Invoked when the user attempts an invalid operation, such as pasting into an uneditable JTextField that has focus.
publicstatic void setCurrentTheme (MetalTheme theme)
  Set the theme used by MetalLookAndFeel.
public String toString () [Inherited From LookAndFeel]
  Returns a string that displays and identifies this object's properties.
public void uninitialize () [Inherited From BasicLookAndFeel]
  Uninitializes the look and feel.
publicstatic void uninstallBorder (JComponent c) [Inherited From LookAndFeel]
  Convenience method for uninstalling a border.
pack-privatestatic boolean useSystemFonts ()
Returns true if system fonts should be used, this is only useful for windows.
pack-privatestatic boolean usingOcean ()
Returns true if we're using the Ocean Theme.
Fields
Hide/Show inherited fields
pack-privatestatic ReferenceQueue queue
Nested Classes
  MetalLookAndFeel.AATextListener
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar