Class TLspSelectChoice
Determines how to select from a list of (typically overlapping or very close) domain objects. Default available strategies are:
Creating custom strategies
Custom TLspSelectChoice instances can be retrieved using the getInstance method.
When using a custom one, make sure your TLspSelectControllerModel set on the
TLspSelectController can handle this choice.
On a default TLspSelectControllerModel, this is done by registering a custom ILspSelectionCandidateHandler
through the TLspSelectControllerModel.setSelectionCandidateHandlerFor(TLspSelectChoice, ILspSelectionCandidateHandler) method.
You also want to use a custom TLspSelectController where the selectChoice
method is modified to return your custom choice when applicable.
- Since:
- 2012.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final TLspSelectChoiceChoice indicating to theTLspSelectControllerandTLspSelectControllerModelthat the user can choose one or more selection candidates for which the selection is actually applied.static final TLspSelectChoiceThe default choice for which theTLspSelectControllerandTLspSelectControllerModelwill select the topmost object when trying to select overlapping objects. -
Method Summary
Modifier and TypeMethodDescriptionstatic TLspSelectChoicegetInstance(String aName) Returns an instance of aTLspSelectChoicebased on a name.getName()Returns the name of this select choice.toString()Returns the name of this select choice.
-
Field Details
-
DEFAULT
The default choice for which the
TLspSelectControllerandTLspSelectControllerModelwill select the topmost object when trying to select overlapping objects.See
TLspSelectControllerModel.applySelection(ALspSelectInput, TLspSelectChoice, TLspSelectMode, List, ILspView)for more details on how the default select controller handles this choice. -
CHOOSE
Choice indicating to the
TLspSelectControllerandTLspSelectControllerModelthat the user can choose one or more selection candidates for which the selection is actually applied.See
TLspSelectControllerModel.applySelection(ALspSelectInput, TLspSelectChoice, TLspSelectMode, List, ILspView)for more details on how the default select controller handles this choice.
-
-
Method Details
-
getInstance
Returns an instance of aTLspSelectChoicebased on a name.- Parameters:
aName- the name of theTLspSelectChoice.- Returns:
- the
TLspSelectChoice.
-
getName
Returns the name of this select choice.- Returns:
- the name.
-
toString
Returns the name of this select choice.
-