Class MicrobaComponent

java.lang.Object
java.awt.Component
java.awt.Container
javax.swing.JComponent
com.michaelbaranov.microba.common.MicrobaComponent
All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable
Direct Known Subclasses:
CalendarPane, GradientBar, MarkerBar

public class MicrobaComponent extends JComponent
Superclass for all Microba GUI components.
Author:
Michael Baranov
See Also:
  • Field Details

  • Constructor Details

    • MicrobaComponent

      public MicrobaComponent()
  • Method Details

    • getUI

      public ComponentUI getUI()
      Overrides:
      getUI in class JComponent
    • 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.

      Overrides:
      updateUI in class JComponent
    • 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.

      Returns:
      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))
    • setColorOverrideMap

      public void setColorOverrideMap(Map colorOverrideMap)
      Sets per-instance (only for this instance) map of color overrides.
      Parameters:
      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.