EScope4: Adding Zoom and Grab Options Using the Decorator Pattern

This refactoring step marks a milestone inthe development of EScope. From now, the preparatory work in refactoring carried out in the previous EScope versions, starts producing its effects.  This version, in fact, provides a much more sophisticated interaction with the displayed waveform. When a waveform is displayed, it is possible now to:

A double click restores the default confition, i.e. the whole waveform matted into the display window.

This application defines three panels. At the left side, when a database is open, the hierarchical structure is displayed and it is possible to navigate in the tree. When a node containing a valid signal is clicked, the corresponding waveform is displayed in the central panel.

The File Menu Bar option allows to:

The Graph Menu Bar option activates a pop-up panel which allows to


The changes are applied when either Ok or Apply button is pressed.

 

To exercise this program the following steps are required:

  1. If not already running, start a MDSplus data server. On windows, click on start->programs->MDSplus->MDSDataserver. On Linux, run script start_mdsip.
  2. Change directory in  <source root>/escopes/escope4, where <source root> is the directory where you copied the source directory in the CD.
  3. Include the current directory in your CLASSPATH environmante variable. On Windows this can be done by changing the CLASSPATH definition in Control Panel/System setting, or by the command
        set CLASSPATH=.;%CLASSPATH%
    On Linux (bash shell) this can be done by the command
       export CLASSPATH=.:$CLASSPATH
  4. Compile  the java source files with the command
        javac *.java
  5. Run the program with no arguments.
        java EScope4

When the edam database is open, valid signals are listed in the SIGNALS.PB subtree.

View Source