Class AutoAnnotateXYPlot.MultiCrosshairState
java.lang.Object
org.jfree.chart.plot.CrosshairState
com.inductiveautomation.factorypmi.application.components.chart.runtime.AutoAnnotateXYPlot.TransparentCrosshairState
com.inductiveautomation.factorypmi.application.components.chart.runtime.AutoAnnotateXYPlot.MultiCrosshairState
- Enclosing class:
- AutoAnnotateXYPlot
public class AutoAnnotateXYPlot.MultiCrosshairState
extends AutoAnnotateXYPlot.TransparentCrosshairState
This CrosshairState subclass maintains an array of crosshair states for supporting crosshairs across multiple
series
-
Field Summary
Fields inherited from class com.inductiveautomation.factorypmi.application.components.chart.runtime.AutoAnnotateXYPlot.TransparentCrosshairState
anchor, anchorX, anchorY, crosshairX, crosshairY, distance
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
double
getCrosshairX
(int i) double
getCrosshairY
(int i) double
getDistance
(int i) boolean
void
void
setCrosshairDistance
(double distance) void
setCrosshairX
(double x) void
setCrosshairY
(double y) protected void
setSeries
(int series) toString()
void
updateCrosshairPoint
(double x, double y, double transX, double transY, org.jfree.chart.plot.PlotOrientation orientation) Deprecated.void
updateCrosshairPoint
(double x, double y, int domainAxisIndex, int rangeAxisIndex, double transX, double transY, org.jfree.chart.plot.PlotOrientation orientation) void
updateCrosshairX
(double candidateX) Deprecated.void
updateCrosshairX
(double candidateX, int axis) void
updateCrosshairY
(double candidateY) Deprecated.void
updateCrosshairY
(double candidateY, int axis) Methods inherited from class com.inductiveautomation.factorypmi.application.components.chart.runtime.AutoAnnotateXYPlot.TransparentCrosshairState
getCrosshairX, getCrosshairY, getDistance
Methods inherited from class org.jfree.chart.plot.CrosshairState
getAnchor, getAnchorX, getAnchorY, getCrosshairDistance, getDatasetIndex, getDomainAxisIndex, getRangeAxisIndex, setAnchorX, setAnchorY, setDatasetIndex
-
Constructor Details
-
MultiCrosshairState
public MultiCrosshairState(int series)
-
-
Method Details
-
multiEnabled
public boolean multiEnabled() -
getCrosshairX
public double getCrosshairX(int i) -
getCrosshairY
public double getCrosshairY(int i) -
getDistance
public double getDistance(int i) -
getBestCrosshairSeries
public int getBestCrosshairSeries() -
setAnchor
- Overrides:
setAnchor
in classAutoAnnotateXYPlot.TransparentCrosshairState
-
setCrosshairDistance
public void setCrosshairDistance(double distance) - Overrides:
setCrosshairDistance
in classAutoAnnotateXYPlot.TransparentCrosshairState
-
updateCrosshairPoint
@Deprecated public void updateCrosshairPoint(double x, double y, double transX, double transY, org.jfree.chart.plot.PlotOrientation orientation) Deprecated.- Overrides:
updateCrosshairPoint
in classAutoAnnotateXYPlot.TransparentCrosshairState
-
updateCrosshairPoint
public void updateCrosshairPoint(double x, double y, int domainAxisIndex, int rangeAxisIndex, double transX, double transY, org.jfree.chart.plot.PlotOrientation orientation) - Overrides:
updateCrosshairPoint
in classAutoAnnotateXYPlot.TransparentCrosshairState
- 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:
updateCrosshairX
in classAutoAnnotateXYPlot.TransparentCrosshairState
-
updateCrosshairX
public void updateCrosshairX(double candidateX, int axis) - Overrides:
updateCrosshairX
in classAutoAnnotateXYPlot.TransparentCrosshairState
-
updateCrosshairY
Deprecated.- Overrides:
updateCrosshairY
in classAutoAnnotateXYPlot.TransparentCrosshairState
-
updateCrosshairY
public void updateCrosshairY(double candidateY, int axis) - Overrides:
updateCrosshairY
in classAutoAnnotateXYPlot.TransparentCrosshairState
-
setCrosshairX
public void setCrosshairX(double x) - Overrides:
setCrosshairX
in classAutoAnnotateXYPlot.TransparentCrosshairState
-
setCrosshairY
public void setCrosshairY(double y) - Overrides:
setCrosshairY
in classAutoAnnotateXYPlot.TransparentCrosshairState
-
setSeries
protected void setSeries(int series) -
toString
- Overrides:
toString
in classAutoAnnotateXYPlot.TransparentCrosshairState
-