public class StaticGUIResources extends StaticResources
FIXME: this class imports awt classes, so it should not be in kernel.util.
Modifier and Type | Field and Description |
---|---|
static int |
LINUX |
static int |
MAC_OSX |
static short |
SVG_BATIK_RENDERING |
static short |
SVG_DIVA_RENDERING |
static short |
SVG_RENDERING_NOT_SET |
static int |
WINDOWS |
_isDebugging, RESOURCEBUNDLE_DIR
Modifier and Type | Method and Description |
---|---|
static java.awt.Color |
getColor(java.lang.String redComponent,
java.lang.String greenComponent,
java.lang.String blueComponent)
Search the uiSettings resourcebundle for the 3 color components specified
by the redComponent, greenComponent and blueComponent properties.
|
static java.awt.Dimension |
getDimension(java.lang.String widthKey,
java.lang.String heightKey,
int defaultWidth,
int defaultHeight)
Search the uiSettings resourcebundle for the width and height specified
by the widthKey and heightKey properties.
|
static int |
getPlatform()
Get the platform on which this application is running.
|
static short |
getSVGRenderingMethod() |
static void |
setLookAndFeel()
Set the look & feel - first check if a user-specified L&F exists in the file
whose path is obtained from StaticResources.UI_SETTINGS_BUNDLE.
|
_getInt, _getString, getBoolean, getDisplayString, getDisplayTextProperty, getSettingsString, getSize, getUISettingsProperty, getUiSVGIconMappingsByClass, getUiSVGIconMappingsByLSID, getValueFromName
public static final short SVG_RENDERING_NOT_SET
public static final short SVG_DIVA_RENDERING
public static final short SVG_BATIK_RENDERING
public static final int WINDOWS
public static final int MAC_OSX
public static final int LINUX
public static java.awt.Color getColor(java.lang.String redComponent, java.lang.String greenComponent, java.lang.String blueComponent)
redComponent
- String the properties key String for the red componentgreenComponent
- String the properties key String for the green componentblueComponent
- String the properties key String for the blue componentpublic static java.awt.Dimension getDimension(java.lang.String widthKey, java.lang.String heightKey, int defaultWidth, int defaultHeight)
widthKey
- the properties key String for the width settingheightKey
- the properties key String for the height settingdefaultWidth
- int - the default width to be used if the property cannot be
founddefaultHeight
- int - the default height to be used if the property cannot be
foundpublic static int getPlatform()
public static short getSVGRenderingMethod()
public static void setLookAndFeel()