public interface ILcdGXYSelectControllerModel
TLcdGXYSelectController
performs selection
on an ILcdGXYView
.TLcdGXYSelectController
Modifier and Type | Field and Description |
---|---|
static int |
ALTERNATE
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 int |
CHOOSE
Indicates that the choice of the selection is delegated to
chooseSelectionAt(com.luciad.view.gxy.ILcdGXYLayerSubsetList, java.awt.event.MouseEvent, com.luciad.view.gxy.ILcdGXYView) . |
static int |
FIRST_TOUCHED
Indicates that the first Object touched by the relevant mousePressed event
is selected.
|
Modifier and Type | Method and Description |
---|---|
void |
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.
|
static final int FIRST_TOUCHED
static final int ALTERNATE
static final int CHOOSE
chooseSelectionAt(com.luciad.view.gxy.ILcdGXYLayerSubsetList, java.awt.event.MouseEvent, com.luciad.view.gxy.ILcdGXYView)
.int selectionMode(MouseEvent aMouseEvent)
aMouseEvent
- the mouse event that triggered the selectionchooseSelectionAt(com.luciad.view.gxy.ILcdGXYLayerSubsetList, java.awt.event.MouseEvent, com.luciad.view.gxy.ILcdGXYView)
.void chooseSelectionAt(ILcdGXYLayerSubsetList aPotentialSelection, MouseEvent aMouseEvent, ILcdGXYView aGXYView)
aPotentialSelection
contains these touched Objects and is passed by the
TLcdGXYSelectController
which has this
ILcdGXYSelectControllerModel
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 given ILcdGXYView
.aPotentialSelection
- the touched Object grouped by the
ILcdGXYLayer
that contains them.aMouseEvent
- the mouse event that triggered the selectionaGXYView
- the view for which the selection is meantILcdLayer.selectObject(java.lang.Object, boolean, int)
,
ILcdGXYLayerSubsetList