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 Summary
FieldsModifier 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 Summary
Constructors -
Method Summary
Modifier 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.CrosshairState
getAnchor, getAnchorX, getAnchorY, getCrosshairDistance, getDatasetIndex, getDomainAxisIndex, getRangeAxisIndex, setAnchorX, setAnchorY, setDatasetIndex
-
Field Details
-
anchorX
protected double anchorXThe x-value (in data space) for the anchor point. -
anchorY
protected double anchorYThe y-value (in data space) for the anchor point. -
anchor
The anchor point in Java2D space - if null, don't update crosshair. -
crosshairX
protected double crosshairXThe x-value for the crosshair point. -
crosshairY
protected double crosshairYThe y-value for the crosshair point. -
distance
protected double distanceThe smallest distance so far between the anchor point and a data point.
-
-
Constructor Details
-
TransparentCrosshairState
public TransparentCrosshairState()
-
-
Method Details
-
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.- Overrides:
updateCrosshairXin classorg.jfree.chart.plot.CrosshairState
-
updateCrosshairX
public void updateCrosshairX(double candidateX, int axis) - Overrides:
updateCrosshairXin classorg.jfree.chart.plot.CrosshairState
-
updateCrosshairY
Deprecated.- Overrides:
updateCrosshairYin classorg.jfree.chart.plot.CrosshairState
-
updateCrosshairY
public void updateCrosshairY(double candidateY, int axis) - Overrides:
updateCrosshairYin classorg.jfree.chart.plot.CrosshairState
-
setAnchor
- 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
-