public class AutoAnnotateXYPlot.TransparentCrosshairState
extends org.jfree.chart.plot.CrosshairState
Modifier and Type | Field and Description |
---|---|
protected java.awt.geom.Point2D |
anchor
The anchor point in Java2D space - if null, don't update crosshair.
|
protected double |
anchorX
The x-value (in data space) for the anchor point.
|
protected double |
anchorY
The y-value (in data space) for the anchor point.
|
protected double |
crosshairX
The x-value for the crosshair point.
|
protected double |
crosshairY
The y-value for the crosshair point.
|
protected double |
distance
The smallest distance so far between the anchor point and a data point.
|
Constructor and Description |
---|
TransparentCrosshairState() |
Modifier and Type | Method and Description |
---|---|
double |
getCrosshairX() |
double |
getCrosshairY() |
double |
getDistance() |
void |
setAnchor(java.awt.geom.Point2D anchor) |
void |
setCrosshairDistance(double distance) |
void |
setCrosshairX(double x) |
void |
setCrosshairY(double y) |
java.lang.String |
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) |
protected double anchorX
protected double anchorY
protected java.awt.geom.Point2D anchor
protected double crosshairX
protected double crosshairY
protected double distance
public void setCrosshairDistance(double distance)
setCrosshairDistance
in class org.jfree.chart.plot.CrosshairState
@Deprecated public void updateCrosshairPoint(double x, double y, double transX, double transY, org.jfree.chart.plot.PlotOrientation orientation)
updateCrosshairPoint
in class org.jfree.chart.plot.CrosshairState
public void updateCrosshairPoint(double x, double y, int domainAxisIndex, int rangeAxisIndex, double transX, double transY, org.jfree.chart.plot.PlotOrientation orientation)
updateCrosshairPoint
in class org.jfree.chart.plot.CrosshairState
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.@Deprecated public void updateCrosshairX(double candidateX)
updateCrosshairX
in class org.jfree.chart.plot.CrosshairState
public void updateCrosshairX(double candidateX, int axis)
updateCrosshairX
in class org.jfree.chart.plot.CrosshairState
@Deprecated public void updateCrosshairY(double candidateY)
updateCrosshairY
in class org.jfree.chart.plot.CrosshairState
public void updateCrosshairY(double candidateY, int axis)
updateCrosshairY
in class org.jfree.chart.plot.CrosshairState
public void setAnchor(java.awt.geom.Point2D anchor)
setAnchor
in class org.jfree.chart.plot.CrosshairState
public double getCrosshairX()
getCrosshairX
in class org.jfree.chart.plot.CrosshairState
public void setCrosshairX(double x)
setCrosshairX
in class org.jfree.chart.plot.CrosshairState
public double getCrosshairY()
getCrosshairY
in class org.jfree.chart.plot.CrosshairState
public void setCrosshairY(double y)
setCrosshairY
in class org.jfree.chart.plot.CrosshairState
public double getDistance()
public java.lang.String toString()
toString
in class java.lang.Object