Class TLspViewTouchInfo

All Implemented Interfaces:
ILcdCloneable, Cloneable

public class TLspViewTouchInfo extends ALspViewTouchInfo
Default implementation of ALspViewTouchInfo.
Since:
2012.0
  • Constructor Details

    • TLspViewTouchInfo

      public TLspViewTouchInfo(Object aDomainObject, ILcdPoint aTouchedPoint, boolean aHasDepth)
      Constructs a new view touch info.
      Parameters:
      aDomainObject - the touched domain object
      aTouchedPoint - the point in view coordinates of the label that was touched
      aHasDepth - a boolean indicating if the touched label is painted with or without depth testing
  • Method Details

    • set

      public void set(Object aDomainObject, ILcdPoint aTouchedPoint, boolean aHasDepth)
      Sets the view touch info.
      Parameters:
      aDomainObject - the touched domain object
      aTouchedPoint - the point in view coordinates of the label that was touched
      aHasDepth - a boolean indicating if the touched label is painted with or without depth testing
    • getDomainObject

      public Object getDomainObject()
      Description copied from class: ALspTouchInfo
      Returns the domain object.
      Specified by:
      getDomainObject in class ALspTouchInfo
      Returns:
      the domain object
    • getTouchedViewPoint

      public ILcdPoint getTouchedViewPoint()
      Description copied from class: ALspViewTouchInfo
      Returns the point in view coordinates that was touched.
      Specified by:
      getTouchedViewPoint in class ALspViewTouchInfo
      Returns:
      the point in view coordinates of the label that was touched
    • hasDepth

      public boolean hasDepth()
      Description copied from class: ALspViewTouchInfo
      Method indicating whether or not the touched geometry is painted with or without depth testing.
      Specified by:
      hasDepth in class ALspViewTouchInfo
      Returns:
      a flag indicating the touched label was painted with or without depth testing.
    • clone

      public TLspViewTouchInfo clone()
      Description copied from class: ALspTouchInfo
      Returns a clone of this object.

      The default implementation delegates to Object.clone().

      Specified by:
      clone in interface ILcdCloneable
      Overrides:
      clone in class ALspViewTouchInfo
      Returns:
      a clone of this object.
      See Also:
    • toString

      public String toString()
      Overrides:
      toString in class Object