|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.swing.plaf.metal.MetalTheme javax.swing.plaf.metal.DefaultMetalTheme
This class describes the default Metal Theme.
Warning:
Serialized objects of this class will not be compatible with
future Swing releases. The current serialization support is
appropriate for short term storage or RMI between applications running
the same version of Swing. As of 1.4, support for long term storage
of all JavaBeansTM
has been added to the java.beans
package.
Please see XMLEncoder
.
Nested Class Summary | |
private static class |
DefaultMetalTheme.FontDelegate
FontDelegates add an extra level of indirection to obtaining fonts. |
private static class |
DefaultMetalTheme.WindowsFontDelegate
The WindowsFontDelegate uses DesktopProperties to obtain fonts. |
Field Summary | |
private static String[] |
defaultNames
System property names used to look up fonts. |
private DefaultMetalTheme.FontDelegate |
fontDelegate
|
private static String[] |
fontNames
Names of the fonts to use. |
private static int[] |
fontSizes
Sizes for the fonts. |
private static int[] |
fontStyles
Styles for the fonts. |
private static ColorUIResource |
primary1
|
private static ColorUIResource |
primary2
|
private static ColorUIResource |
primary3
|
private static ColorUIResource |
secondary1
|
private static ColorUIResource |
secondary2
|
private static ColorUIResource |
secondary3
|
Fields inherited from class javax.swing.plaf.metal.MetalTheme |
CONTROL_TEXT_FONT, MENU_TEXT_FONT, SUB_TEXT_FONT, SYSTEM_TEXT_FONT, USER_TEXT_FONT, WINDOW_TITLE_FONT |
Constructor Summary | |
DefaultMetalTheme()
|
Method Summary | |
FontUIResource |
getControlTextFont()
|
(package private) static String |
getDefaultFontName(int key)
Returns the ideal font name for the font identified by key. |
(package private) static int |
getDefaultFontSize(int key)
Returns the ideal font size for the font identified by key. |
(package private) static int |
getDefaultFontStyle(int key)
Returns the ideal font style for the font identified by key. |
(package private) static String |
getDefaultPropertyName(int key)
Returns the default used to look up the specified font. |
private FontUIResource |
getFont(int key)
|
FontUIResource |
getMenuTextFont()
|
String |
getName()
|
protected ColorUIResource |
getPrimary1()
|
protected ColorUIResource |
getPrimary2()
|
protected ColorUIResource |
getPrimary3()
|
protected ColorUIResource |
getSecondary1()
|
protected ColorUIResource |
getSecondary2()
|
protected ColorUIResource |
getSecondary3()
|
FontUIResource |
getSubTextFont()
|
FontUIResource |
getSystemTextFont()
|
FontUIResource |
getUserTextFont()
|
FontUIResource |
getWindowTitleFont()
|
(package private) void |
install()
This is invoked when a MetalLookAndFeel is installed and about to start using this theme. |
(package private) boolean |
isSystemTheme()
Returns true if this is a theme provided by the core platform. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static final String[] fontNames
private static final int[] fontStyles
private static final int[] fontSizes
private static final String[] defaultNames
private static final ColorUIResource primary1
private static final ColorUIResource primary2
private static final ColorUIResource primary3
private static final ColorUIResource secondary1
private static final ColorUIResource secondary2
private static final ColorUIResource secondary3
private DefaultMetalTheme.FontDelegate fontDelegate
Constructor Detail |
public DefaultMetalTheme()
Method Detail |
static String getDefaultFontName(int key)
static int getDefaultFontSize(int key)
static int getDefaultFontStyle(int key)
static String getDefaultPropertyName(int key)
public String getName()
getName
in class MetalTheme
protected ColorUIResource getPrimary1()
getPrimary1
in class MetalTheme
protected ColorUIResource getPrimary2()
getPrimary2
in class MetalTheme
protected ColorUIResource getPrimary3()
getPrimary3
in class MetalTheme
protected ColorUIResource getSecondary1()
getSecondary1
in class MetalTheme
protected ColorUIResource getSecondary2()
getSecondary2
in class MetalTheme
protected ColorUIResource getSecondary3()
getSecondary3
in class MetalTheme
public FontUIResource getControlTextFont()
getControlTextFont
in class MetalTheme
public FontUIResource getSystemTextFont()
getSystemTextFont
in class MetalTheme
public FontUIResource getUserTextFont()
getUserTextFont
in class MetalTheme
public FontUIResource getMenuTextFont()
getMenuTextFont
in class MetalTheme
public FontUIResource getWindowTitleFont()
getWindowTitleFont
in class MetalTheme
public FontUIResource getSubTextFont()
getSubTextFont
in class MetalTheme
private FontUIResource getFont(int key)
void install()
MetalTheme
install
in class MetalTheme
boolean isSystemTheme()
isSystemTheme
in class MetalTheme
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |