fr.esrf.tangoatk.widget.util.chart
Class SearchInfo

java.lang.Object
  extended by fr.esrf.tangoatk.widget.util.chart.SearchInfo

public class SearchInfo
extends java.lang.Object

A class to handle search result. It is used when user clicks on the graph and when the nearest value found is displayed


Field Summary
 JLAxis axis
          Axis on which the view containing the point is displayed
static int BOTTOMLEFT
          Value tooltip BOTTOMLEFT placement
static int BOTTOMRIGHT
          Value tooltip BOTTOMRIGHT placement
 int clickIdx
          index in the dataView that contains the clicked point
 JLDataView dataView
          Y DataView which contains the point
 double dist
          Square distance from click to point (pixel)
 boolean found
          True when a point has been found
 int placement
          placement of the tooltip panel
static int TOPLEFT
          Value tooltip TOPLEFT placement
static int TOPRIGHT
          Value tooltip TOPRIGHT placement
 DataList value
          Handle to the y value
 int x
          X pixel coordinates of the point found
 JLDataView xdataView
          X DataView which countaing the point (XY monitoring)
 DataList xvalue
          Handle to the X value (XY monitoring)
 int y
          Y pixel coordinates of the point found
 
Method Summary
 void setXValue(DataList d, JLDataView x)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

TOPLEFT

public static final int TOPLEFT
Value tooltip TOPLEFT placement

See Also:
Constant Field Values

TOPRIGHT

public static final int TOPRIGHT
Value tooltip TOPRIGHT placement

See Also:
Constant Field Values

BOTTOMLEFT

public static final int BOTTOMLEFT
Value tooltip BOTTOMLEFT placement

See Also:
Constant Field Values

BOTTOMRIGHT

public static final int BOTTOMRIGHT
Value tooltip BOTTOMRIGHT placement

See Also:
Constant Field Values

found

public boolean found
True when a point has been found


x

public int x
X pixel coordinates of the point found


y

public int y
Y pixel coordinates of the point found


axis

public JLAxis axis
Axis on which the view containing the point is displayed


dataView

public JLDataView dataView
Y DataView which contains the point


value

public DataList value
Handle to the y value


xdataView

public JLDataView xdataView
X DataView which countaing the point (XY monitoring)


xvalue

public DataList xvalue
Handle to the X value (XY monitoring)


dist

public double dist
Square distance from click to point (pixel)


placement

public int placement
placement of the tooltip panel


clickIdx

public int clickIdx
index in the dataView that contains the clicked point

Method Detail

setXValue

public void setXValue(DataList d,
                      JLDataView x)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object