Package Spectrogram

Class ColourRangeSlider

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible, SwingConstants

public class ColourRangeSlider extends PamRangeSlider
A range slider which shows a colour gradient between two thumbs.
Author:
Jamie Macaulay
See Also:
  • Constructor Details

    • ColourRangeSlider

      public ColourRangeSlider()
    • ColourRangeSlider

      public ColourRangeSlider(int min, int max)
    • ColourRangeSlider

      public ColourRangeSlider(int min, int max, int orientation)
    • ColourRangeSlider

      public ColourRangeSlider(int orientation)
  • Method Details

    • setColourMap

      public void setColourMap(ColourArray.ColourArrayType colourMap)
      Set the colour map type to show between the two thumbs.
      Parameters:
      colourMap - - the colour map to show.
    • setColourMap

      public void setColourMap(ColourArray colourMap)
      Set a custom colour map type to show between the two thumbs.
      Parameters:
      colourMap - - the colour map to show.
    • updateUI

      public void updateUI()
      Overrides the superclass method to install the UI delegate to draw two thumbs.
      Overrides:
      updateUI in class PamRangeSlider