Class TLcdVVCursorChangeEvent

java.lang.Object
java.util.EventObject
com.luciad.view.vertical.TLcdVVCursorChangeEvent
All Implemented Interfaces:
Serializable

public class TLcdVVCursorChangeEvent extends EventObject
This event is thrown by a TLcdVVJPanel when its cursor's position has changed.
See Also:
  • Constructor Details

    • TLcdVVCursorChangeEvent

      public TLcdVVCursorChangeEvent(Object aSource, ILcdPoint aLeftPoint, ILcdPoint aRightPoint, double aPercentage)
      Deprecated.
      Use the constructor with the left index instead.
      Creates a new event signalling a change in the cursor's position.
      Parameters:
      aSource - the source from which the event originates
      aLeftPoint - the point to the left of the cursor
      aRightPoint - the point to the right of the cursor
      aPercentage - the relative distance between the two points ( 0 until 1 )
    • TLcdVVCursorChangeEvent

      public TLcdVVCursorChangeEvent(Object aSource, ILcdPoint aLeftPoint, ILcdPoint aRightPoint, double aPercentage, int aLeftPointIndex)
      Creates a new event signalling a change in the cursor's position.
      Parameters:
      aSource - the source from which the event originates
      aLeftPoint - the point to the left of the cursor
      aRightPoint - the point to the right of the cursor
      aPercentage - the relative distance between the two points ( 0 until 1 )
      aLeftPointIndex - the main profile index of the point left of the cursor
  • Method Details

    • getLeftPoint

      public ILcdPoint getLeftPoint()
      Returns:
      the ILcdPoint that is located at the left of the vertical cursor.
    • getRightPoint

      public ILcdPoint getRightPoint()
      Returns:
      the ILcdPoint that is located at the right of the vertical cursor.
    • getPercentage

      public double getPercentage()
      Returns:
      the relative distance between the two points ( 0 until 1 )
    • getLeftPointIndex

      public int getLeftPointIndex()
      Returns:
      the main profile index of the point located at the left of the vertical cursor
    • toString

      public String toString()
      Overrides:
      toString in class EventObject