Package com.luciad.view.gxy.controller
Interface ILcdGXYSelectControllerModel
- All Known Implementing Classes:
TLcdGXYSelectControllerModel
,TLcdGXYSelectControllerModelSW
public interface ILcdGXYSelectControllerModel
Customizes the way a
TLcdGXYSelectController
performs selection
on an ILcdGXYView
.- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
Indicates that the selection changes as the user keeps clicking on the same spot: a new selection combination is made for each mousePressed event done at the same screen location.static final int
Indicates that the choice of the selection is delegated tochooseSelectionAt(com.luciad.view.gxy.ILcdGXYLayerSubsetList, java.awt.event.MouseEvent, com.luciad.view.gxy.ILcdGXYView)
.static final int
Indicates that the first Object touched by the relevant mousePressed event is selected. -
Method Summary
Modifier and TypeMethodDescriptionvoid
chooseSelectionAt
(ILcdGXYLayerSubsetList aPotentialSelection, MouseEvent aMouseEvent, ILcdGXYView aGXYView) Chooses and sets the selection considering the Objects touched by a given mousePressed event.int
selectionMode
(MouseEvent aMouseEvent) Returns how a list of potentially selected objects is to be changed into the selection.
-
Field Details
-
FIRST_TOUCHED
static final int FIRST_TOUCHEDIndicates that the first Object touched by the relevant mousePressed event is selected.- See Also:
-
ALTERNATE
static final int ALTERNATEIndicates that the selection changes as the user keeps clicking on the same spot: a new selection combination is made for each mousePressed event done at the same screen location.- See Also:
-
CHOOSE
static final int CHOOSEIndicates that the choice of the selection is delegated tochooseSelectionAt(com.luciad.view.gxy.ILcdGXYLayerSubsetList, java.awt.event.MouseEvent, com.luciad.view.gxy.ILcdGXYView)
.- See Also:
-
-
Method Details
-
selectionMode
Returns how a list of potentially selected objects is to be changed into the selection.- Parameters:
aMouseEvent
- the mouse event that triggered the selection- Returns:
- one of
ILcdGXYSelectControllerModel.FIRST_TOUCHED,
ILcdGXYSelectControllerModel.ALTERNATE or
ILcdGXYSelectControllerModel.CHOOSE.
If ALTERNATE, a new selection combination is made for each mousePressed event done
at the same screen location.
If FIRST_TOUCHED, the first Object touched on a mousePressed event
is selected.
If CHOOSE, the choice of the selection is delegated to
chooseSelectionAt(com.luciad.view.gxy.ILcdGXYLayerSubsetList, java.awt.event.MouseEvent, com.luciad.view.gxy.ILcdGXYView)
.
-
chooseSelectionAt
void chooseSelectionAt(ILcdGXYLayerSubsetList aPotentialSelection, MouseEvent aMouseEvent, ILcdGXYView aGXYView) Chooses and sets the selection considering the Objects touched by a given mousePressed event.aPotentialSelection
contains these touched Objects and is passed by theTLcdGXYSelectController
which has thisILcdGXYSelectControllerModel
as a property. By implementing this method, one can, for instance, display a popup menu displaying the names of the touched Objects, ask the use to pick one, and make the picked object selected on the givenILcdGXYView
.- Parameters:
aPotentialSelection
- the touched Object grouped by theILcdGXYLayer
that contains them.aMouseEvent
- the mouse event that triggered the selectionaGXYView
- the view for which the selection is meant- See Also:
-