org.openbp.swing.plaf.sky
Class SkyLookAndFeel

java.lang.Object
  extended by javax.swing.LookAndFeel
      extended by javax.swing.plaf.basic.BasicLookAndFeel
          extended by javax.swing.plaf.metal.MetalLookAndFeel
              extended by org.openbp.swing.plaf.sky.SkyLookAndFeel
All Implemented Interfaces:
java.io.Serializable

public class SkyLookAndFeel
extends javax.swing.plaf.metal.MetalLookAndFeel

Look and feel for OpenBP software.

Author:
Jens Ferchland
See Also:
Serialized Form

Constructor Summary
SkyLookAndFeel()
           
 
Method Summary
 javax.swing.UIDefaults getDefaults()
          This Method is called by the UIManager when setting a new UI.
 java.lang.String getDescription()
          The Describtion of the LookAndFeel
 java.lang.String getID()
          The ID of the LookAndFeel
 java.lang.String getName()
          The Name of the LookAndFeel
protected  void initClassDefaults(javax.swing.UIDefaults table)
          Initialize the uiClassID to BasicComponentUI mapping.
protected  void initComponentDefaults(javax.swing.UIDefaults table)
          Load the defaults for any Component.
 void initilize()
          This Method is called by the UIManager to set the new UI.
protected  void initSystemColorDefaults(javax.swing.UIDefaults table)
          Load the SystemColors into the defaults table.
 boolean isNativeLookAndFeel()
          The OpenBP look and feel is no native look and feel until we develop an own OperatingSystem :-)
 boolean isSupportedLookAndFeel()
          The OpenBP look and feel will be supported.
 
Methods inherited from class javax.swing.plaf.metal.MetalLookAndFeel
createDefaultTheme, getAcceleratorForeground, getAcceleratorSelectedForeground, getBlack, getControl, getControlDarkShadow, getControlDisabled, getControlHighlight, getControlInfo, getControlShadow, getControlTextColor, getControlTextFont, getCurrentTheme, getDesktopColor, getDisabledIcon, getDisabledSelectedIcon, getFocusColor, getHighlightedTextColor, getInactiveControlTextColor, getInactiveSystemTextColor, getLayoutStyle, getMenuBackground, getMenuDisabledForeground, getMenuForeground, getMenuSelectedBackground, getMenuSelectedForeground, getMenuTextFont, getPrimaryControl, getPrimaryControlDarkShadow, getPrimaryControlHighlight, getPrimaryControlInfo, getPrimaryControlShadow, getSeparatorBackground, getSeparatorForeground, getSubTextFont, getSupportsWindowDecorations, getSystemTextColor, getSystemTextFont, getTextHighlightColor, getUserTextColor, getUserTextFont, getWhite, getWindowBackground, getWindowTitleBackground, getWindowTitleFont, getWindowTitleForeground, getWindowTitleInactiveBackground, getWindowTitleInactiveForeground, provideErrorFeedback, setCurrentTheme
 
Methods inherited from class javax.swing.plaf.basic.BasicLookAndFeel
createAudioAction, getAudioActionMap, initialize, loadSystemColors, playSound, uninitialize
 
Methods inherited from class javax.swing.LookAndFeel
getDesktopPropertyValue, installBorder, installColors, installColorsAndFont, installProperty, loadKeyBindings, makeComponentInputMap, makeIcon, makeInputMap, makeKeyBindings, toString, uninstallBorder
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SkyLookAndFeel

public SkyLookAndFeel()
Method Detail

getName

public java.lang.String getName()
The Name of the LookAndFeel

Overrides:
getName in class javax.swing.plaf.metal.MetalLookAndFeel

getID

public java.lang.String getID()
The ID of the LookAndFeel

Overrides:
getID in class javax.swing.plaf.metal.MetalLookAndFeel

getDescription

public java.lang.String getDescription()
The Describtion of the LookAndFeel

Overrides:
getDescription in class javax.swing.plaf.metal.MetalLookAndFeel

isNativeLookAndFeel

public boolean isNativeLookAndFeel()
The OpenBP look and feel is no native look and feel until we develop an own OperatingSystem :-)

Overrides:
isNativeLookAndFeel in class javax.swing.plaf.metal.MetalLookAndFeel

isSupportedLookAndFeel

public boolean isSupportedLookAndFeel()
The OpenBP look and feel will be supported.

Overrides:
isSupportedLookAndFeel in class javax.swing.plaf.metal.MetalLookAndFeel

initilize

public void initilize()
This Method is called by the UIManager to set the new UI. If the LookAndFeel needs any general properties they can be set here. This Method is called only once.


getDefaults

public javax.swing.UIDefaults getDefaults()
This Method is called by the UIManager when setting a new UI. The Method is called only once. The UIDefauls are properties for the Component and the UIManager. The properties are saved in a HashTable. Properties are:

Overrides:
getDefaults in class javax.swing.plaf.metal.MetalLookAndFeel
Returns:
an UIDefaults value

initClassDefaults

protected void initClassDefaults(javax.swing.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. See BasicLookAndFeel#getDefaults

Overrides:
initClassDefaults in class javax.swing.plaf.metal.MetalLookAndFeel
Parameters:
table - an UIDefaults value

initSystemColorDefaults

protected void initSystemColorDefaults(javax.swing.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 javax.swing.plaf.metal.MetalLookAndFeel
Parameters:
table - an UIDefaults value

initComponentDefaults

protected void initComponentDefaults(javax.swing.UIDefaults table)
Load the defaults for any Component. The defaults will be used by the UIs to paint any component. Changes in Color, Borders and so on can apply her.

Overrides:
initComponentDefaults in class javax.swing.plaf.metal.MetalLookAndFeel
Parameters:
table - an UIDefaults value


Copyright © 2011. All Rights Reserved.