Interface ElementSelectionManager

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      cern.accsoft.steering.jmad.domain.elem.Element getSelectedElement()
      Returns the element which was last selected.
      java.util.List<cern.accsoft.steering.jmad.domain.elem.Element> getSelectedElements()
      returns all the selected elements in the order as they appear in the sequence.
      void setSelectedElements​(java.util.List<cern.accsoft.steering.jmad.domain.elem.Element> selectedElements, cern.accsoft.steering.jmad.domain.elem.Element mostRecentlySelectedElement)
      Sets the given elements as the actually selected ones
    • Method Detail

      • getSelectedElements

        java.util.List<cern.accsoft.steering.jmad.domain.elem.Element> getSelectedElements()
        returns all the selected elements in the order as they appear in the sequence. The order is independent of the time when selecting the individual elements.
        Returns:
        all the actually selected elements
      • getSelectedElement

        cern.accsoft.steering.jmad.domain.elem.Element getSelectedElement()
        Returns the element which was last selected.
        Returns:
        the most recently selected element
      • setSelectedElements

        void setSelectedElements​(java.util.List<cern.accsoft.steering.jmad.domain.elem.Element> selectedElements,
                                 cern.accsoft.steering.jmad.domain.elem.Element mostRecentlySelectedElement)
        Sets the given elements as the actually selected ones
        Parameters:
        selectedElements - all the selected elements (migth be an empty list)
        mostRecentlySelectedElement - the element which was most recently selected. might be null