Package com.nomagic.magicdraw.ui
Interface SelectionProvider.Selection
-
- Enclosing class:
- SelectionProvider
@OpenApiAll public static interface SelectionProvider.Selection
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description BaseElement
getMainElement()
java.util.Collection<? extends BaseElement>
getSelected()
default BaseElement
getSelectedOrMainElement()
int
getSize()
-
-
-
Method Detail
-
getSize
int getSize()
- Returns:
- number of selected elements
-
getSelected
java.util.Collection<? extends BaseElement> getSelected()
- Returns:
- selected elements
-
getMainElement
@CheckForNull BaseElement getMainElement()
- Returns:
- main selected element
-
getSelectedOrMainElement
@CheckForNull default BaseElement getSelectedOrMainElement()
- Returns:
- selected element if only one element is selected or main element
-
-