@Service(value=PlafUtilities.class) public class PlafUtilities extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
TENTACKLE_ICONREALM
The namespace of the icons for tentackle (can be used by apps)
|
| Constructor and Description |
|---|
PlafUtilities()
Creates the utility instance.
|
public static final String TENTACKLE_ICONREALM
public static PlafUtilities getInstance()
public void installLookAndFeel(String clazzName)
If the LAF is not loadable, no exception will be thrown.
This method is used to load known lafs. If a LAF is in the
classpath and provides a method get<name>Name(), then
UIManager.installLookAndFeel(java.lang.String, java.lang.String)
is invoked.
Otherwise it is silently ignored.
The LAF may be any kind of LAF. However, due to the checked presence of the
method, in fact only TentackleLookAndFeels will be loaded.
clazzName - the classname of the LAFpublic void installTentackleLookAndFeels()
public UIManager.LookAndFeelInfo[] getInstalledTentackleLookAndFeels()
TentackleLookAndFeels.
The method invokes UIManager.getInstalledLookAndFeels() and
returns a list of all LAFs that implement TentackleLookAndFeel.
public void setFocusAnimated(boolean flag)
flag - the boolean value which is true to enable the animation, false to turn it offpublic boolean isFocusAnimated()
public Color getAlarmColor()
public void setAlarmColor(Color aAlarmColor)
aAlarmColor - the alarmColor to setpublic Color getAlarmBackgroundColor()
public void setAlarmBackgroundColor(Color aAlarmBackgroundColor)
aAlarmBackgroundColor - the alarmBackgroundColor to setpublic Color getListSelectedForegroundColor()
public void setListSelectedForegroundColor(Color aListSelectedForegroundColor)
aListSelectedForegroundColor - the listSelectedBackgroundColor to setpublic Color getListSelectedBackgroundColor()
public void setListSelectedBackgroundColor(Color aListSelectedBackgroundColor)
aListSelectedBackgroundColor - the listSelectedBackgroundColor to setpublic Color getListUnselectedForegroundColor()
public void setListUnselectedForegroundColor(Color aListUnselectedForegroundColor)
aListUnselectedForegroundColor - the listUnselectedForegroundColor to setpublic Color getListSelectedDisabledForegroundColor()
public void setListSelectedDisabledForegroundColor(Color aListSelectedDisabledForegroundColor)
aListSelectedDisabledForegroundColor - the listSelectedDisabledForegroundColor to setpublic Color getListUnselectedDisabledForegroundColor()
public void setListUnselectedDisabledForegroundColor(Color aListUnselectedDisabledForegroundColor)
aListUnselectedDisabledForegroundColor - the listUnselectedDisabledForegroundColor to setpublic Color getTableForegroundColor()
public void setTableForegroundColor(Color aTableForegroundColor)
aTableForegroundColor - the tableForegroundColor to setpublic Color getTableBackgroundColor()
public void setTableBackgroundColor(Color aTableBackgroundColor)
aTableBackgroundColor - the tableBackgroundColor to setpublic Color getTableFocusCellForegroundColor()
public void setTableFocusCellForegroundColor(Color aTableFocusCellForegroundColor)
aTableFocusCellForegroundColor - the tableFocusCellForegroundColor to setpublic Color getTableFocusCellBackgroundColor()
public void setTableFocusCellBackgroundColor(Color aTableFocusCellBackgroundColor)
aTableFocusCellBackgroundColor - the tableFocusCellBackgroundColor to setpublic Color getTableSelectionForegroundColor()
public void setTableSelectionForegroundColor(Color aTableSelectionForegroundColor)
aTableSelectionForegroundColor - the tableSelectionForegroundColor to setpublic Color getTableSelectionBackgroundColor()
public void setTableSelectionBackgroundColor(Color aTableSelectionBackgroundColor)
aTableSelectionBackgroundColor - the tableSelectionBackgroundColor to setpublic Color getDropFieldActiveColor()
public void setDropFieldActiveColor(Color aDropFieldActiveColor)
aDropFieldActiveColor - the dropFieldActiveColor to setpublic Color getDropFieldInactiveColor()
public void setDropFieldInactiveColor(Color aDropFieldInactiveColor)
aDropFieldInactiveColor - the dropFieldInactiveColor to setpublic Color getTableEditCellBorderColor()
public void setTableEditCellBorderColor(Color aTableEditCellBorderColor)
aTableEditCellBorderColor - the tableEditCellBorderColor to setpublic Color getTextFieldBackgroundColor()
public void setTextFieldBackgroundColor(Color aTextFieldBackgroundColor)
aTextFieldBackgroundColor - the textFieldBackgroundColor to setpublic Color getTextFieldInactiveBackgroundColor()
public void setTextFieldInactiveBackgroundColor(Color aTextFieldInactiveBackgroundColor)
aTextFieldInactiveBackgroundColor - the textFieldInactiveBackgroundColor to setpublic IconProvider addIconProvider(IconProvider iconProvider)
iconProvider - the provider to registerpublic IconProvider removeIconProvider(String realm)
realm - the realm to remove the provider forpublic ImageIcon getIcon(String realm, String name) throws MissingResourceException
realm - the icon's namespacename - the name if the iconMissingResourceException - if no such iconpublic ImageIcon getIcon(String name) throws MissingResourceException
name - the name if the iconMissingResourceException - if no such iconpublic Object getUIManagerDefault(String... keys)
keys - the list of keys to trypublic void triggerLookAndFeelUpdated()
public Color brighter(Color color, double factor)
color - the original colorfactor - the factor (Color uses 0.7)Color.brighter()public Color darker(Color color, double factor)
color - the original colorfactor - the factor (Color uses 0.7)Color.darker()Tentackle - distributed, domain- and model-driven