}
public void displayCursorLocation(double x, double y){
String msg = "";
if (_magnetizedCurve!=null){
CurvePoint currentPoint = _magnetizedCurve.shape.getCurrentPoint();
msg += _magnetizedCurve.getLabel() + ": ";
msg += " x = " + currentPoint.x;
msg += ", y = " + currentPoint.y;
msg += " --- Slope : ";
msg += " x = " + currentPoint.slop_x;
msg += ", y = " + currentPoint.slop_y;
CurvePoint refPoint = _magnetizedCurve.shape.getReferencePoint();
if (refPoint != null){
msg += " --- Delta from tagged point : ";
msg += " x = " + (currentPoint.x - refPoint.x);
msg += ", y = " + (currentPoint.y - refPoint.y);
}