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.CrosshairStatepublic 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.CrosshairStatex - 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.CrosshairStatepublic 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.CrosshairStatepublic void updateCrosshairY(double candidateY,
int axis)
updateCrosshairY in class org.jfree.chart.plot.CrosshairStatepublic void setAnchor(java.awt.geom.Point2D anchor)
setAnchor in class org.jfree.chart.plot.CrosshairStatepublic double getCrosshairX()
getCrosshairX in class org.jfree.chart.plot.CrosshairStatepublic void setCrosshairX(double x)
setCrosshairX in class org.jfree.chart.plot.CrosshairStatepublic double getCrosshairY()
getCrosshairY in class org.jfree.chart.plot.CrosshairStatepublic void setCrosshairY(double y)
setCrosshairY in class org.jfree.chart.plot.CrosshairStatepublic double getDistance()
public java.lang.String toString()
toString in class java.lang.Object