|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.swing.plaf.metal.MetalTheme
javax.swing.plaf.metal.DefaultMetalTheme
public class DefaultMetalTheme
The default theme for the MetalLookAndFeel
.
MetalLookAndFeel.setCurrentTheme(MetalTheme)
Constructor Summary | |
---|---|
DefaultMetalTheme()
Creates a new instance of this theme. |
Method Summary | |
---|---|
FontUIResource |
getControlTextFont()
Returns the font used for text on controls. |
FontUIResource |
getMenuTextFont()
Returns the font used for text in menus. |
String |
getName()
Returns the name of the theme. |
protected ColorUIResource |
getPrimary1()
Returns the first primary color for this theme. |
protected ColorUIResource |
getPrimary2()
Returns the second primary color for this theme. |
protected ColorUIResource |
getPrimary3()
Returns the third primary color for this theme. |
protected ColorUIResource |
getSecondary1()
Returns the first secondary color for this theme. |
protected ColorUIResource |
getSecondary2()
Returns the second secondary color for this theme. |
protected ColorUIResource |
getSecondary3()
Returns the third secondary color for this theme. |
FontUIResource |
getSubTextFont()
Returns the font used for sub text. |
FontUIResource |
getSystemTextFont()
Returns the font used for system text. |
FontUIResource |
getUserTextFont()
Returns the font used for user text. |
FontUIResource |
getWindowTitleFont()
Returns the font used for window titles. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultMetalTheme()
Method Detail |
---|
public String getName()
getName
in class MetalTheme
"Steel"
.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()
FontUIResource("Dialog", Font.BOLD, 12)
, unless the
swing.boldMetal
UI default is set to Boolean.FALSE
in which case it is FontUIResource("Dialog", Font.PLAIN, 12)
.
getControlTextFont
in class MetalTheme
public FontUIResource getMenuTextFont()
FontUIResource("Dialog", Font.BOLD, 12)
, unless the
swing.boldMetal
UI default is set to Boolean.FALSE
in which case it is FontUIResource("Dialog", Font.PLAIN, 12)
.
getMenuTextFont
in class MetalTheme
public FontUIResource getSubTextFont()
FontUIResource("Dialog", Font.PLAIN, 10)
.
getSubTextFont
in class MetalTheme
public FontUIResource getSystemTextFont()
FontUIResource("Dialog", Font.PLAIN, 12)
.
getSystemTextFont
in class MetalTheme
public FontUIResource getUserTextFont()
FontUIResource("Dialog", Font.PLAIN, 12)
.
getUserTextFont
in class MetalTheme
public FontUIResource getWindowTitleFont()
FontUIResource("Dialog", Font.BOLD, 12)
.
getWindowTitleFont
in class MetalTheme
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |