TLcdGXYSelectControllerModel2
instead. The
functionality of this class will remain present as is.public class TLcdGXYSelectControllerModelSW extends Object implements ILcdGXYSelectControllerModel
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.TLcdGXYSelectControllerModel2
ALTERNATE, CHOOSE, FIRST_TOUCHED
Constructor and Description |
---|
TLcdGXYSelectControllerModelSW()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
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.
|
String |
formatObject(Object aObject,
ILcdGXYLayer aGXYLayer)
Deprecated.
This method returns a String representation of the given domain
Object contained in the given ILcdGXYLayer . |
int |
getPopupDeltaX()
Deprecated.
Returns the horizontal gap between the mousePressed location and the PopupMenu
when it is shown.
|
int |
getPopupDeltaY()
Deprecated.
Returns the vertical gap between the mousePressed location and the PopupMenu
when it is shown.
|
boolean |
isTraceOn()
Deprecated.
This method has been deprecated. It is recommended to use the
standard Java logging framework directly.
|
int |
selectionMode(MouseEvent me)
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. It is recommended to use the
standard Java logging framework directly.
|
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. It is recommended to use the
standard Java logging framework directly.
|
public TLcdGXYSelectControllerModelSW()
public static void setClassTraceOn(boolean aClassTraceOn)
true
then all log messages are recorded, otherwise only
the informative, warning and error messages are recorded.aClassTraceOn
- if true then all log messages are recorded,
otherwise only the informative, warning and error messages are recorded.public void setTraceOn(boolean aTraceOn)
true
or false
as argument automatically turns
off tracing for all other class instances for which
setTraceOn
has not been called.
If the argument is false
then only the informative, warning
and error log messages are recorded.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.public boolean isTraceOn()
true
if tracing is enabled for this class.public void setPopupDeltaX(int aPopupDeltaX)
aPopupDeltaX
- the horizontal gap between the mousePressed location and the PopupMenu
when it is shown.public int getPopupDeltaX()
setPopupDeltaX(int)
public void setPopupDeltaY(int aPopupDeltaY)
aPopupDeltaY
- the vertical gap between the mousePressed location and the PopupMenu
when it is shown.getPopupDeltaY()
public int getPopupDeltaY()
setPopupDeltaY(int)
public int selectionMode(MouseEvent me)
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.selectionMode
in interface ILcdGXYSelectControllerModel
me
- the mouse event that triggered the selectionILcdGXYSelectControllerModel.chooseSelectionAt(com.luciad.view.gxy.ILcdGXYLayerSubsetList, java.awt.event.MouseEvent, com.luciad.view.gxy.ILcdGXYView)
.public void chooseSelectionAt(ILcdGXYLayerSubsetList aPotentialSelection, MouseEvent aMouseEvent, ILcdGXYView aGXYView)
chooseSelectionAt
in interface ILcdGXYSelectControllerModel
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
public String formatObject(Object aObject, ILcdGXYLayer aGXYLayer)
Object
contained in the given ILcdGXYLayer
. This
will be displayed in the JPopupMenu.
This method can be redefined.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.