Class TLspSelectMode
java.lang.Object
com.luciad.view.lightspeed.controller.selection.TLspSelectMode
This class defines the different ways a user can select objects in a view.
The default
TLspSelectControllerModel can deal with the following modes:
Creating custom instances
Custom modes can be retrieved using the getInstance method.
When using a custom one, make sure your TLspSelectControllerModel set on the
TLspSelectController can handle this mode.
On a default TLspSelectControllerModel, this is done by either overriding the applySelection
method or replacing the registered ILspSelectionCandidateHandler instances.
- Since:
- 2012.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final TLspSelectModeSelect mode defining that the candidates for the selection should be added to the current selection.static final TLspSelectModeSelect mode defining that the current selection state of the candidates for the selection should be toggled: those that were selected are deselected, those that were deselected are selected.static final TLspSelectModeSelect mode defining that no changes must be made to the selection.static final TLspSelectModeSelect mode defining that the candidates for the selection should be removed from the current selection.static final TLspSelectModeSelect mode defining that the current selection is replaced by a new selection. -
Method Summary
Modifier and TypeMethodDescriptionstatic TLspSelectModegetInstance(String aName) Returns an instance of aTLspSelectModebased on a name.getName()Returns the name of this select mode.toString()Returns the name of this select mode.
-
Field Details
-
REPLACE
Select mode defining that the current selection is replaced by a new selection. This means that, before selection is applied, the existing selection of all layers in the relevant view should be cleared. After that the candidates for selection are selected. -
ADD
Select mode defining that the candidates for the selection should be added to the current selection. -
REMOVE
Select mode defining that the candidates for the selection should be removed from the current selection. -
INVERT
Select mode defining that the current selection state of the candidates for the selection should be toggled: those that were selected are deselected, those that were deselected are selected. -
NO_CHANGE
Select mode defining that no changes must be made to the selection.
-
-
Method Details
-
getInstance
Returns an instance of aTLspSelectModebased on a name.- Parameters:
aName- the name of theTLspSelectMode.- Returns:
- the
TLspSelectMode.
-
getName
Returns the name of this select mode.- Returns:
- the name.
-
toString
Returns the name of this select mode.
-