com.michaelbaranov.microba.common
Class MicrobaComponent
JComponentcom.michaelbaranov.microba.common.MicrobaComponent
public class MicrobaComponent
extends JComponent
Superclass for all Microba GUI components.
Map | getColorOverrideMap()- Returns per-instance (only for this instance) map of color overrides.
|
ComponentUI | getUI()
|
void | setColorOverrideMap(Map colorOverrideMap)- Sets per-instance (only for this instance) map of color overrides.
|
void | updateUI()- Sets the UI delegate of this component to the corresponding UI delegate
taken from UIManager.
|
PROPERTY_NAME_COLOR_OVERRIDE_MAP
public static final String PROPERTY_NAME_COLOR_OVERRIDE_MAP
getColorOverrideMap
public Map getColorOverrideMap()
Returns per-instance (only for this instance) map of color overrides. May
be
null.
NOTE: returned map is unmodifiable. Use
setColorOverrideMap(Map)
to change the map.
- 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))
getUI
public ComponentUI getUI()
setColorOverrideMap
public void setColorOverrideMap(Map colorOverrideMap)
Sets per-instance (only for this instance) map of color overrides.
colorOverrideMap - 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.
updateUI
public void updateUI()
Sets the UI delegate of this component to the corresponding UI delegate
taken from UIManager.
This implementation has a workarount to fix the problem with non-standard
class-loaders.