Interface ISelectionManager


public interface ISelectionManager
Interface to describe a selection manager object.
Since:
2.0, 9/11/2010
Version:
1.0
Author:
vlygeros
  • Method Details

    • isMultiSelect

      boolean isMultiSelect()
      Checks if a multiple selection is allowed.
      Returns:
      true if multiple, false otherwise.
    • setMultiSelect

      void setMultiSelect(boolean multiSelect)
      Sets multiple selection
      Parameters:
      multiSelect - : if true, the selection is multiple, single otherwise
    • getSelection

      Collection<ISelectionSupport> getSelection()
      Gets the selected design elements.
      Returns:
      A collection of ISelectionSupport objects.
    • getSingleSelection

      ISelectionSupport getSingleSelection()
      Gets the first element of the selection.
      Returns:
      A ISelectionSupport object.
    • select

      boolean select(ISelectionSupport element)
      Allows to select a IDesignElement object.
      Parameters:
      element - The design element as a ISelectionSupport object.
      Returns:
      true if the design element is selected, false otherwise.
    • deselect

      boolean deselect(ISelectionSupport element)
      Allows to deselect a IDesignElement object.
      Parameters:
      element - The design element as a ISelectionSupport object.
      Returns:
      true if the design element was selected, false otherwise.
    • clear

      void clear()
      Clears the current selection.