public class PaletteLookAndFeel
extends javax.swing.plaf.basic.BasicLookAndFeel
Constructor and Description |
---|
PaletteLookAndFeel() |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
get(java.lang.Object key)
Looks up up the given key in our Hashtable and resolves LazyValues
or ActiveValues.
|
boolean |
getBoolean(java.lang.String key) |
javax.swing.border.Border |
getBorder(java.lang.String key) |
javax.swing.UIDefaults |
getCachedDefaults() |
java.awt.Color |
getColor(java.lang.String key) |
java.lang.String |
getDescription() |
java.awt.Font |
getFont(java.lang.String key) |
javax.swing.Icon |
getIcon(java.lang.String key) |
java.lang.String |
getID() |
java.awt.Insets |
getInsets(java.lang.String key) |
static PaletteLookAndFeel |
getInstance() |
int |
getInt(java.lang.String key) |
java.lang.String |
getName() |
java.lang.String |
getString(java.lang.String key) |
protected void |
initComponentDefaults(javax.swing.UIDefaults table) |
static void |
installBorder(javax.swing.JComponent c,
java.lang.String defaultBorderName)
Convenience method for installing a component's default Border
object on the specified component if either the border is
currently null or already an instance of UIResource.
|
static void |
installColors(javax.swing.JComponent c,
java.lang.String defaultBgName,
java.lang.String defaultFgName)
Convenience method for initializing a component's foreground
and background color properties with values from the current
defaults table.
|
static void |
installColorsAndFont(javax.swing.JComponent c,
java.lang.String defaultBgName,
java.lang.String defaultFgName,
java.lang.String defaultFontName)
Convenience method for initializing a components foreground
background and font properties with values from the current
defaults table.
|
boolean |
isNativeLookAndFeel() |
boolean |
isSupportedLookAndFeel() |
createAudioAction, getAudioActionMap, getDefaults, initClassDefaults, initialize, initSystemColorDefaults, loadSystemColors, playSound, uninitialize
getDesktopPropertyValue, getDisabledIcon, getDisabledSelectedIcon, getLayoutStyle, getSupportsWindowDecorations, installProperty, loadKeyBindings, makeComponentInputMap, makeIcon, makeInputMap, makeKeyBindings, provideErrorFeedback, toString, uninstallBorder
public static PaletteLookAndFeel getInstance()
public java.lang.String getName()
getName
in class javax.swing.LookAndFeel
public java.lang.String getID()
getID
in class javax.swing.LookAndFeel
public java.lang.String getDescription()
getDescription
in class javax.swing.LookAndFeel
public boolean isNativeLookAndFeel()
isNativeLookAndFeel
in class javax.swing.LookAndFeel
public boolean isSupportedLookAndFeel()
isSupportedLookAndFeel
in class javax.swing.LookAndFeel
public javax.swing.UIDefaults getCachedDefaults()
public java.lang.Object get(java.lang.Object key)
public boolean getBoolean(java.lang.String key)
public javax.swing.border.Border getBorder(java.lang.String key)
public java.awt.Color getColor(java.lang.String key)
public java.awt.Font getFont(java.lang.String key)
public javax.swing.Icon getIcon(java.lang.String key)
public int getInt(java.lang.String key)
public java.awt.Insets getInsets(java.lang.String key)
public java.lang.String getString(java.lang.String key)
public static void installColorsAndFont(javax.swing.JComponent c, java.lang.String defaultBgName, java.lang.String defaultFgName, java.lang.String defaultFontName)
c
- the target component for installing default color/font propertiesdefaultBgName
- the key for the default backgrounddefaultFgName
- the key for the default foregrounddefaultFontName
- the key for the default fontinstallColors(javax.swing.JComponent, java.lang.String, java.lang.String)
,
UIManager.getColor(java.lang.Object)
,
UIManager.getFont(java.lang.Object)
public static void installBorder(javax.swing.JComponent c, java.lang.String defaultBorderName)
c
- the target component for installing default borderdefaultBorderName
- the key specifying the default borderpublic static void installColors(javax.swing.JComponent c, java.lang.String defaultBgName, java.lang.String defaultFgName)
c
- the target component for installing default color/font propertiesdefaultBgName
- the key for the default backgrounddefaultFgName
- the key for the default foregroundinstallColorsAndFont(javax.swing.JComponent, java.lang.String, java.lang.String, java.lang.String)
,
UIManager.getColor(java.lang.Object)
protected void initComponentDefaults(javax.swing.UIDefaults table)
initComponentDefaults
in class javax.swing.plaf.basic.BasicLookAndFeel