Package xal.extension.widgets.olmplot


package xal.extension.widgets.olmplot

Author: C.K. Allen

Since: Feb 25, 2014

Right now most of the classes are for quick plotting of Online Model simulation data. The data is plotted in an independent window.

Below is an example usage of the classes:

    
        try {
            
            MDL_BEAMLINE.resync();
            MDL_BEAMLINE.run();

            Trajectory           trjSoln = MDL_BEAMLINE.getProbe().getTrajectory();
            TrajectoryGraph      grpSoln = TrajectoryGraph.createEnvelopeGraph(trjSoln);
            GraphFrame           frmSoln = new GraphFrame(strTitle + "Q=" + this.dblBmChg + " res err="+dblErrRes + ", conv err=" + dblErrCnv, grpSoln);

            for (PLANE plane : PLANE.values()) {
                MeasurementCurve    crvMsmt = new MeasurementCurve(plane, SEQ_ACCL_TEST, arrData);
                
                grpSoln.addGraphData(plane, crvMsmt);
            }
            grpSoln.setLegendVisible(true);
            grpSoln.setPreferredSize(DIM_GRAPH_SOLN);
            frmSoln.display();
            
        } catch (SynchronizationException e) {
            e.printStackTrace();
            this.errorMsg("Unable to synchronize model");
            
        } catch (ModelException e) {
            e.printStackTrace();
            this.errorMsg("Unable to run model");
            
        }
    
        

  • Class
    Description
    Graphics object representing a curve in a {
    Enclosing Swing frame.
    Graphics object representing a curve in a {
    Enumeration of all the phase planes for the simulation.
    Represents a graph of an online model simulation solution.