Package com.luciad.view.vertical
Class TLcdVVCursorChangeEvent
java.lang.Object
java.util.EventObject
com.luciad.view.vertical.TLcdVVCursorChangeEvent
- All Implemented Interfaces:
Serializable
This event is thrown by a
TLcdVVJPanel
when its cursor's position has
changed.- See Also:
-
Field Summary
Fields inherited from class java.util.EventObject
source
-
Constructor Summary
ConstructorDescriptionTLcdVVCursorChangeEvent
(Object aSource, ILcdPoint aLeftPoint, ILcdPoint aRightPoint, double aPercentage) Deprecated.Use the constructor with the left index instead.TLcdVVCursorChangeEvent
(Object aSource, ILcdPoint aLeftPoint, ILcdPoint aRightPoint, double aPercentage, int aLeftPointIndex) Creates a new event signalling a change in the cursor's position. -
Method Summary
Methods inherited from class java.util.EventObject
getSource
-
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 originatesaLeftPoint
- the point to the left of the cursoraRightPoint
- the point to the right of the cursoraPercentage
- 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 originatesaLeftPoint
- the point to the left of the cursoraRightPoint
- the point to the right of the cursoraPercentage
- 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
- Returns:
- the
ILcdPoint
that is located at the left of the vertical cursor.
-
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
- Overrides:
toString
in classEventObject
-