Class RadianceLookAndFeel
- java.lang.Object
-
- javax.swing.LookAndFeel
-
- javax.swing.plaf.basic.BasicLookAndFeel
-
- org.pushingpixels.radiance.theming.api.RadianceLookAndFeel
-
- All Implemented Interfaces:
java.io.Serializable
- Direct Known Subclasses:
RadianceAutumnLookAndFeel
,RadianceBusinessBlackSteelLookAndFeel
,RadianceBusinessBlueSteelLookAndFeel
,RadianceBusinessLookAndFeel
,RadianceCeruleanLookAndFeel
,RadianceCremeCoffeeLookAndFeel
,RadianceCremeLookAndFeel
,RadianceDustCoffeeLookAndFeel
,RadianceDustLookAndFeel
,RadianceFieldOfWheatLookAndFeel
,RadianceGeminiLookAndFeel
,RadianceGraphiteAquaLookAndFeel
,RadianceGraphiteChalkLookAndFeel
,RadianceGraphiteElectricLookAndFeel
,RadianceGraphiteGlassLookAndFeel
,RadianceGraphiteGoldLookAndFeel
,RadianceGraphiteLookAndFeel
,RadianceGraphiteSiennaLookAndFeel
,RadianceGraphiteSunsetLookAndFeel
,RadianceGreenMagicLookAndFeel
,RadianceHarvestLookAndFeel
,RadianceMagellanLookAndFeel
,RadianceMagmaLookAndFeel
,RadianceMarinerLookAndFeel
,RadianceMistAquaLookAndFeel
,RadianceMistSilverLookAndFeel
,RadianceModerateLookAndFeel
,RadianceNebulaAmethystLookAndFeel
,RadianceNebulaBrickWallLookAndFeel
,RadianceNebulaLookAndFeel
,RadianceNightShadeLookAndFeel
,RadianceOfficeBlack2007LookAndFeel
,RadianceOfficeBlue2007LookAndFeel
,RadianceOfficeSilver2007LookAndFeel
,RadianceRavenLookAndFeel
,RadianceSaharaLookAndFeel
,RadianceSentinelLookAndFeel
,RadianceStreetlightsLookAndFeel
,RadianceTwilightLookAndFeel
public abstract class RadianceLookAndFeel extends javax.swing.plaf.basic.BasicLookAndFeel
Base class for Radiance look and feel. There are three options to use Radiance in your application:
- Use
UIManager.setLookAndFeel(javax.swing.LookAndFeel)
orUIManager.setLookAndFeel(String)
passing one of the core skin-based look-and-feels in theorg.pushingpixels.radiance.theming.api.skin
package. - Extend this class, pass a skin instance to the
RadianceLookAndFeel(RadianceSkin)
constructor, and then useUIManager.setLookAndFeel(javax.swing.LookAndFeel)
. - Call
RadianceThemingCortex.GlobalScope.setSkin(String)
orRadianceThemingCortex.GlobalScope.setSkin(RadianceSkin)
static methods. These methods do not require Radiance to be the current look-and-feel.
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private java.awt.event.AWTEventListener
awtEventListener
private java.lang.String
name
The name of this look-and-feel instance.private RadianceSkin
skin
The skin of this look-and-feel instance.
-
Constructor Summary
Constructors Modifier Constructor Description protected
RadianceLookAndFeel(RadianceSkin skin)
Creates a new skin-based Radiance look-and-feel.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.swing.UIDefaults
getDefaults()
java.lang.String
getDescription()
javax.swing.Icon
getDisabledIcon(javax.swing.JComponent component, javax.swing.Icon icon)
java.lang.String
getID()
java.lang.String
getName()
boolean
getSupportsWindowDecorations()
protected void
initClassDefaults(javax.swing.UIDefaults table)
protected void
initComponentDefaults(javax.swing.UIDefaults table)
void
initialize()
boolean
isNativeLookAndFeel()
boolean
isSupportedLookAndFeel()
void
uninitialize()
-
Methods inherited from class javax.swing.plaf.basic.BasicLookAndFeel
createAudioAction, getAudioActionMap, initSystemColorDefaults, loadSystemColors, playSound
-
Methods inherited from class javax.swing.LookAndFeel
getDesktopPropertyValue, getDisabledSelectedIcon, getLayoutStyle, installBorder, installColors, installColorsAndFont, installProperty, loadKeyBindings, makeComponentInputMap, makeIcon, makeInputMap, makeKeyBindings, provideErrorFeedback, toString, uninstallBorder
-
-
-
-
Field Detail
-
skin
private RadianceSkin skin
The skin of this look-and-feel instance.
-
name
private java.lang.String name
The name of this look-and-feel instance.
-
awtEventListener
private java.awt.event.AWTEventListener awtEventListener
-
-
Constructor Detail
-
RadianceLookAndFeel
protected RadianceLookAndFeel(RadianceSkin skin)
Creates a new skin-based Radiance look-and-feel.- Parameters:
skin
- Skin.
-
-
Method Detail
-
getDescription
public java.lang.String getDescription()
- Specified by:
getDescription
in classjavax.swing.LookAndFeel
-
getID
public java.lang.String getID()
- Specified by:
getID
in classjavax.swing.LookAndFeel
-
getName
public java.lang.String getName()
- Specified by:
getName
in classjavax.swing.LookAndFeel
-
isNativeLookAndFeel
public boolean isNativeLookAndFeel()
- Specified by:
isNativeLookAndFeel
in classjavax.swing.LookAndFeel
-
isSupportedLookAndFeel
public boolean isSupportedLookAndFeel()
- Specified by:
isSupportedLookAndFeel
in classjavax.swing.LookAndFeel
-
initClassDefaults
protected void initClassDefaults(javax.swing.UIDefaults table)
- Overrides:
initClassDefaults
in classjavax.swing.plaf.basic.BasicLookAndFeel
-
initComponentDefaults
protected void initComponentDefaults(javax.swing.UIDefaults table)
- Overrides:
initComponentDefaults
in classjavax.swing.plaf.basic.BasicLookAndFeel
-
getDefaults
public javax.swing.UIDefaults getDefaults()
- Overrides:
getDefaults
in classjavax.swing.plaf.basic.BasicLookAndFeel
-
initialize
public void initialize()
- Overrides:
initialize
in classjavax.swing.plaf.basic.BasicLookAndFeel
-
uninitialize
public void uninitialize()
- Overrides:
uninitialize
in classjavax.swing.plaf.basic.BasicLookAndFeel
-
getSupportsWindowDecorations
public boolean getSupportsWindowDecorations()
- Overrides:
getSupportsWindowDecorations
in classjavax.swing.LookAndFeel
-
getDisabledIcon
public javax.swing.Icon getDisabledIcon(javax.swing.JComponent component, javax.swing.Icon icon)
- Overrides:
getDisabledIcon
in classjavax.swing.LookAndFeel
-
-