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 TypeMethodDescriptionvoid
clear()
Clears the current selection.boolean
deselect
(ISelectionSupport element) Allows to deselect aIDesignElement
object.Gets the selected design elements.Gets the first element of the selection.boolean
Checks if a multiple selection is allowed.boolean
select
(ISelectionSupport element) Allows to select aIDesignElement
object.void
setMultiSelect
(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
ISelectionSupport
objects.
-
getSingleSelection
ISelectionSupport getSingleSelection()Gets the first element of the selection.- Returns:
- A
ISelectionSupport
object.
-
select
Allows to select aIDesignElement
object.- Parameters:
element
- The design element as aISelectionSupport
object.- Returns:
- true if the design element is selected, false otherwise.
-
deselect
Allows to deselect aIDesignElement
object.- Parameters:
element
- The design element as aISelectionSupport
object.- Returns:
- true if the design element was selected, false otherwise.
-
clear
void clear()Clears the current selection.
-