1    
2    import javax.swing.*;
3    import java.awt.event.*;
4    import java.awt.*;
5    import java.util.*;
6    
7    public abstract class PrefCalib extends PrefEditor implements java.io.Serializable {
8    
9      private static final long serialVersionUID = Version.getSUID();
10   
11     transient JTextField afield = null;
12     transient JTextField bfield = null;
13   
14     public double scale = 1.0;
15   
16     public abstract String getText();
17   
18     public abstract String getTitle();
19   
20     public PrefCalib() {
21       name = getTitle();
22     }
23   
24     public void newPane() {
25       pane.setLayout(new GridLayout(3,1));
26   //    pane.add(new JLabel("This page is not yet functional"));
27       JTextArea text = new JTextArea(getText());
28       text.setEditable(false);
29       pane.add(text);
30   //    JPanel mpan = new JPanel();
31   //    pane.setLayout(new GridLayout(2,1));
32       afield = addDouble(scale*100,"measurement A (cm)");
33   //    bfield = addDouble(mpan,scale*100,"measurement B (cm)");
34   //    pane.add(mpan);
35     }
36   
37     public void save() {
38       if (pane==null) return;
39       scale = readDouble(afield)/100;
40   //    scale[1] = readDouble(bfield)/100;
41     }
42   
43   }
44   
45