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.CrosshairState
This 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 SummaryFieldsModifier and TypeFieldDescriptionprotected Point2DThe anchor point in Java2D space - if null, don't update crosshair.protected doubleThe x-value (in data space) for the anchor point.protected doubleThe y-value (in data space) for the anchor point.protected doubleThe x-value for the crosshair point.protected doubleThe y-value for the crosshair point.protected doubleThe smallest distance so far between the anchor point and a data point.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptiondoubledoubledoublevoidvoidsetCrosshairDistance(double distance) voidsetCrosshairX(double x) voidsetCrosshairY(double y) toString()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) Methods inherited from class org.jfree.chart.plot.CrosshairStategetAnchor, getAnchorX, getAnchorY, getCrosshairDistance, getDatasetIndex, getDomainAxisIndex, getRangeAxisIndex, setAnchorX, setAnchorY, setDatasetIndex
- 
Field Details- 
anchorXprotected double anchorXThe x-value (in data space) for the anchor point.
- 
anchorYprotected double anchorYThe y-value (in data space) for the anchor point.
- 
anchorThe anchor point in Java2D space - if null, don't update crosshair.
- 
crosshairXprotected double crosshairXThe x-value for the crosshair point.
- 
crosshairYprotected double crosshairYThe y-value for the crosshair point.
- 
distanceprotected double distanceThe smallest distance so far between the anchor point and a data point.
 
- 
- 
Constructor Details- 
TransparentCrosshairStatepublic TransparentCrosshairState()
 
- 
- 
Method Details- 
setCrosshairDistancepublic void setCrosshairDistance(double distance) - Overrides:
- setCrosshairDistancein class- org.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 class- org.jfree.chart.plot.CrosshairState
 
- 
updateCrosshairPointpublic void updateCrosshairPoint(double x, double y, int domainAxisIndex, int rangeAxisIndex, double transX, double transY, org.jfree.chart.plot.PlotOrientation orientation) - Overrides:
- updateCrosshairPointin class- org.jfree.chart.plot.CrosshairState
- Parameters:
- x- the x value of the item being rendered in data space
- y- the y value of the item being rendered in data space
- transX- The domain value, in j2d space.
- transY- The range value in j2d space.
 
- 
updateCrosshairXDeprecated.- Overrides:
- updateCrosshairXin class- org.jfree.chart.plot.CrosshairState
 
- 
updateCrosshairXpublic void updateCrosshairX(double candidateX, int axis) - Overrides:
- updateCrosshairXin class- org.jfree.chart.plot.CrosshairState
 
- 
updateCrosshairYDeprecated.- Overrides:
- updateCrosshairYin class- org.jfree.chart.plot.CrosshairState
 
- 
updateCrosshairYpublic void updateCrosshairY(double candidateY, int axis) - Overrides:
- updateCrosshairYin class- org.jfree.chart.plot.CrosshairState
 
- 
setAnchor- Overrides:
- setAnchorin class- org.jfree.chart.plot.CrosshairState
 
- 
getCrosshairXpublic double getCrosshairX()- Overrides:
- getCrosshairXin class- org.jfree.chart.plot.CrosshairState
 
- 
setCrosshairXpublic void setCrosshairX(double x) - Overrides:
- setCrosshairXin class- org.jfree.chart.plot.CrosshairState
 
- 
getCrosshairYpublic double getCrosshairY()- Overrides:
- getCrosshairYin class- org.jfree.chart.plot.CrosshairState
 
- 
setCrosshairYpublic void setCrosshairY(double y) - Overrides:
- setCrosshairYin class- org.jfree.chart.plot.CrosshairState
 
- 
getDistancepublic double getDistance()
- 
toString
 
-