Example usage for Java org.jfree.chart.plot CrosshairState fields, constructors, methods, implement or subclass
The text is from its open source code.
CrosshairState() Creates a new CrosshairState instance that calculates distance in Java2D space. |
double | getCrosshairX() Get the x-value for the crosshair point. |
double | getCrosshairY() Get the y-value for the crosshair point. |
void | setAnchor(Point2D anchor) Sets the anchor point. |
void | setCrosshairDistance(double distance) Sets the distance between the anchor point and the current crosshair point. |
void | setCrosshairX(double x) Sets the x coordinate for the crosshair. |
void | setCrosshairY(double y) Sets the y coordinate for the crosshair. |
void | updateCrosshairPoint(double x, double y, double transX, double transY, PlotOrientation orientation) Evaluates a data point and if it is the closest to the anchor point it becomes the new crosshair point. |