|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.argouml.ui.LookAndFeelMgr
public final class LookAndFeelMgr
Controls the look and feel and theme of ArgoUML. LookAndFeelMgr has a "Look and Feel" property which represents the Swing Pluggable Look-and-feel. It also has a "Theme" property which represents a MetalTheme when the Metal look-and-feel is selected (for other LAFs, a theme is not supported).
Themes have 2 kinds of names: 1. The "display name" shown in the UI, which is retrieved by theme.getName(), and 2. the "class name", which is the name of the theme class, and is retrieved by theme.getClass().getName().
| Method Summary | |
|---|---|
java.lang.String[] |
getAvailableLookAndFeelNames()
Returns the display names of the available look and feel choices. |
java.lang.String[] |
getAvailableThemeNames()
Returns the display names of the available theme choices. |
java.lang.String |
getCurrentLookAndFeel()
Returns the string identifier for the current look and feel. |
java.lang.String |
getCurrentLookAndFeelName()
Returns the display name of the current look and feel. |
java.lang.String |
getCurrentThemeClassName()
Returns the string identifier for the current theme. |
java.lang.String |
getCurrentThemeName()
Returns the display name of the current theme. |
static LookAndFeelMgr |
getInstance()
Get the single instance of the LookAndFeelMgr. |
java.lang.String |
getLookAndFeelFromName(java.lang.String name)
Returns the Look and Feel class name identifier for the specified display name, or null if no such Look and Feel is found. |
java.awt.Font |
getSmallFont()
|
java.awt.Font |
getStandardFont()
|
java.lang.String |
getThemeClassNameFromArg(java.lang.String arg)
Detecting the theme from the command line. |
java.lang.String |
getThemeFromName(java.lang.String name)
Returns the theme class name identifier for the specified display name, or null if no such theme is found. |
void |
initializeLookAndFeel()
Sets the appearance of the UI using the current values of the LookAndFeel and Theme properties. |
boolean |
isThemeCompatibleLookAndFeel(java.lang.String lafClass)
Returns true if the specified look and feel class supports setting different themes. |
void |
printThemeArgs()
Outputs command-line arguments supported by this class. |
void |
setCurrentLAFAndThemeByName(java.lang.String lafName,
java.lang.String themeName)
Sets the current look and feel, storing the new value in Configuration. |
void |
setCurrentTheme(java.lang.String themeClass)
Sets the current theme, storing the new value in Configuration. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static LookAndFeelMgr getInstance()
public void initializeLookAndFeel()
public java.lang.String getThemeClassNameFromArg(java.lang.String arg)
arg - the argument from the command line
public void printThemeArgs()
public java.lang.String[] getAvailableLookAndFeelNames()
public java.lang.String[] getAvailableThemeNames()
public java.lang.String getLookAndFeelFromName(java.lang.String name)
name - display name of desired look and feel
public java.lang.String getThemeFromName(java.lang.String name)
name - display name of desired theme
public boolean isThemeCompatibleLookAndFeel(java.lang.String lafClass)
lafClass - look and feel class name
public java.lang.String getCurrentLookAndFeel()
public java.lang.String getCurrentLookAndFeelName()
public void setCurrentLAFAndThemeByName(java.lang.String lafName,
java.lang.String themeName)
lafName - the name of desired look and feelthemeName - the name of the themepublic java.lang.String getCurrentThemeClassName()
public java.lang.String getCurrentThemeName()
public void setCurrentTheme(java.lang.String themeClass)
themeClass - class name of desired themepublic java.awt.Font getStandardFont()
public java.awt.Font getSmallFont()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
| ArgoUML © 1996-2006 | ArgoUML Homepage | ArgoUML Cookbook |