|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.crosswire.common.swing.LookAndFeelUtil
public final class LookAndFeelUtil
LookAndFeelUtil declares the Choices and actions needed to dynamically change the look and feel (PLAF) and to add new PLAFs without needing to restart.
The GNU General Public License for details.
Field Summary | |
---|---|
private static Class<LookAndFeel> |
currentLAF
The current PLAF |
private static Class<?> |
defaultLAF
The default PLAF (and the default value) |
private static String |
font
The font to be used for the application |
Constructor Summary | |
---|---|
private |
LookAndFeelUtil()
Prevent instantiation |
Method Summary | |
---|---|
private static void |
customizeBDLookandFeel()
|
static String |
getFont()
Accessor for the stylesheet we are transforming using |
static Class<?> |
getLookAndFeel()
The Options customization |
static void |
initialize()
Establish the system look and feel |
static void |
setFont(String font)
Accessor for the stylesheet we are transforming using |
static void |
setLookAndFeel(Class<LookAndFeel> newLaFClass)
Set the look and feel to a new class. |
static void |
setUIFont(FontUIResource f)
Set the default font for all Swing components. |
static FontUIResource |
toFontUIResource()
Converts the font spec to something useful. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static Class<LookAndFeel> currentLAF
private static Class<?> defaultLAF
private static String font
Constructor Detail |
---|
private LookAndFeelUtil()
Method Detail |
---|
public static void initialize()
public static Class<?> getLookAndFeel()
public static void setLookAndFeel(Class<LookAndFeel> newLaFClass) throws InstantiationException, IllegalAccessException, UnsupportedLookAndFeelException
InstantiationException
IllegalAccessException
UnsupportedLookAndFeelException
public static String getFont()
public static FontUIResource toFontUIResource()
public static void setFont(String font)
public static void setUIFont(FontUIResource f)
setUIFont(new FontUIResource("Serif", Font.ITALIC, 12));
UIManager.put("Label.font", new Font("Serif", Font.ITALIC, 12));
f
- the font to useprivate static void customizeBDLookandFeel()
|
Copyright ยจ 2003-2015 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |