Quaqua 5.4.1 2009-07-14

ch.randelshofer.quaqua.leopard
Class Quaqua14LeopardCrossPlatformLookAndFeel

java.lang.Object
  extended by javax.swing.LookAndFeel
      extended by javax.swing.plaf.basic.BasicLookAndFeel
          extended by ch.randelshofer.quaqua.LookAndFeelProxy
              extended by ch.randelshofer.quaqua.BasicQuaquaLookAndFeel
                  extended by ch.randelshofer.quaqua.leopard.Quaqua14LeopardLookAndFeel
                      extended by ch.randelshofer.quaqua.leopard.Quaqua14LeopardCrossPlatformLookAndFeel
All Implemented Interfaces:
java.io.Serializable

public class Quaqua14LeopardCrossPlatformLookAndFeel
extends Quaqua14LeopardLookAndFeel

The Quaqua14LeopardCrossPlatformLookAndFeel provides bug fixes and enhancements for Apple's Aqua Look and Feel for Java 1.5 on Mac OS X 10.5 (Leopard).

The Quaqua Look and Feel can not be used on other platforms than Mac OS X.

Usage

Please use the QuaquaManager to activate this look and feel in your application. Or use the generic QuaquaLookAndFeel. Both are designed to autodetect the appropriate Quaqua Look and Feel implementation for current Java VM.

Version:
1.1.1 2008-05-05 Fixed "Menu.submenuPopupOffsetY".
1.1 2008-05-04 Draw menu selection background with a gradient.
1.0 2007-12-09 Created.
Author:
Werner Randelshofer
See Also:
QuaquaManager, QuaquaLookAndFeel, Serialized Form

Field Summary
 
Fields inherited from class ch.randelshofer.quaqua.BasicQuaquaLookAndFeel
commonDir, jaguarDir, leopardDir, pantherDir, tigerDir
 
Fields inherited from class ch.randelshofer.quaqua.LookAndFeelProxy
target
 
Constructor Summary
Quaqua14LeopardCrossPlatformLookAndFeel()
          Creates a new instance.
 
Method Summary
 java.lang.String getDescription()
          Return a one line description of this look and feel implementation, e.g.
 java.lang.String getName()
          Return a short string that identifies this look and feel, e.g.
 boolean getSupportsWindowDecorations()
          Returns true if the LookAndFeel returned RootPaneUI instances support providing Window decorations in a JRootPane.
protected  void initClassDefaults(javax.swing.UIDefaults table)
          Initialize the uiClassID to BasicComponentUI mapping.
protected  void initDesignDefaults(javax.swing.UIDefaults table)
          Init design specific look and feel defaults.
protected  void initSystemColorDefaults(javax.swing.UIDefaults table)
          Load the SystemColors into the defaults table.
protected  void installKeyboardFocusManager()
           
protected  boolean isUseScreenMenuBar()
           
 
Methods inherited from class ch.randelshofer.quaqua.leopard.Quaqua14LeopardLookAndFeel
initFontDefaults, isBrushedMetal
 
Methods inherited from class ch.randelshofer.quaqua.BasicQuaquaLookAndFeel
getBaseSystemFont, getDefaults, getID, initColorDefaults, initComponentDefaults, initGeneralDefaults, initInputMapDefaults, initResourceBundle, isJaguarTabbedPane, makeBufferedImage, makeButtonStateIcon, makeButtonStateIcon, makeButtonStateIcon, makeFrameButtonStateIcon, makeIcon, makeIcon, makeIcon, makeIcons, makeImage, makeImageBevelBackgroundBorder, makeImageBevelBorder, makeImageBevelBorder, makeImageBevelBorder, makeImageBevelBorders, makeNativeIcon, makeNativeIcon, makeOverlaidButtonStateIcon, makeSliderThumbIcon, makeTextureColor, putDefaults
 
Methods inherited from class ch.randelshofer.quaqua.LookAndFeelProxy
initialize, isNativeLookAndFeel, isSupportedLookAndFeel, provideErrorFeedback, setTarget, toString, uninitialize
 
Methods inherited from class javax.swing.plaf.basic.BasicLookAndFeel
createAudioAction, getAudioActionMap, loadSystemColors, playSound
 
Methods inherited from class javax.swing.LookAndFeel
getDesktopPropertyValue, getDisabledIcon, getDisabledSelectedIcon, installBorder, installColors, installColorsAndFont, installProperty, loadKeyBindings, makeComponentInputMap, makeIcon, makeInputMap, makeKeyBindings, uninstallBorder
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Quaqua14LeopardCrossPlatformLookAndFeel

public Quaqua14LeopardCrossPlatformLookAndFeel()
Creates a new instance.

Method Detail

getDescription

public java.lang.String getDescription()
Return a one line description of this look and feel implementation, e.g. "The CDE/Motif Look and Feel". This string is intended for the user, e.g. in the title of a window or in a ToolTip message.

Overrides:
getDescription in class Quaqua14LeopardLookAndFeel

initSystemColorDefaults

protected void initSystemColorDefaults(javax.swing.UIDefaults table)
Description copied from class: BasicQuaquaLookAndFeel
Load the SystemColors into the defaults table. The keys for SystemColor defaults are the same as the names of the public fields in SystemColor. If the table is being created on a native Windows platform we use the SystemColor values, otherwise we create color uiDefaults whose values match the defaults Windows95 colors.

Overrides:
initSystemColorDefaults in class Quaqua14LeopardLookAndFeel

getSupportsWindowDecorations

public boolean getSupportsWindowDecorations()
Description copied from class: BasicQuaquaLookAndFeel
Returns true if the LookAndFeel returned RootPaneUI instances support providing Window decorations in a JRootPane.

This implementation returns true, since it does support providing these border and window title pane decorations.

Overrides:
getSupportsWindowDecorations in class Quaqua14LeopardLookAndFeel
Returns:
True if the RootPaneUI instances created support client side decorations
See Also:
JDialog.setDefaultLookAndFeelDecorated(boolean), JFrame.setDefaultLookAndFeelDecorated(boolean), JRootPane.setWindowDecorationStyle(int)

isUseScreenMenuBar

protected boolean isUseScreenMenuBar()
Overrides:
isUseScreenMenuBar in class Quaqua14LeopardLookAndFeel

initClassDefaults

protected void initClassDefaults(javax.swing.UIDefaults table)
Description copied from class: Quaqua14LeopardLookAndFeel
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 Quaqua14LeopardLookAndFeel
See Also:
BasicQuaquaLookAndFeel.getDefaults()

initDesignDefaults

protected void initDesignDefaults(javax.swing.UIDefaults table)
Description copied from class: BasicQuaquaLookAndFeel
Init design specific look and feel defaults.

Overrides:
initDesignDefaults in class Quaqua14LeopardLookAndFeel

getName

public java.lang.String getName()
Return a short string that identifies this look and feel, e.g. "CDE/Motif". This string should be appropriate for a menu item. Distinct look and feels should have different names, e.g. a subclass of MotifLookAndFeel that changes the way a few components are rendered should be called "CDE/Motif My Way"; something that would be useful to a user trying to select a L&F from a list of names.

Overrides:
getName in class Quaqua14LeopardLookAndFeel

installKeyboardFocusManager

protected void installKeyboardFocusManager()
Overrides:
installKeyboardFocusManager in class Quaqua14LeopardLookAndFeel

Copyright 2003-2007 (c) Werner Randelshofer.
All rights reserved.