Class AutoAnnotateXYPlot.TransparentCrosshairState
- java.lang.Object
 - 
- org.jfree.chart.plot.CrosshairState
 - 
- com.inductiveautomation.factorypmi.application.components.chart.runtime.AutoAnnotateXYPlot.TransparentCrosshairState
 
 
 
- 
- Direct Known Subclasses:
 AutoAnnotateXYPlot.MultiCrosshairState
- Enclosing class:
 - AutoAnnotateXYPlot
 
public class AutoAnnotateXYPlot.TransparentCrosshairState extends org.jfree.chart.plot.CrosshairStateThis is an example of object oriented programming gone bad!! CrosshairState has no accessors for its private data variables which I need, hence this ridiculous copy-paste job, overriding everything. 
- 
- 
Field Summary
Fields Modifier and Type Field Description protected java.awt.geom.Point2DanchorThe anchor point in Java2D space - if null, don't update crosshair.protected doubleanchorXThe x-value (in data space) for the anchor point.protected doubleanchorYThe y-value (in data space) for the anchor point.protected doublecrosshairXThe x-value for the crosshair point.protected doublecrosshairYThe y-value for the crosshair point.protected doubledistanceThe smallest distance so far between the anchor point and a data point. 
- 
Constructor Summary
Constructors Constructor Description TransparentCrosshairState() 
- 
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description doublegetCrosshairX()doublegetCrosshairY()doublegetDistance()voidsetAnchor(java.awt.geom.Point2D anchor)voidsetCrosshairDistance(double distance)voidsetCrosshairX(double x)voidsetCrosshairY(double y)java.lang.StringtoString()voidupdateCrosshairPoint(double x, double y, double transX, double transY, org.jfree.chart.plot.PlotOrientation orientation)Deprecated.voidupdateCrosshairPoint(double x, double y, int domainAxisIndex, int rangeAxisIndex, double transX, double transY, org.jfree.chart.plot.PlotOrientation orientation)voidupdateCrosshairX(double candidateX)Deprecated.voidupdateCrosshairX(double candidateX, int axis)voidupdateCrosshairY(double candidateY)Deprecated.voidupdateCrosshairY(double candidateY, int axis) 
 - 
 
- 
- 
Field Detail
- 
anchorX
protected double anchorX
The x-value (in data space) for the anchor point. 
- 
anchorY
protected double anchorY
The y-value (in data space) for the anchor point. 
- 
anchor
protected java.awt.geom.Point2D anchor
The anchor point in Java2D space - if null, don't update crosshair. 
- 
crosshairX
protected double crosshairX
The x-value for the crosshair point. 
- 
crosshairY
protected double crosshairY
The y-value for the crosshair point. 
- 
distance
protected double distance
The smallest distance so far between the anchor point and a data point. 
 - 
 
- 
Method Detail
- 
setCrosshairDistance
public void setCrosshairDistance(double distance)
- Overrides:
 setCrosshairDistancein classorg.jfree.chart.plot.CrosshairState
 
- 
updateCrosshairPoint
@Deprecated public void updateCrosshairPoint(double x, double y, double transX, double transY, org.jfree.chart.plot.PlotOrientation orientation)Deprecated.- Overrides:
 updateCrosshairPointin classorg.jfree.chart.plot.CrosshairState
 
- 
updateCrosshairPoint
public void updateCrosshairPoint(double x, double y, int domainAxisIndex, int rangeAxisIndex, double transX, double transY, org.jfree.chart.plot.PlotOrientation orientation)- Overrides:
 updateCrosshairPointin classorg.jfree.chart.plot.CrosshairState- Parameters:
 x- the x value of the item being rendered in data spacey- the y value of the item being rendered in data spacetransX- The domain value, in j2d space.transY- The range value in j2d space.
 
- 
updateCrosshairX
@Deprecated public void updateCrosshairX(double candidateX)
Deprecated.- Overrides:
 updateCrosshairXin classorg.jfree.chart.plot.CrosshairState
 
- 
updateCrosshairX
public void updateCrosshairX(double candidateX, int axis)- Overrides:
 updateCrosshairXin classorg.jfree.chart.plot.CrosshairState
 
- 
updateCrosshairY
@Deprecated public void updateCrosshairY(double candidateY)
Deprecated.- Overrides:
 updateCrosshairYin classorg.jfree.chart.plot.CrosshairState
 
- 
updateCrosshairY
public void updateCrosshairY(double candidateY, int axis)- Overrides:
 updateCrosshairYin classorg.jfree.chart.plot.CrosshairState
 
- 
setAnchor
public void setAnchor(java.awt.geom.Point2D anchor)
- Overrides:
 setAnchorin classorg.jfree.chart.plot.CrosshairState
 
- 
getCrosshairX
public double getCrosshairX()
- Overrides:
 getCrosshairXin classorg.jfree.chart.plot.CrosshairState
 
- 
setCrosshairX
public void setCrosshairX(double x)
- Overrides:
 setCrosshairXin classorg.jfree.chart.plot.CrosshairState
 
- 
getCrosshairY
public double getCrosshairY()
- Overrides:
 getCrosshairYin classorg.jfree.chart.plot.CrosshairState
 
- 
setCrosshairY
public void setCrosshairY(double y)
- Overrides:
 setCrosshairYin classorg.jfree.chart.plot.CrosshairState
 
- 
getDistance
public double getDistance()
 
- 
toString
public java.lang.String toString()
- Overrides:
 toStringin classjava.lang.Object
 
 - 
 
 -