Class HipsSelector

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible

public class HipsSelector extends JPanel
GUI component that allows the user to choose a HiPS survey from an available list.
Since:
22 Oct 2019
Author:
Mark Taylor
See Also:
  • Constructor Details

    • HipsSelector

      public HipsSelector()
      Constructor.
  • Method Details

    • setSurveys

      public void setSurveys(HipsSurvey[] surveys)
      Sets the list of available surveys.
      Parameters:
      surveys - available HiPS surveys
    • addActionListener

      public void addActionListener(ActionListener listener)
      Adds a listener for changes to this selector.
      Parameters:
      listener - listener
    • removeActionListener

      public void removeActionListener(ActionListener listener)
      Removes a previously added listener.
      Parameters:
      listener - listener
    • getTextField

      public JTextField getTextField()
      Returns the field that contains the current selection. This may have been populated by selecting from the survey list, but it is also permissible to type into it, since the hips2fits service just tries string matching where required.
      Returns:
      field containing HiPS name/ID
    • getLines

      public JComponent[] getLines()
      Returns the sub-components of this GUI element as an array of vertically stacked lines.
      Returns:
      sub-component array
    • setSelectedSurvey

      public void setSelectedSurvey(HipsSurvey survey)
      Sets the currently selected survey. This method is used internally.
      Parameters:
      survey - new selection