treebolic.commons
Class Laf

java.lang.Object
  extended by treebolic.commons.Laf

public class Laf
extends java.lang.Object

Look and feel

Author:
Bernard Bou

Constructor Summary
Laf()
           
 
Method Summary
(package private) static javax.swing.LookAndFeel getLaf(java.lang.String thisClassName)
          Get LAF instance
static void lookAndFeel(java.lang.String[] theseArgs)
          Initialize look and feel
private static javax.swing.plaf.metal.MetalTheme makeCustomTheme()
          Make custom golden metal theme
static void setBold(boolean haveBold)
          Set bold font
(package private) static void setCurrentTheme(java.lang.String thisClassName, javax.swing.plaf.metal.MetalTheme thisTheme)
          Set current theme
static boolean setCustomTheme(java.lang.String thisLafName)
          Set custom theme
static boolean setLookAndFeel(java.lang.String thisLafName)
          Set look and feel
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Laf

public Laf()
Method Detail

lookAndFeel

public static void lookAndFeel(java.lang.String[] theseArgs)
Initialize look and feel

Parameters:
theseArgs - command line arguments

setBold

public static void setBold(boolean haveBold)
Set bold font

Parameters:
haveBold - true/false

setLookAndFeel

public static boolean setLookAndFeel(java.lang.String thisLafName)
                              throws javax.swing.UnsupportedLookAndFeelException
Set look and feel

Parameters:
thisLafName - laf name
Returns:
true if successful
Throws:
javax.swing.UnsupportedLookAndFeelException

getLaf

static javax.swing.LookAndFeel getLaf(java.lang.String thisClassName)
Get LAF instance

Parameters:
thisClassName - LAF class name
Returns:
instance of this class

setCustomTheme

public static boolean setCustomTheme(java.lang.String thisLafName)
Set custom theme

Parameters:
thisLafName - laf name
Returns:
true if successful
Throws:
javax.swing.UnsupportedLookAndFeelException

setCurrentTheme

static void setCurrentTheme(java.lang.String thisClassName,
                            javax.swing.plaf.metal.MetalTheme thisTheme)
Set current theme

Parameters:
thisClassName - LAF class name (may have overridden 'setCurrentTheme()')
thisTheme - theme

makeCustomTheme

private static javax.swing.plaf.metal.MetalTheme makeCustomTheme()
Make custom golden metal theme

Returns:
metal theme