Class TLcdGXYSelectControllerModel

java.lang.Object
com.luciad.view.gxy.controller.TLcdGXYSelectControllerModel
All Implemented Interfaces:
ILcdGXYSelectControllerModel

public class TLcdGXYSelectControllerModel extends Object implements ILcdGXYSelectControllerModel
Deprecated.
as of version 10.0. It is advised to use the more flexible and powerful TLcdGXYSelectControllerModel2 instead. The functionality of this class will remain present as is.
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 PopupMenu 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 TLcdGXYSelectControllerModelSW for the Swing variant of this class.

See Also:
  • Field Summary

    Fields inherited from interface com.luciad.view.gxy.controller.ILcdGXYSelectControllerModel

    ALTERNATE, CHOOSE, FIRST_TOUCHED
  • Constructor Summary

    Constructors
    Constructor
    Description
    Deprecated.
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    chooseSelectionAt(ILcdGXYLayerSubsetList aPotentialSelection, MouseEvent aMouseEvent, ILcdGXYView aGXYView)
    Deprecated.
    This methods pops up a swing PopupMenu 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 domain Object contained in the given ILcdGXYLayer.
    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 Alt 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.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • TLcdGXYSelectControllerModel

      public TLcdGXYSelectControllerModel()
      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 is true 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 either 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.
      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.
      Returns true 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.
      Parameters:
      aPopupDeltaX - the horizontal gap between the mousePressed location and the PopupMenu when it is shown.
      See Also:
    • getPopupDeltaX

      public int getPopupDeltaX()
      Deprecated.
      Returns the horizontal gap between the mousePressed location and the PopupMenu when it is shown.
      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.
      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.
      Returns:
      the vertical gap between the mousePressed location and the PopupMenu when it is shown.
      See Also:
    • selectionMode

      public 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 Alt 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 be redefined. WARNING: use of Alt key for CHOOSE mode makes the Popup not staying visible when shown
      Specified by:
      selectionMode in interface ILcdGXYSelectControllerModel
      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 PopupMenu 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 interface ILcdGXYSelectControllerModel
      Parameters:
      aPotentialSelection - the touched Object grouped by the ILcdGXYLayer that contains them.
      aMouseEvent - the mouse event that triggered the selection
      aGXYView - the view for which the selection is meant
      See Also:
    • formatObject

      public String formatObject(Object aObject, ILcdGXYLayer aGXYLayer)
      Deprecated.
      This method returns a String representation of the given domain Object contained in the given ILcdGXYLayer. This will be displayed in the PopupMenu. This method can be redefined.
      Parameters:
      aObject - the object to return a String representation for
      aGXYLayer - the layer that contains the given object
      Returns:
      aObject.toString()