Class JGradientBar

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible

public class JGradientBar extends JPanel
A GUI legend component that displays a color map as a color gradient from min to max, traversing all the colors in the color map. Used in the GeneSetDetails view.
Author:
Will Braynen
See Also:
  • Field Details

    • EMPTY

      protected static final Color[] EMPTY
    • gradient

      protected ubic.basecode.graphics.JGradientLabel gradient
    • m_max

      protected ubic.basecode.graphics.JNumberLabel m_max
    • m_min

      protected ubic.basecode.graphics.JNumberLabel m_min
  • Constructor Details

    • JGradientBar

      public JGradientBar()
    • JGradientBar

      public JGradientBar(Color[] map)
  • Method Details

    • setColorMap

      public void setColorMap(Color[] colorMap)
    • setLabels

      public void setLabels(double min, double max)