Package com.luciad.view.gxy.controller
Class TLcdGXYSelectControllerModelSW
java.lang.Object
com.luciad.view.gxy.controller.TLcdGXYSelectControllerModelSW
- All Implemented Interfaces:
ILcdGXYSelectControllerModel
Deprecated.
ILcdGXYSelectControllerModel that lets the user choose an object
to select when performing a mousePressed with the
Ctrl and Shift keys pressed (see
selectionMode(java.awt.event.MouseEvent)
).
The user is shown a JPopupMenu that contains a String representation
(see formatObject(java.lang.Object, com.luciad.view.gxy.ILcdGXYLayer)
) of all
Objects potentially selectable at that mousePressed location on the screen.- See Also:
-
Field Summary
Fields inherited from interface com.luciad.view.gxy.controller.ILcdGXYSelectControllerModel
ALTERNATE, CHOOSE, FIRST_TOUCHED
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
chooseSelectionAt
(ILcdGXYLayerSubsetList aPotentialSelection, MouseEvent aMouseEvent, ILcdGXYView aGXYView) Deprecated.This methods pops up a swing JPopupMenu containing a String representation (see formatObject) of all Objects potentially selectable at a given mousePressed location on the screen.formatObject
(Object aObject, ILcdGXYLayer aGXYLayer) Deprecated.This method returns a String representation of the given domainObject
contained in the givenILcdGXYLayer
.int
Deprecated.Returns the horizontal gap between the mousePressed location and the PopupMenu when it is shown.int
Deprecated.Returns the vertical gap between the mousePressed location and the PopupMenu when it is shown.boolean
Deprecated.This method has been deprecated.int
Deprecated.Determines the selection mode taking into the given MouseEvent: The popup will be shown when the mousePressed is performed with the Ctrl and Shift keys are pressed (CHOOSE mode:me.isShiftDown() && me.isControlDown()
(isMetaDown()
in Mac OS).static void
setClassTraceOn
(boolean aClassTraceOn) Deprecated.This method has been deprecated.void
setPopupDeltaX
(int aPopupDeltaX) Deprecated.Sets the horizontal gap between the mousePressed location and the PopupMenu when it is shown.void
setPopupDeltaY
(int aPopupDeltaY) Deprecated.Sets the vertical gap between the mousePressed location and the PopupMenu when it is shown.void
setTraceOn
(boolean aTraceOn) Deprecated.This method has been deprecated.
-
Constructor Details
-
TLcdGXYSelectControllerModelSW
public TLcdGXYSelectControllerModelSW()Deprecated.
-
-
Method Details
-
setClassTraceOn
public static void setClassTraceOn(boolean aClassTraceOn) Deprecated.This method has been deprecated. It is recommended to use the standard Java logging framework directly.Enables tracing for all instances of this class. If the argument istrue
then all log messages are recorded, otherwise only the informative, warning and error messages are recorded.- Parameters:
aClassTraceOn
- if true then all log messages are recorded, otherwise only the informative, warning and error messages are recorded.
-
setTraceOn
public void setTraceOn(boolean aTraceOn) Deprecated.This method has been deprecated. It is recommended to use the standard Java logging framework directly.Enables tracing for this class instance. Calling this method with eithertrue
orfalse
as argument automatically turns off tracing for all other class instances for whichsetTraceOn
has not been called. If the argument isfalse
then only the informative, warning and error log messages are recorded.- Parameters:
aTraceOn
- if true then all log messages are recorded for this instance. If false, then only the informative, warning and error log messages are recorded.
-
isTraceOn
public boolean isTraceOn()Deprecated.This method has been deprecated. It is recommended to use the standard Java logging framework directly.Returnstrue
if tracing is enabled for this class.- Returns:
- true if tracing is enabled for this class, false otherwise.
-
setPopupDeltaX
public void setPopupDeltaX(int aPopupDeltaX) Deprecated.Sets the horizontal gap between the mousePressed location and the PopupMenu when it is shown. This value can be negative. Default value is 20.- Parameters:
aPopupDeltaX
- the horizontal gap between the mousePressed location and the PopupMenu when it is shown.
-
getPopupDeltaX
public int getPopupDeltaX()Deprecated.Returns the horizontal gap between the mousePressed location and the PopupMenu when it is shown. This value can be negative.- Returns:
- the horizontal gap between the mousePressed location and the PopupMenu when it is shown.
- See Also:
-
setPopupDeltaY
public void setPopupDeltaY(int aPopupDeltaY) Deprecated.Sets the vertical gap between the mousePressed location and the PopupMenu when it is shown. This value can be negative. Default value is -20.- Parameters:
aPopupDeltaY
- the vertical gap between the mousePressed location and the PopupMenu when it is shown.- See Also:
-
getPopupDeltaY
public int getPopupDeltaY()Deprecated.Returns the vertical gap between the mousePressed location and the PopupMenu when it is shown. This value can be negative.- Returns:
- the vertical gap between the mousePressed location and the PopupMenu when it is shown.
- See Also:
-
selectionMode
Deprecated.Determines the selection mode taking into the given MouseEvent: The popup will be shown when the mousePressed is performed with the Ctrl and Shift keys are pressed (CHOOSE mode:me.isShiftDown() && me.isControlDown()
(isMetaDown()
in Mac OS). The alternate mode is chosen when the mousePressed is performed with the Alt key pressed only. The FIRST_TOUCHED mode is chosen otherwise. This method can redefined.- Specified by:
selectionMode
in interfaceILcdGXYSelectControllerModel
- Parameters:
me
- 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
ILcdGXYSelectControllerModel.chooseSelectionAt(com.luciad.view.gxy.ILcdGXYLayerSubsetList, java.awt.event.MouseEvent, com.luciad.view.gxy.ILcdGXYView)
.
-
chooseSelectionAt
public void chooseSelectionAt(ILcdGXYLayerSubsetList aPotentialSelection, MouseEvent aMouseEvent, ILcdGXYView aGXYView) Deprecated.This methods pops up a swing JPopupMenu containing a String representation (see formatObject) of all Objects potentially selectable at a given mousePressed location on the screen. This method is called only when the selectionMode(MouseEvent) method returns ILcdGXYSelectControllerModel.CHOOSE.- Specified by:
chooseSelectionAt
in interfaceILcdGXYSelectControllerModel
- 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:
-
formatObject
Deprecated.This method returns a String representation of the given domainObject
contained in the givenILcdGXYLayer
. This will be displayed in the JPopupMenu. This method can be redefined.- Parameters:
aObject
- the object to formataGXYLayer
- the layer the object is contained in and for which it should be formatted. This should be regarded as the context of the object, as the format may change depending on the layer.- Returns:
- aObject.toString()
-
TLcdGXYSelectControllerModel2
instead. The functionality of this class will remain present as is.