public class Microba
extends java.lang.Object
Constructor and Description |
---|
Microba() |
Modifier and Type | Method and Description |
---|---|
static java.awt.Color |
getOverridenColor(java.lang.String colorConstant,
MicrobaComponent component)
Returns overriden color for given component in current Look&Feel.
|
static java.awt.Color |
getOverridenColor(java.lang.String colorConstant,
MicrobaComponent component,
java.awt.Color defaultColor)
Returns overriden color for given component in current Look&Feel or a
default value.
|
static void |
init()
Initializes the library: installs L&F properties, sets up a L&F change
listener.
|
static void |
setColorOverrideMap(java.lang.String lookAndFeel,
java.util.Map overrides)
Sets per-Lokk&Feel map of color overrides.
|
public static void init()
No need to call this method explicitly for desktop applications. You
should only call it in Applet.init()
. This will handle browser
refresh button correctly.
public static void setColorOverrideMap(java.lang.String lookAndFeel, java.util.Map overrides)
lookAndFeel
- look&feel IDoverrides
- keys in the map are String
constants, valuse are of
type Color
or of type String
(in this case,
Color
values are obtained via
UIManager.getColor(Object)
). May be null
.public static java.awt.Color getOverridenColor(java.lang.String colorConstant, MicrobaComponent component)
null
is returned.
colorConstant
- color constantcomponent
- component of the librarynull
if not overridenpublic static java.awt.Color getOverridenColor(java.lang.String colorConstant, MicrobaComponent component, java.awt.Color defaultColor)
colorConstant
- color constantcomponent
- component of the librarydefaultColor
-