Java org.jfree.chart.plot CrosshairState fields, constructors, methods, implement or subclass

Example usage for Java org.jfree.chart.plot CrosshairState fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for org.jfree.chart.plot CrosshairState.

The text is from its open source code.

Constructor

CrosshairState()
Creates a new CrosshairState instance that calculates distance in Java2D space.

Method

doublegetCrosshairX()
Get the x-value for the crosshair point.
doublegetCrosshairY()
Get the y-value for the crosshair point.
voidsetAnchor(Point2D anchor)
Sets the anchor point.
voidsetCrosshairDistance(double distance)
Sets the distance between the anchor point and the current crosshair point.
voidsetCrosshairX(double x)
Sets the x coordinate for the crosshair.
voidsetCrosshairY(double y)
Sets the y coordinate for the crosshair.
voidupdateCrosshairPoint(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.