|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjavax.swing.LookAndFeel
javax.swing.plaf.basic.BasicLookAndFeel
javax.swing.plaf.metal.MetalLookAndFeel
de.muntjak.tinylookandfeel.TinyLookAndFeel
public class TinyLookAndFeel
The Tiny Look and Feel implementation.
| Field Summary | |
|---|---|
static boolean |
controlPanelInstantiated
Signals if we are run from the ControlPanel. |
static java.lang.String |
DATE_STRING
The release date of this TinyLaF release as a string. |
static boolean |
PRINT_CACHE_SIZES
If true, each drawing cache reports its
size as new entries are added. |
static java.awt.Robot |
ROBOT
A global Robot instance used for the ControlPanel
magnifier, to antialias frame caption edges and to capture
backgrounds for popup menu shadows. |
static java.lang.String |
VERSION_STRING
The current TinyLaF version as a string. |
| Constructor Summary | |
|---|---|
TinyLookAndFeel()
|
|
| Method Summary | |
|---|---|
static void |
clearAllCaches()
Clears all caches used to speed up drawing of components. |
protected void |
createDefaultTheme()
Creates the default theme and installs it. |
java.lang.String |
getDescription()
Returns "TinyLookAndFeel". |
java.lang.String |
getID()
Returns "TinyLookAndFeel". |
java.lang.String |
getName()
Returns "TinyLookAndFeel". |
boolean |
getSupportsWindowDecorations()
Returns true. |
static java.lang.String |
getSystemIconName(int index)
This method is not intended for public use. |
static javax.swing.Icon |
getUncolorizedSystemIcon(int index)
This method is not intended for public use. |
protected void |
initClassDefaults(javax.swing.UIDefaults table)
Initializes the uiClassID to BasicComponentUI mapping. |
protected void |
initComponentDefaults(javax.swing.UIDefaults table)
Initializes the default values for many ui widgets and puts them in the given ui defaults table. |
void |
initialize()
Initializes the look and feel. |
boolean |
isNativeLookAndFeel()
Returns false. |
boolean |
isSupportedLookAndFeel()
Returns true. |
static javax.swing.ImageIcon |
loadIcon(java.lang.String fileName)
This method is not intended for public use. |
void |
uninitialize()
Uninitializes the look and feel. |
| Methods inherited from class javax.swing.plaf.metal.MetalLookAndFeel |
|---|
getAcceleratorForeground, getAcceleratorSelectedForeground, getBlack, getControl, getControlDarkShadow, getControlDisabled, getControlHighlight, getControlInfo, getControlShadow, getControlTextColor, getControlTextFont, getCurrentTheme, getDefaults, getDesktopColor, getDisabledIcon, getDisabledSelectedIcon, getFocusColor, getHighlightedTextColor, getInactiveControlTextColor, getInactiveSystemTextColor, getLayoutStyle, getMenuBackground, getMenuDisabledForeground, getMenuForeground, getMenuSelectedBackground, getMenuSelectedForeground, getMenuTextFont, getPrimaryControl, getPrimaryControlDarkShadow, getPrimaryControlHighlight, getPrimaryControlInfo, getPrimaryControlShadow, getSeparatorBackground, getSeparatorForeground, getSubTextFont, getSystemTextColor, getSystemTextFont, getTextHighlightColor, getUserTextColor, getUserTextFont, getWhite, getWindowBackground, getWindowTitleBackground, getWindowTitleFont, getWindowTitleForeground, getWindowTitleInactiveBackground, getWindowTitleInactiveForeground, initSystemColorDefaults, provideErrorFeedback, setCurrentTheme |
| Methods inherited from class javax.swing.plaf.basic.BasicLookAndFeel |
|---|
createAudioAction, getAudioActionMap, loadSystemColors, playSound |
| 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 |
| Field Detail |
|---|
public static boolean controlPanelInstantiated
public static final boolean PRINT_CACHE_SIZES
true, each drawing cache reports its
size as new entries are added. Should be false for production build.
public static final java.lang.String VERSION_STRING
public static final java.lang.String DATE_STRING
public static java.awt.Robot ROBOT
Robot instance used for the ControlPanel
magnifier, to antialias frame caption edges and to capture
backgrounds for popup menu shadows.
| Constructor Detail |
|---|
public TinyLookAndFeel()
| Method Detail |
|---|
public void initialize()
initialize in class javax.swing.plaf.basic.BasicLookAndFeelpublic static void clearAllCaches()
public void uninitialize()
uninitialize in class javax.swing.plaf.basic.BasicLookAndFeelpublic java.lang.String getID()
getID in class javax.swing.plaf.metal.MetalLookAndFeelpublic java.lang.String getName()
getName in class javax.swing.plaf.metal.MetalLookAndFeelpublic java.lang.String getDescription()
getDescription in class javax.swing.plaf.metal.MetalLookAndFeelpublic boolean isNativeLookAndFeel()
false.
isNativeLookAndFeel in class javax.swing.plaf.metal.MetalLookAndFeelfalsepublic final boolean isSupportedLookAndFeel()
true.
isSupportedLookAndFeel in class javax.swing.plaf.metal.MetalLookAndFeeltruepublic boolean getSupportsWindowDecorations()
true.
getSupportsWindowDecorations in class javax.swing.plaf.metal.MetalLookAndFeeltrueprotected void initClassDefaults(javax.swing.UIDefaults table)
initClassDefaults in class javax.swing.plaf.metal.MetalLookAndFeeltable - The ui defaults table.protected void createDefaultTheme()
createDefaultTheme in class javax.swing.plaf.metal.MetalLookAndFeelprotected void initComponentDefaults(javax.swing.UIDefaults table)
initComponentDefaults in class javax.swing.plaf.metal.MetalLookAndFeeltable - The ui defaults table.public static javax.swing.Icon getUncolorizedSystemIcon(int index)
index -
public static java.lang.String getSystemIconName(int index)
index -
public static javax.swing.ImageIcon loadIcon(java.lang.String fileName)
fileName - The icon's file name.
null if the icon
resource doesn't exist.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||