Package simtools.shapes.CurveShape

Examples of simtools.shapes.CurveShape.CurvePoint


      msg += "--- Slope : ";
      msg += " x = " +  _magnetizedCurve.shape.getCurrentPoint().slop_x + " ms";
      msg += " y = " + _magnetizedCurve.shape.getCurrentPoint().slop_y;
   
      // Display the delta
        CurvePoint refPoint = _magnetizedCurve.shape.getReferencePoint();
            if (refPoint != null){
                msg += "  ---  Delta from tagged point : ";
                msg += " x = " + (pos_x  - refPoint.x) + " ms";
                msg += ",  y = " + (_magnetizedCurve.shape.getCurrentPoint().y - refPoint.y);
            }
View Full Code Here


    }

    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);
            }
View Full Code Here

TOP

Related Classes of simtools.shapes.CurveShape.CurvePoint

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.