Package uk.ac.starlink.ttools.plot2
Class IndicatedRow
java.lang.Object
uk.ac.starlink.ttools.plot2.IndicatedRow
Represents a row from a dataset in relation to a reference position.
- Since:
- 21 Nov 2014
- Author:
- Mark Taylor
-
Constructor Details
-
IndicatedRow
public IndicatedRow(long index, double distance, double[] dpos) Constructor.- Parameters:
index
- row indexdistance
- distance from reference position in graphics coordinatesdpos
- row position in data coordinates
-
-
Method Details
-
getIndex
public long getIndex()Returns the row index.- Returns:
- row index
-
getDistance
public double getDistance()Returns the distance of the row position from the reference position.- Returns:
- distance
-
getDataPos
public double[] getDataPos()Returns the row position in data coordinates.- Returns:
- row position coordinates
-
toString
-