uk.ac.starlink.ttools.plot2
Class IndicatedRow

java.lang.Object
  extended by uk.ac.starlink.ttools.plot2.IndicatedRow

public class IndicatedRow
extends Object

Represents a row from a dataset in relation to a reference position, by aggregating a row index and the distance from the point.

Since:
21 Nov 2014
Author:
Mark Taylor

Constructor Summary
IndicatedRow(long index, double distance)
          Constructor.
 
Method Summary
 double getDistance()
          Returns the distance from the reference position.
 long getIndex()
          Returns the row index.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

IndicatedRow

public IndicatedRow(long index,
                    double distance)
Constructor.

Parameters:
index - row index
distance - distance from reference position
Method Detail

getIndex

public long getIndex()
Returns the row index.

Returns:
row index

getDistance

public double getDistance()
Returns the distance from the reference position.

Returns:
distance

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2017 Central Laboratory of the Research Councils. All Rights Reserved.