Interface ISelectionManager
public interface ISelectionManager
Interface to describe a selection manager object.
- Since:
- 2.0, 9/11/2010
- Version:
- 1.0
- Author:
- vlygeros
-
Method Summary
Modifier and TypeMethodDescriptionvoidclear()Clears the current selection.booleandeselect(ISelectionSupport element) Allows to deselect aIDesignElementobject.Gets the selected design elements.Gets the first element of the selection.booleanChecks if a multiple selection is allowed.booleanselect(ISelectionSupport element) Allows to select aIDesignElementobject.voidsetMultiSelect(boolean multiSelect) Sets multiple selection
-
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
ISelectionSupportobjects.
-
getSingleSelection
ISelectionSupport getSingleSelection()Gets the first element of the selection.- Returns:
- A
ISelectionSupportobject.
-
select
Allows to select aIDesignElementobject.- Parameters:
element- The design element as aISelectionSupportobject.- Returns:
- true if the design element is selected, false otherwise.
-
deselect
Allows to deselect aIDesignElementobject.- Parameters:
element- The design element as aISelectionSupportobject.- Returns:
- true if the design element was selected, false otherwise.
-
clear
void clear()Clears the current selection.
-