Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migration of unmigrated content due to installation of a new plugin

...

  • SLAColors (latest version)
  • SwingUtil (latest version)
  • xypot xyplot (latest version)

Test inside Eclipse

  • Select $ZPLOT_ROOT/src/edu.stanford.slac.util.zplot.example/SimpleExampleApplication
  • Right-click => select Run As... => Java Application
  • Add -Dsun.java2d.pmoffscreen=false to VM arguments, if too slow

Development

Overview

API

  • Best is to look in $ZPLOT_ROOT/src/edu.stanford.slac.util.zplot.example/SimpleExampleApplication for how to use the API

Classes and Functions

Model

...

edu.stanford.slac.util.zplot.model.Beamline
  • Has namzename, start z position, and end z position
  • A list of Beamlines can be drawn as a domain axis
edu.stanford.slac.util.zplot.model.Device

...

edu.stanford.slac.util.zplot.ZPlot
  • Main plot for Devices; includes up to three can include several subplots (e.g. X, Y, and Cartoon)) as well as a beamline cartoon; can draw device labels and beamlines (on the domain axis)
edu.stanford.slac.util.zplot.cartoon.BeamlineCartoon

...

  • Adopts a CartoonWidget as an instance of Icon (needed to draw icons on Devices tab of the PropertiesDialog)
edu.stanford.slac.util.zplot.model.WidgetsRepository

...

Release with Eclipse

  • Add a note in $MPSGUI$ZPLOT_ROOT/RELEASE_NOTES
    • Increment the tag version accordingly
  • Commit to CVS
  • Tag with mpsconfigbeamlineZplot-R#-#-#
  • Check out the tagged version into production
    Code Block
    cd $PHYSICS_TOP/release
    cvs co -r mpsconfigbeamlineZplot-R#-#-# -d mpsconfigbeamlineZplot-R#-#-# physics/mps/mpsconfigbeamlineZplot
    
  • Select File => New Java project => Create project from existing source
  • Select $PHYSICS_TOP/release/mpsconfigbeamlineZplot-R#-#-#
  • Name the project mpsconfigbeamlineZplot-R#-#-#
  • Press "Finish"
  • Right-click on the new project mpsconfigbeamlineZplot-R#-#-# => Export...
  • Select Java => JAR file
  • Check mpsconfigbeamlineZplot-R#-#-# in "Resources to export"
  • Check "Export generated class files and resources"
  • As the export destination, type (and/or select)
    Code Block
    $PHYSICS_TOP/release/mpsconfigbeamlineZplot-R#-#-#/jar/mpsconfigbeamlineZplot.jar
    
  • Press "Finish"
  • Move the symbolic link
    Code Block
    cd $PHYSICS_TOP/
    rm -rf mpsconfigbeamlineZplot; ln -s release/mpsconfigbeamlineZplot-R#-#-# mpsconfig
    
    Launch MPS GUI from lclshome
  • MPS Global => MPS GUI...
  • MPS Global => MPS CUD...
    beamlineZplot