Main Page | Packages | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

SquidFront.java

Go to the documentation of this file.
00001 /*
00002  * SquidFront.java
00003  *
00004  * Copyright (C) 2005 Project SQUID, http://www.cs.helsinki.fi/group/squid/
00005  *
00006  * This file is part of Ikayaki.
00007  *
00008  * Ikayaki is free software; you can redistribute it and/or modify
00009  * it under the terms of the GNU General Public License as published by
00010  * the Free Software Foundation; either version 2 of the License, or
00011  * (at your option) any later version.
00012  *
00013  * Ikayaki is distributed in the hope that it will be useful,
00014  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00015  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
00016  * GNU General Public License for more details.
00017  *
00018  * You should have received a copy of the GNU General Public License
00019  * along with Ikayaki; if not, write to the Free Software
00020  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
00021  */
00022 
00023 package ikayaki.squid;
00024 
00025 import com.intellij.uiDesigner.core.GridConstraints;
00026 import com.intellij.uiDesigner.core.GridLayoutManager;
00027 import com.intellij.uiDesigner.core.Spacer;
00028 import com.jgoodies.looks.plastic.Plastic3DLookAndFeel;
00029 import com.jgoodies.looks.plastic.PlasticLookAndFeel;
00030 import com.jgoodies.looks.plastic.theme.SkyBlue;
00031 
00032 import javax.swing.*;
00033 import java.awt.*;
00034 import java.awt.event.ActionEvent;
00035 import java.awt.event.ActionListener;
00036 import java.io.IOException;
00037 
00044 public class SquidFront extends JFrame {
00045 
00046     private JButton hupdateSettings;
00047     private JButton hgetStatus;
00048     private JButton hgetPosition;
00049     private JButton hgetRotation;
00050     private JButton hisOK;
00051     private JButton hmoveToHome;
00052     private JButton hmoveToDegausserZ;
00053     private JButton hmoveToDegausserY;
00054     private JButton hmoveToMeasurement;
00055     private JButton hmoveToBackground;
00056     private JButton hmoveToPos;
00057     private JButton hstop;
00058     private JButton hrotateTo;
00059     private JButton hsetOnline;
00060     private JButton hsetAcceleration;
00061     private JButton hsetDeceleration;
00062     private JButton hsetBaseSpeed;
00063     private JButton hsetVelocity;
00064     private JButton hsetHoldTime;
00065     private JButton hsetCrystalFrequence;
00066     private JButton hstopExecution;
00067     private JButton hperformSlew;
00068     private JButton hsetMotorPositive;
00069     private JButton hsetMotorNegative;
00070     private JButton hsetSteps;
00071     private JButton hsetPosition;
00072     private JButton hgo;
00073     private JButton hjoin;
00074     private JButton hverify;
00075     private JButton hsetPositionRegister;
00076     private JButton htakeMessage;
00077 
00078     private JButton mupdateSettings;
00079     private JButton mreset;
00080     private JButton mresetCounter;
00081     private JButton mconfigure;
00082     private JButton mlatchAnalog;
00083     private JButton mlatchCounter;
00084     private JButton mgetData;
00085     private JButton mopenLoop;
00086     private JButton mclearFlux;
00087     private JButton mjoin;
00088     private JButton mreadData;
00089     private JButton mgetFilters;
00090     private JButton mgetRange;
00091     private JButton mgetSlew;
00092     private JButton mgetLoop;
00093     private JButton misOK;
00094 
00095     private JButton dupdateSettings;
00096     private JButton dsetCoil;
00097     private JButton dsetAmplitude;
00098     private JButton dexecuteRampUp;
00099     private JButton dexecuteRampDown;
00100     private JButton dexecuteRampCycle;
00101     private JButton ddemagnetizeZ;
00102     private JButton ddemagnetizeY;
00103     private JButton dgetRampStatus;
00104     private JButton dgetRamp;
00105     private JButton dgetDelay;
00106     private JButton dgetCoil;
00107     private JButton dgetAmplitude;
00108     private JButton disOK;
00109 
00110     private JTextField param1;
00111     private JTextField param2;
00112     private JTextField param3;
00113 
00114     private JTextArea handlerLog;
00115     private JTextArea magnetometerLog;
00116     private JTextArea degausserLog;
00117 
00118     private JPanel contentPane;
00119 
00120     private Squid squid;
00121 
00122     private JTextField hRawCommand;
00123     private JButton hRawSend;
00124     private JTextField dRawCommand;
00125     private JButton dRawSend;
00126     private JTextField mRawCommand;
00127     private JButton mRawSend;
00128 
00129     public SquidFront() throws HeadlessException {
00130         super("SQUID Front");
00131 
00132         /* Init SQUID interface */
00133         new Thread() {
00134             @Override public void run() {
00135                 try {
00136                     final Squid squid = Squid.instance();       // might take a long time
00137                     if (!squid.isOK()) {
00138                         JOptionPane.showMessageDialog(null,
00139                                 "SQUID is not OK!", "Squid error", JOptionPane.ERROR_MESSAGE);
00140                         return;
00141                     }
00142                     SwingUtilities.invokeLater(new Runnable() {
00143                         public void run() {
00144                             setSquid(squid);
00145                         }
00146                     });
00147 
00148                 } catch (IOException e) {
00149                     // TODO: what should be done now? give error message?
00150                     //e.printStackTrace();
00151                     System.err.println("Unable to initialize the SQUID interface.");
00152                 }
00153             }
00154         }.start();
00155 
00156         initRawActions();
00157         initHandlerActions();
00158         initMagnetometerActions();
00159         initDegausserActions();
00160         initLogging();
00161 
00162         setLayout(new BorderLayout());
00163         setContentPane(contentPane);
00164         setLocationByPlatform(true);
00165         setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
00166         pack();
00167         setVisible(true);
00168     }
00169 
00178     public void setSquid(Squid squid) {
00179         if (squid == null) {
00180             throw new NullPointerException();
00181         }
00182         if (this.squid != null) {
00183             throw new IllegalStateException();
00184         }
00185         this.squid = squid;
00186     }
00187 
00188     private void initRawActions() {
00189         hRawSend.addActionListener(new ActionListener() {
00190             public void actionPerformed(ActionEvent e) {
00191                 String command = hRawCommand.getText().trim().toUpperCase();
00192                 try {
00193                     squid.getHandler().serialIO.writeMessage(command);
00194                 } catch (SerialIOException e1) {
00195                     e1.printStackTrace();
00196                 }
00197             }
00198         });
00199         mRawSend.addActionListener(new ActionListener() {
00200             public void actionPerformed(ActionEvent e) {
00201                 String command = mRawCommand.getText().trim().toUpperCase();
00202                 try {
00203                     squid.getMagnetometer().serialIO.writeMessage(command + "\r");
00204                 } catch (SerialIOException e1) {
00205                     e1.printStackTrace();
00206                 }
00207             }
00208         });
00209         dRawSend.addActionListener(new ActionListener() {
00210             public void actionPerformed(ActionEvent e) {
00211                 String command = dRawCommand.getText().trim().toUpperCase();
00212                 try {
00213                     squid.getDegausser().serialIO.writeMessage(command + "\r");
00214                 } catch (SerialIOException e1) {
00215                     e1.printStackTrace();
00216                 }
00217             }
00218         });
00219     }
00220 
00221 
00225     private void initHandlerActions() {
00226         this.hmoveToHome.setAction(new AbstractAction() {
00227             public void actionPerformed(ActionEvent e) {
00228                 try {
00229                     Squid.instance().getHandler().moveToSampleLoad();
00230                 } catch (IOException ex) {
00231                     handlerLog.append("MoveToHome failed\r");
00232                 }
00233             }
00234         });
00235         this.hmoveToHome.getAction().putValue(Action.NAME, "MoveToHome()");
00236 
00237         this.hmoveToDegausserZ.setAction(new AbstractAction() {
00238             public void actionPerformed(ActionEvent e) {
00239                 try {
00240                     Squid.instance().getHandler().moveToDegausserZ();
00241                 } catch (IOException ex) {
00242                     handlerLog.append("MoveToDegausserZ failed\r");
00243                 }
00244             }
00245         });
00246         this.hmoveToDegausserZ.getAction().putValue(Action.NAME, "MoveToDegausserZ()");
00247 
00248         this.hmoveToDegausserY.setAction(new AbstractAction() {
00249             public void actionPerformed(ActionEvent e) {
00250                 try {
00251                     Squid.instance().getHandler().moveToDegausserY();
00252                 } catch (IOException ex) {
00253                     handlerLog.append("MoveToDegausserY failed\r");
00254                 }
00255             }
00256         });
00257         this.hmoveToDegausserY.getAction().putValue(Action.NAME, "MoveToDegausserY()");
00258 
00259         this.hmoveToBackground.setAction(new AbstractAction() {
00260             public void actionPerformed(ActionEvent e) {
00261                 try {
00262                     Squid.instance().getHandler().moveToBackground();
00263                 } catch (IOException ex) {
00264                     handlerLog.append("MoveToBackground failed\r");
00265                 }
00266             }
00267         });
00268         this.hmoveToBackground.getAction().putValue(Action.NAME, "MoveToBackground()");
00269 
00270         this.hmoveToMeasurement.setAction(new AbstractAction() {
00271             public void actionPerformed(ActionEvent e) {
00272                 try {
00273                     Squid.instance().getHandler().moveToMeasurement();
00274                 } catch (IOException ex) {
00275                     handlerLog.append("MoveToMeasurement failed\r");
00276                 }
00277             }
00278         });
00279         this.hmoveToMeasurement.getAction().putValue(Action.NAME, "MoveToMeasurement()");
00280 
00281         this.hmoveToPos.setAction(new AbstractAction() {
00282             public void actionPerformed(ActionEvent e) {
00283 //          try {
00284 //            handlerLog.append(Squid.instance().getHandler().moveToPos(Integer.parseInt(param1.getText()))+ "\r");
00285 //          }
00286 //          catch (IOException ex) {
00287 //            handlerLog.append("MoveToPos failed\r");
00288 //          }
00289             }
00290         });
00291         this.hmoveToPos.getAction().putValue(Action.NAME, "MoveToPos(int)");
00292 
00293         this.hrotateTo.setAction(new AbstractAction() {
00294             public void actionPerformed(ActionEvent e) {
00295                 try {
00296                     Squid.instance().getHandler().rotateTo(Integer.parseInt(param1.getText()));
00297                 } catch (IOException ex) {
00298                     handlerLog.append("rotateTo failed\r");
00299                 }
00300             }
00301         });
00302         this.hrotateTo.getAction().putValue(Action.NAME, "rotateTo(int)");
00303 
00304         this.hsetAcceleration.setAction(new AbstractAction() {
00305             public void actionPerformed(ActionEvent e) {
00306                 try {
00307                     Squid.instance().getHandler().setAcceleration(Integer.parseInt(param1.getText()));
00308                 } catch (IOException ex) {
00309                     handlerLog.append("setAcceleration failed\r");
00310                 } catch (SerialIOException e1) {
00311                     e1.printStackTrace();
00312                 }
00313             }
00314         });
00315         this.hsetAcceleration.getAction().putValue(Action.NAME, "setAcceleration(int)");
00316 
00317         this.hsetDeceleration.setAction(new AbstractAction() {
00318             public void actionPerformed(ActionEvent e) {
00319                 try {
00320                     Squid.instance().getHandler().setDeceleration(Integer.parseInt(param1.getText()));
00321                 } catch (IOException ex) {
00322                     handlerLog.append("setDeceleration failed\r");
00323                 } catch (SerialIOException e1) {
00324                     e1.printStackTrace();
00325                 }
00326             }
00327         });
00328         this.hsetDeceleration.getAction().putValue(Action.NAME, "setDeceleration(int)");
00329 
00330         this.hsetVelocity.setAction(new AbstractAction() {
00331             public void actionPerformed(ActionEvent e) {
00332                 try {
00333                     Squid.instance().getHandler().setVelocity(Integer.parseInt(param1.getText()));
00334                 } catch (IOException ex) {
00335                     handlerLog.append("setVelocity failed\r");
00336                 } catch (SerialIOException e1) {
00337                     e1.printStackTrace();
00338                 }
00339             }
00340         });
00341         this.hsetVelocity.getAction().putValue(Action.NAME, "setVelocity(int)");
00342 
00343         this.hsetOnline.setAction(new AbstractAction() {
00344             public void actionPerformed(ActionEvent e) {
00345                 try {
00346                     Squid.instance().getHandler().setOnline();
00347                 } catch (IOException ex) {
00348                     handlerLog.append("setOnline failed\r");
00349                 } catch (SerialIOException e1) {
00350                     e1.printStackTrace();
00351                 }
00352             }
00353         });
00354         this.hsetOnline.getAction().putValue(Action.NAME, "setOnline()");
00355 
00356         this.hjoin.setAction(new AbstractAction() {
00357             public void actionPerformed(ActionEvent e) {
00358                 try {
00359                     Squid.instance().getHandler().join();
00360                 } catch (IOException ex) {
00361                     handlerLog.append("join failed\r");
00362                 } catch (InterruptedException e1) {
00363                     handlerLog.append("join failed\r");
00364                 }
00365             }
00366         });
00367         this.hjoin.getAction().putValue(Action.NAME, "join()");
00368 
00369         this.hverify.setAction(new AbstractAction() {
00370             public void actionPerformed(ActionEvent e) {
00371                 try {
00372                     Squid.instance().getHandler().verify(param1.getText().charAt(0));
00373                 } catch (IOException ex) {
00374                     handlerLog.append("verify failed\r");
00375                 } catch (SerialIOException e1) {
00376                     e1.printStackTrace();
00377                 }
00378             }
00379         });
00380         this.hverify.getAction().putValue(Action.NAME, "verify(char)");
00381 
00382         this.hstop.setAction(new AbstractAction() {
00383             public void actionPerformed(ActionEvent e) {
00384 //          try {
00385 //            Squid.instance().getHandler().stop();
00386 //          }
00387 //          catch (IOException ex) {
00388 //            handlerLog.append("stop failed\r");
00389 //          }
00390             }
00391         });
00392         this.hstop.getAction().putValue(Action.NAME, "stop()");
00393 
00394         this.hsetMotorNegative.setAction(new AbstractAction() {
00395             public void actionPerformed(ActionEvent e) {
00396                 try {
00397                     Squid.instance().getHandler().setMotorNegative();
00398                 } catch (IOException ex) {
00399                     handlerLog.append("setMotorNegative failed\r");
00400                 } catch (SerialIOException e1) {
00401                     e1.printStackTrace();
00402                 }
00403             }
00404         });
00405         this.hsetMotorNegative.getAction().putValue(Action.NAME, "setMotorNegative()");
00406 
00407         this.hsetMotorPositive.setAction(new AbstractAction() {
00408             public void actionPerformed(ActionEvent e) {
00409                 try {
00410                     Squid.instance().getHandler().setMotorPositive();
00411                 } catch (IOException ex) {
00412                     handlerLog.append("setMotorPositive failed\r");
00413                 } catch (SerialIOException e1) {
00414                     e1.printStackTrace();
00415                 }
00416             }
00417         });
00418         this.hsetMotorPositive.getAction().putValue(Action.NAME, "setMotorPositive()");
00419 
00420         this.hsetSteps.setAction(new AbstractAction() {
00421             public void actionPerformed(ActionEvent e) {
00422 //          try {
00423 //            Squid.instance().getHandler().setSteps(Integer.parseInt(param1.getText()));
00424 //          }
00425 //          catch (IOException ex) {
00426 //            handlerLog.append("setSteps failed\r");
00427 //          }
00428             }
00429         });
00430         this.hsetSteps.getAction().putValue(Action.NAME, "setSteps(int steps)");
00431 
00432         this.hmoveToPos.setAction(new AbstractAction() {
00433             public void actionPerformed(ActionEvent e) {
00434 //          try {
00435 //            Squid.instance().getHandler().moveToPos(Integer.parseInt(param1.getText()));
00436 //          }
00437 //          catch (IOException ex) {
00438 //            handlerLog.append("MoveToPos failed\r");
00439 //          }
00440             }
00441         });
00442         this.hmoveToPos.getAction().putValue(Action.NAME, "moveToPos(int position)");
00443 
00444         this.hgetPosition.setAction(new AbstractAction() {
00445             public void actionPerformed(ActionEvent e) {
00446                 try {
00447                     handlerLog.append(Squid.instance().getHandler().getPosition() + "\r");
00448                 } catch (IOException ex) {
00449                     handlerLog.append("getPosition failed\r");
00450                 }
00451             }
00452         });
00453         this.hgetPosition.getAction().putValue(Action.NAME, "getPosition()");
00454 
00455         this.hgetRotation.setVisible(false);
00456         this.hgetStatus.setVisible(false);
00457         this.hisOK.setVisible(false);
00458         this.hperformSlew.setVisible(false);
00459         this.hsetBaseSpeed.setVisible(false);
00460         this.hsetCrystalFrequence.setVisible(false);
00461         this.hsetHoldTime.setVisible(false);
00462         this.hsetPosition.setVisible(false);
00463         this.hsetPositionRegister.setVisible(false);
00464         this.hstopExecution.setVisible(false);
00465         this.htakeMessage.setVisible(false);
00466         this.hupdateSettings.setVisible(false);
00467 
00468     }
00469 
00473     private void initMagnetometerActions() {
00474         this.mclearFlux.setAction(new AbstractAction() {
00475             public void actionPerformed(ActionEvent e) {
00476                 try {
00477                     Squid.instance().getMagnetometer().clearFlux(param1.getText().charAt(0));
00478                 } catch (IOException ex) {
00479                     magnetometerLog.append("clearFlux failed\r");
00480                 }
00481             }
00482         });
00483         this.mclearFlux.getAction().putValue(Action.NAME, "clearFlux(char)");
00484 
00485         this.mconfigure.setAction(new AbstractAction() {
00486             public void actionPerformed(ActionEvent e) {
00487                 try {
00488                     Squid.instance().getMagnetometer().configure(param1.getText().charAt(0),
00489                             param2.getText().charAt(0), param3.getText().charAt(0));
00490                 } catch (IOException ex) {
00491                     magnetometerLog.append("configure failed\r");
00492                 }
00493             }
00494         });
00495         this.mconfigure.getAction().putValue(Action.NAME, "configure(char,char,char)");
00496 
00497         this.mgetData.setAction(new AbstractAction() {
00498             public void actionPerformed(ActionEvent e) {
00499                 try {
00500                     magnetometerLog.append(Squid.instance().getMagnetometer().getData(param1.getText().charAt(0),
00501                             param2.getText().charAt(0), param3.getText()) + "\r");
00502                 } catch (IOException ex) {
00503                     magnetometerLog.append("getDAta failed\r");
00504                 }
00505             }
00506         });
00507         this.mgetData.getAction().putValue(Action.NAME, "getData(char,char,String)");
00508 
00509         this.mgetLoop.setAction(new AbstractAction() {
00510             public void actionPerformed(ActionEvent e) {
00511                 try {
00512                     magnetometerLog.append(Squid.instance().getMagnetometer().getLoop() + "\r");
00513                 } catch (IOException ex) {
00514                     magnetometerLog.append("getLoop failed\r");
00515                 }
00516             }
00517         });
00518         this.mgetLoop.getAction().putValue(Action.NAME, "getLoop)");
00519 
00520         this.mgetRange.setAction(new AbstractAction() {
00521             public void actionPerformed(ActionEvent e) {
00522                 try {
00523                     magnetometerLog.append(Squid.instance().getMagnetometer().getRange() + "\r");
00524                 } catch (IOException ex) {
00525                     magnetometerLog.append("getRange failed\r");
00526                 }
00527             }
00528         });
00529         this.mgetRange.getAction().putValue(Action.NAME, "getRange)");
00530 
00531         this.mgetSlew.setAction(new AbstractAction() {
00532             public void actionPerformed(ActionEvent e) {
00533                 try {
00534                     magnetometerLog.append(Squid.instance().getMagnetometer().getSlew() + "\r");
00535                 } catch (IOException ex) {
00536                     magnetometerLog.append("getSlew failed\r");
00537                 }
00538             }
00539         });
00540         this.mgetSlew.getAction().putValue(Action.NAME, "getSlew()");
00541 
00542         this.misOK.setAction(new AbstractAction() {
00543             public void actionPerformed(ActionEvent e) {
00544                 try {
00545                     magnetometerLog.append(Squid.instance().getMagnetometer().isOK() + "\r");
00546                 } catch (IOException ex) {
00547                     magnetometerLog.append("isOK failed\r");
00548                 }
00549             }
00550         });
00551         this.misOK.getAction().putValue(Action.NAME, "isOK()");
00552 
00553 //    this.mjoin.setAction(new AbstractAction() {
00554 //      public void actionPerformed(ActionEvent e) {
00555 //        try {
00556 //          Squid.instance().getMagnetometer().waitToSettleDown();
00557 //        }
00558 //        catch (IOException ex) {
00559 //          magnetometerLog.append("join failed\r");
00560 //        }
00561 //      }
00562 //    });
00563 //    this.mjoin.getAction().putValue(Action.NAME, "join()");
00564 
00565         this.mlatchAnalog.setAction(new AbstractAction() {
00566             public void actionPerformed(ActionEvent e) {
00567                 try {
00568                     Squid.instance().getMagnetometer().latchAnalog(param1.getText().charAt(0));
00569                 } catch (IOException ex) {
00570                     magnetometerLog.append("latchAnalog failed\r");
00571                 }
00572             }
00573         });
00574         this.mlatchAnalog.getAction().putValue(Action.NAME, "latchAnalog(char axis)");
00575 
00576         this.mlatchCounter.setAction(new AbstractAction() {
00577             public void actionPerformed(ActionEvent e) {
00578                 try {
00579                     Squid.instance().getMagnetometer().latchCounter(param1.getText().charAt(0));
00580                 } catch (IOException ex) {
00581                     magnetometerLog.append("latchCounter failed\r");
00582                 }
00583             }
00584         });
00585         this.mlatchCounter.getAction().putValue(Action.NAME, "latchCounter(char axis)");
00586 
00587         this.mopenLoop.setAction(new AbstractAction() {
00588             public void actionPerformed(ActionEvent e) {
00589                 try {
00590                     Squid.instance().getMagnetometer().pulseReset(param1.getText().charAt(0));
00591                 } catch (IOException ex) {
00592                     magnetometerLog.append("pulseReset failed\r");
00593                 }
00594             }
00595         });
00596         this.mopenLoop.getAction().putValue(Action.NAME, "pulseReset(char axis)");
00597 
00598         this.mreadData.setAction(new AbstractAction() {
00599             public void actionPerformed(ActionEvent e) {
00600                 try {
00601                     double[] result = Squid.instance().getMagnetometer().readData();
00602                     magnetometerLog.append("{" + result[0] + "," + result[1] + "," + result[2] + "}\r");
00603 
00604                 } catch (IOException ex) {
00605                     magnetometerLog.append("pulseReset failed\r");
00606                 }
00607             }
00608         });
00609         this.mreadData.getAction().putValue(Action.NAME, "readData()");
00610 
00611         this.mgetFilters.setVisible(false);
00612 
00613         this.mreset.setAction(new AbstractAction() {
00614             public void actionPerformed(ActionEvent e) {
00615                 try {
00616                     Squid.instance().getMagnetometer().reset(param1.getText().charAt(0));
00617                 } catch (IOException ex) {
00618                     magnetometerLog.append("reset failed\r");
00619                 }
00620             }
00621         });
00622         this.mreset.getAction().putValue(Action.NAME, "reset(char axis)");
00623 
00624         this.mresetCounter.setAction(new AbstractAction() {
00625             public void actionPerformed(ActionEvent e) {
00626                 try {
00627                     Squid.instance().getMagnetometer().resetCounter(param1.getText().charAt(0));
00628                 } catch (IOException ex) {
00629                     magnetometerLog.append("resetCounter failed\r");
00630                 }
00631             }
00632         });
00633         this.mresetCounter.getAction().putValue(Action.NAME, "resetCounter(char axis)");
00634 
00635         this.mupdateSettings.setAction(new AbstractAction() {
00636             public void actionPerformed(ActionEvent e) {
00637                 try {
00638                     Squid.instance().getMagnetometer().updateSettings();
00639                 } catch (IOException ex) {
00640                     magnetometerLog.append("updateSettings failed\r");
00641                 }
00642             }
00643         });
00644         this.mupdateSettings.getAction().putValue(Action.NAME, "updateSettings()");
00645 
00646     }
00647 
00651     private void initDegausserActions() {
00652         this.dupdateSettings.setAction(new AbstractAction() {
00653             public void actionPerformed(ActionEvent e) {
00654                 try {
00655                     Squid.instance().getDegausser().updateSettings();
00656                 } catch (IOException ex) {
00657                     degausserLog.append("updateSettings failed\r");
00658                 }
00659             }
00660         });
00661         this.dupdateSettings.getAction().putValue(Action.NAME, "updateSettings()");
00662 
00663         this.ddemagnetizeY.setAction(new AbstractAction() {
00664             public void actionPerformed(ActionEvent e) {
00665                 try {
00666                     Squid.instance().getDegausser().demagnetizeY(Double.parseDouble(param1.getText()));
00667                 } catch (IOException ex) {
00668                     degausserLog.append("demagnetizeY failed\r");
00669                 }
00670             }
00671         });
00672         this.ddemagnetizeY.getAction().putValue(Action.NAME, "demagnetizeY(int amplitude)");
00673 
00674         this.ddemagnetizeZ.setAction(new AbstractAction() {
00675             public void actionPerformed(ActionEvent e) {
00676                 try {
00677                     Squid.instance().getDegausser().demagnetizeZ(Double.parseDouble(param1.getText()));
00678                 } catch (IOException ex) {
00679                     degausserLog.append("demagnetizeZ failed\r");
00680                 }
00681             }
00682         });
00683         this.ddemagnetizeZ.getAction().putValue(Action.NAME, "demagnetizeY(int amplitude)");
00684 
00685         this.dexecuteRampCycle.setAction(new AbstractAction() {
00686             public void actionPerformed(ActionEvent e) {
00687                 try {
00688                     Squid.instance().getDegausser().executeRampCycle();
00689                 } catch (IOException ex) {
00690                     degausserLog.append("demagnetizeZ failed\r");
00691                 }
00692             }
00693         });
00694         this.dexecuteRampCycle.getAction().putValue(Action.NAME, "executeRampCycle()");
00695 
00696         this.dsetAmplitude.setAction(new AbstractAction() {
00697             public void actionPerformed(ActionEvent e) {
00698                 try {
00699                     Squid.instance().getDegausser().setAmplitude(Integer.parseInt(param1.getText()));
00700                 } catch (IOException ex) {
00701                     degausserLog.append("demagnetizeZ failed\r");
00702                 }
00703             }
00704         });
00705         this.dsetAmplitude.getAction().putValue(Action.NAME, "setAmplitude(int)");
00706 
00707         this.dsetCoil.setAction(new AbstractAction() {
00708             public void actionPerformed(ActionEvent e) {
00709                 try {
00710                     Squid.instance().getDegausser().setCoil(param1.getText().charAt(0));
00711                 } catch (IOException ex) {
00712                     degausserLog.append("demagnetizeZ failed\r");
00713                 }
00714             }
00715         });
00716         this.dsetCoil.getAction().putValue(Action.NAME, "setCoil(char axis)");
00717 
00718         this.dgetAmplitude.setAction(new AbstractAction() {
00719             public void actionPerformed(ActionEvent e) {
00720                 try {
00721                     degausserLog.append(Squid.instance().getDegausser().getAmplitude() + "\r");
00722                 } catch (IOException ex) {
00723                     degausserLog.append("get failed\r");
00724                 }
00725             }
00726         });
00727         this.dgetAmplitude.getAction().putValue(Action.NAME, "getAmplitude()");
00728 
00729         this.dgetCoil.setAction(new AbstractAction() {
00730             public void actionPerformed(ActionEvent e) {
00731                 try {
00732                     degausserLog.append(Squid.instance().getDegausser().getCoil() + "\r");
00733                 } catch (IOException ex) {
00734                     degausserLog.append("get failed\r");
00735                 }
00736             }
00737         });
00738         this.dgetCoil.getAction().putValue(Action.NAME, "getCoil()");
00739 
00740         this.dgetRamp.setAction(new AbstractAction() {
00741             public void actionPerformed(ActionEvent e) {
00742                 try {
00743                     degausserLog.append("" + Squid.instance().getDegausser().getRamp() + "\r");
00744                 } catch (IOException ex) {
00745                     degausserLog.append("getRamp failed\r");
00746                 }
00747             }
00748         });
00749         this.dgetRamp.getAction().putValue(Action.NAME, "getRamp()");
00750 
00751         this.dgetDelay.setAction(new AbstractAction() {
00752             public void actionPerformed(ActionEvent e) {
00753                 try {
00754                     degausserLog.append(Squid.instance().getDegausser().getDelay() + "\r");
00755                 } catch (IOException ex) {
00756                     degausserLog.append("getDelay failed\r");
00757                 }
00758             }
00759         });
00760         this.dgetDelay.getAction().putValue(Action.NAME, "getDelay()");
00761 
00762         this.dgetRampStatus.setAction(new AbstractAction() {
00763             public void actionPerformed(ActionEvent e) {
00764                 try {
00765                     degausserLog.append(Squid.instance().getDegausser().getRampStatus() + "\r");
00766                 } catch (IOException ex) {
00767                     degausserLog.append("getRampStatus failed\r");
00768                 }
00769             }
00770         });
00771         this.dgetRampStatus.getAction().putValue(Action.NAME, "getRampStatus()");
00772 
00773     }
00774 
00778     private void initLogging() {
00779         // no need
00780     }
00781 
00782     public static void main(String[] args) {
00783         PlasticLookAndFeel.setMyCurrentTheme(new SkyBlue());
00784         try {
00785             UIManager.setLookAndFeel(new Plastic3DLookAndFeel());
00786         } catch (UnsupportedLookAndFeelException e) {
00787             System.err.println(e);
00788         }
00789 
00790         new SquidFront();
00791     }
00792 
00793     {
00794 // GUI initializer generated by IntelliJ IDEA GUI Designer
00795 // !!! IMPORTANT !!!
00796 // DO NOT EDIT OR ADD ANY CODE HERE!
00797         $$$setupUI$$$();
00798     }
00799 
00804     private void $$$setupUI$$$() {
00805         contentPane = new JPanel();
00806         contentPane.setLayout(new GridLayoutManager(4, 3, new Insets(0, 0, 0, 0), -1, -1));
00807         final JPanel panel1 = new JPanel();
00808         panel1.setLayout(new GridLayoutManager(3, 1, new Insets(0, 0, 0, 0), -1, -1));
00809         contentPane.add(panel1,
00810                 new GridConstraints(1, 2, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH,
00811                         GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW,
00812                         GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null));
00813         panel1.setBorder(BorderFactory.createTitledBorder(BorderFactory.createEtchedBorder(), null));
00814         final JLabel label1 = new JLabel();
00815         label1.setText("Degausser");
00816         panel1.add(label1,
00817                 new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE,
00818                         GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null));
00819         final JPanel panel2 = new JPanel();
00820         panel2.setLayout(new GridLayoutManager(14, 1, new Insets(0, 0, 0, 0), -1, -1));
00821         panel1.add(panel2,
00822                 new GridConstraints(1, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH,
00823                         GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW,
00824                         GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null));
00825         dupdateSettings = new JButton();
00826         dupdateSettings.setHorizontalAlignment(2);
00827         dupdateSettings.setText("updateSettings():void");
00828         panel2.add(dupdateSettings,
00829                 new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL,
00830                         GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW,
00831                         GridConstraints.SIZEPOLICY_FIXED, null, null, null));
00832         dsetCoil = new JButton();
00833         dsetCoil.setHorizontalAlignment(2);
00834         dsetCoil.setText("setCoil(char coil):void");
00835         panel2.add(dsetCoil,
00836                 new GridConstraints(1, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL,
00837                         GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW,
00838                         GridConstraints.SIZEPOLICY_FIXED, null, null, null));
00839         dsetAmplitude = new JButton();
00840         dsetAmplitude.setHorizontalAlignment(2);
00841         dsetAmplitude.setText("setAmplitude(int amplitude):void");
00842         panel2.add(dsetAmplitude,
00843                 new GridConstraints(2, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL,
00844                         GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW,
00845                         GridConstraints.SIZEPOLICY_FIXED, null, null, null));
00846         dexecuteRampUp = new JButton();
00847         dexecuteRampUp.setHorizontalAlignment(2);
00848         dexecuteRampUp.setText("executeRampUp():void");
00849         panel2.add(dexecuteRampUp,
00850                 new GridConstraints(3, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL,
00851                         GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW,
00852                         GridConstraints.SIZEPOLICY_FIXED, null, null, null));
00853         dexecuteRampDown = new JButton();
00854         dexecuteRampDown.setHorizontalAlignment(2);
00855         dexecuteRampDown.setText("executeRampDown():void");
00856         panel2.add(dexecuteRampDown,
00857                 new GridConstraints(4, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL,
00858                         GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW,
00859                         GridConstraints.SIZEPOLICY_FIXED, null, null, null));
00860         dexecuteRampCycle = new JButton();
00861         dexecuteRampCycle.setHorizontalAlignment(2);
00862         dexecuteRampCycle.setText("executeRampCycle():void");
00863         panel2.add(dexecuteRampCycle,
00864                 new GridConstraints(5, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL,
00865                         GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW,
00866                         GridConstraints.SIZEPOLICY_FIXED, null, null, null));
00867         ddemagnetizeZ = new JButton();
00868         ddemagnetizeZ.setHorizontalAlignment(2);
00869         ddemagnetizeZ.setText("demagnetizeZ(int amplitude):boolean");
00870         panel2.add(ddemagnetizeZ,
00871                 new GridConstraints(6, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL,
00872                         GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW,
00873                         GridConstraints.SIZEPOLICY_FIXED, null, null, null));
00874         ddemagnetizeY = new JButton();
00875         ddemagnetizeY.setHorizontalAlignment(2);
00876         ddemagnetizeY.setText("demagnetizeY(int amplitude):boolean");
00877         panel2.add(ddemagnetizeY,
00878                 new GridConstraints(7, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL,
00879                         GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW,
00880                         GridConstraints.SIZEPOLICY_FIXED, null, null, null));
00881         dgetRampStatus = new JButton();
00882         dgetRampStatus.setHorizontalAlignment(2);
00883         dgetRampStatus.setText("getRampStatus():char");
00884         panel2.add(dgetRampStatus,
00885                 new GridConstraints(8, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL,
00886                         GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW,
00887                         GridConstraints.SIZEPOLICY_FIXED, null, null, null));
00888         dgetRamp = new JButton();
00889         dgetRamp.setHorizontalAlignment(2);
00890         dgetRamp.setText("getRamp():int");
00891         panel2.add(dgetRamp,
00892                 new GridConstraints(9, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL,
00893                         GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW,
00894                         GridConstraints.SIZEPOLICY_FIXED, null, null, null));
00895         dgetDelay = new JButton();
00896         dgetDelay.setHorizontalAlignment(2);
00897         dgetDelay.setText("getDelay():int");
00898         panel2.add(dgetDelay,
00899                 new GridConstraints(10, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL,
00900                         GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW,
00901                         GridConstraints.SIZEPOLICY_FIXED, null, null, null));
00902         dgetCoil = new JButton();
00903         dgetCoil.setEnabled(true);
00904         dgetCoil.setHorizontalAlignment(2);
00905         dgetCoil.setText("getCoil():char");
00906         panel2.add(dgetCoil,
00907                 new GridConstraints(11, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL,
00908                         GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW,
00909                         GridConstraints.SIZEPOLICY_FIXED, null, null, null));
00910         dgetAmplitude = new JButton();
00911         dgetAmplitude.setHorizontalAlignment(2);
00912         dgetAmplitude.setText("getAmplitude():int");
00913         panel2.add(dgetAmplitude,
00914                 new GridConstraints(12, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL,
00915                         GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW,
00916                         GridConstraints.SIZEPOLICY_FIXED, null, null, null));
00917         disOK = new JButton();
00918         disOK.setHorizontalAlignment(2);
00919         disOK.setText("isOK():boolean");
00920         panel2.add(disOK,
00921                 new GridConstraints(13, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL,
00922                         GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW,
00923                         GridConstraints.SIZEPOLICY_FIXED, null, null, null));
00924         final Spacer spacer1 = new Spacer();
00925         panel1.add(spacer1,
00926                 new GridConstraints(2, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_VERTICAL, 1,
00927                         GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null));
00928         final JPanel panel3 = new JPanel();
00929         panel3.setLayout(new GridLayoutManager(2, 4, new Insets(0, 0, 0, 0), -1, -1));
00930         contentPane.add(panel3,
00931                 new GridConstraints(0, 0, 1, 2, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH,
00932                         GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW,
00933                         GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null));
00934         param1 = new JTextField();
00935         panel3.add(param1,
00936                 new GridConstraints(1, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_HORIZONTAL,
00937                         GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null,
00938                         new Dimension(100, -1), null));
00939         param2 = new JTextField();
00940         panel3.add(param2,
00941                 new GridConstraints(1, 1, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_HORIZONTAL,
00942                         GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null,
00943                         new Dimension(100, -1), null));
00944         final JLabel label2 = new JLabel();
00945         label2.setText("param2");
00946         panel3.add(label2,
00947                 new GridConstraints(0, 1, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE,
00948                         GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null));
00949         final JLabel label3 = new JLabel();
00950         label3.setText("param1");
00951         panel3.add(label3,
00952                 new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE,
00953                         GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null));
00954         param3 = new JTextField();
00955         panel3.add(param3,
00956                 new GridConstraints(1, 2, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_HORIZONTAL,
00957                         GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null,
00958                         new Dimension(100, -1), null));
00959         final JLabel label4 = new JLabel();
00960         label4.setText("param3");
00961         panel3.add(label4,
00962                 new GridConstraints(0, 2, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE,
00963                         GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null));
00964         final Spacer spacer2 = new Spacer();
00965         panel3.add(spacer2,
00966                 new GridConstraints(1, 3, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL,
00967                         GridConstraints.SIZEPOLICY_WANT_GROW, 1, null, null, null));
00968         final JScrollPane scrollPane1 = new JScrollPane();
00969         scrollPane1.setHorizontalScrollBarPolicy(30);
00970         scrollPane1.setVerticalScrollBarPolicy(22);
00971         contentPane.add(scrollPane1,
00972                 new GridConstraints(3, 1, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH,
00973                         GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_WANT_GROW,
00974                         GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null));
00975         magnetometerLog = new JTextArea();
00976         magnetometerLog.setRows(6);
00977         scrollPane1.setViewportView(magnetometerLog);
00978         final JPanel panel4 = new JPanel();
00979         panel4.setLayout(new GridLayoutManager(3, 1, new Insets(0, 0, 0, 0), -1, -1));
00980         contentPane.add(panel4,
00981                 new GridConstraints(1, 1, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH,
00982                         GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW,
00983                         GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null));
00984         panel4.setBorder(BorderFactory.createTitledBorder(BorderFactory.createEtchedBorder(), null));
00985         final JLabel label5 = new JLabel();
00986         label5.setText("Magnetometer");
00987         panel4.add(label5,
00988                 new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE,
00989                         GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null));
00990         final Spacer spacer3 = new Spacer();
00991         panel4.add(spacer3,
00992                 new GridConstraints(2, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_VERTICAL, 1,
00993                         GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null));
00994         final JPanel panel5 = new JPanel();
00995         panel5.setLayout(new GridLayoutManager(16, 1, new Insets(0, 0, 0, 0), -1, -1));
00996         panel4.add(panel5,
00997                 new GridConstraints(1, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH,
00998                         GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW,
00999                         GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null));
01000         mupdateSettings = new JButton();
01001         mupdateSettings.setHorizontalAlignment(2);
01002         mupdateSettings.setText("updateSettings():void");
01003         panel5.add(mupdateSettings,
01004                 new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL,
01005                         GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW,
01006                         GridConstraints.SIZEPOLICY_FIXED, null, null, null));
01007         mreset = new JButton();
01008         mreset.setHorizontalAlignment(2);
01009         mreset.setText("reset(char axis):void");
01010         panel5.add(mreset,
01011                 new GridConstraints(1, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL,
01012                         GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW,
01013                         GridConstraints.SIZEPOLICY_FIXED, null, null, null));
01014         mresetCounter = new JButton();
01015         mresetCounter.setHorizontalAlignment(2);
01016         mresetCounter.setText("resetCounter(char axis):void");
01017         panel5.add(mresetCounter,
01018                 new GridConstraints(2, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL,
01019                         GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW,
01020                         GridConstraints.SIZEPOLICY_FIXED, null, null, null));
01021         mconfigure = new JButton();
01022         mconfigure.setHorizontalAlignment(2);
01023         mconfigure.setText("configure(char axis, char subcommand, char option):void");
01024         panel5.add(mconfigure,
01025                 new GridConstraints(3, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL,
01026                         GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW,
01027                         GridConstraints.SIZEPOLICY_FIXED, null, null, null));
01028         mlatchAnalog = new JButton();
01029         mlatchAnalog.setHorizontalAlignment(2);
01030         mlatchAnalog.setText("latchAnalog(char axis):void");
01031         panel5.add(mlatchAnalog,
01032                 new GridConstraints(4, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL,
01033                         GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW,
01034                         GridConstraints.SIZEPOLICY_FIXED, null, null, null));
01035         mlatchCounter = new JButton();
01036         mlatchCounter.setHorizontalAlignment(2);
01037         mlatchCounter.setText("latchCounter(char axis):void");
01038         panel5.add(mlatchCounter,
01039                 new GridConstraints(5, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL,
01040                         GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW,
01041                         GridConstraints.SIZEPOLICY_FIXED, null, null, null));
01042         mgetData = new JButton();
01043         mgetData.setHorizontalAlignment(2);
01044         mgetData.setText("getData(char axis, char command, String datavalues):String");
01045         panel5.add(mgetData,
01046                 new GridConstraints(6, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL,
01047                         GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW,
01048                         GridConstraints.SIZEPOLICY_FIXED, null, null, null));
01049         mopenLoop = new JButton();
01050         mopenLoop.setHorizontalAlignment(2);
01051         mopenLoop.setText("openLoop(char axis):void");
01052         panel5.add(mopenLoop,
01053                 new GridConstraints(7, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL,
01054                         GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW,
01055                         GridConstraints.SIZEPOLICY_FIXED, null, null, null));
01056         mclearFlux = new JButton();
01057         mclearFlux.setHorizontalAlignment(2);
01058         mclearFlux.setText("clearFlux(char axis):void");
01059         panel5.add(mclearFlux,
01060                 new GridConstraints(8, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL,
01061                         GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW,
01062                         GridConstraints.SIZEPOLICY_FIXED, null, null, null));
01063         mjoin = new JButton();
01064         mjoin.setHorizontalAlignment(2);
01065         mjoin.setText("join():void");
01066         panel5.add(mjoin,
01067                 new GridConstraints(9, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL,
01068                         GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW,
01069                         GridConstraints.SIZEPOLICY_FIXED, null, null, null));
01070         mreadData = new JButton();
01071         mreadData.setHorizontalAlignment(2);
01072         mreadData.setText("readData():Double[3]");
01073         panel5.add(mreadData,
01074                 new GridConstraints(10, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL,
01075                         GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW,
01076                         GridConstraints.SIZEPOLICY_FIXED, null, null, null));
01077         mgetFilters = new JButton();
01078         mgetFilters.setHorizontalAlignment(2);
01079         mgetFilters.setText("getFilters():char[3]");
01080         panel5.add(mgetFilters,
01081                 new GridConstraints(11, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL,
01082                         GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW,
01083                         GridConstraints.SIZEPOLICY_FIXED, null, null, null));
01084         mgetRange = new JButton();
01085         mgetRange.setHorizontalAlignment(2);
01086         mgetRange.setText("getRange():char[3]");
01087         panel5.add(mgetRange,
01088                 new GridConstraints(12, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL,
01089                         GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW,
01090                         GridConstraints.SIZEPOLICY_FIXED, null, null, null));
01091         mgetSlew = new JButton();
01092         mgetSlew.setHorizontalAlignment(2);
01093         mgetSlew.setText("getSlew():boolean[3]");
01094         panel5.add(mgetSlew,
01095                 new GridConstraints(13, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL,
01096                         GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW,
01097                         GridConstraints.SIZEPOLICY_FIXED, null, null, null));
01098         mgetLoop = new JButton();
01099         mgetLoop.setHorizontalAlignment(2);
01100         mgetLoop.setText("getLoop():boolean[3]");
01101         panel5.add(mgetLoop,
01102                 new GridConstraints(14, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL,
01103                         GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW,
01104                         GridConstraints.SIZEPOLICY_FIXED, null, null, null));
01105         misOK = new JButton();
01106         misOK.setHorizontalAlignment(2);
01107         misOK.setText("isOK():boolean");
01108         panel5.add(misOK,
01109                 new GridConstraints(15, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL,
01110                         GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW,
01111                         GridConstraints.SIZEPOLICY_FIXED, null, null, null));
01112         final JScrollPane scrollPane2 = new JScrollPane();
01113         scrollPane2.setVerticalScrollBarPolicy(22);
01114         contentPane.add(scrollPane2,
01115                 new GridConstraints(3, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH,
01116                         GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_WANT_GROW,
01117                         GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null));
01118         handlerLog = new JTextArea();
01119         handlerLog.setRows(6);
01120         scrollPane2.setViewportView(handlerLog);
01121         final JScrollPane scrollPane3 = new JScrollPane();
01122         scrollPane3.setHorizontalScrollBarPolicy(30);
01123         scrollPane3.setVerticalScrollBarPolicy(22);
01124         contentPane.add(scrollPane3,
01125                 new GridConstraints(3, 2, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH,
01126                         GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_WANT_GROW,
01127                         GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null));
01128         degausserLog = new JTextArea();
01129         degausserLog.setRows(6);
01130         scrollPane3.setViewportView(degausserLog);
01131         final JPanel panel6 = new JPanel();
01132         panel6.setLayout(new GridLayoutManager(3, 1, new Insets(0, 0, 0, 0), -1, -1));
01133         contentPane.add(panel6,
01134                 new GridConstraints(1, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH,
01135                         GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW,
01136                         GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null));
01137         panel6.setBorder(BorderFactory.createTitledBorder(BorderFactory.createEtchedBorder(), null));
01138         final JLabel label6 = new JLabel();
01139         label6.setText("Handler");
01140         panel6.add(label6,
01141                 new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE,
01142                         GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null));
01143         final JPanel panel7 = new JPanel();
01144         panel7.setLayout(new GridLayoutManager(16, 2, new Insets(0, 0, 0, 0), -1, -1));
01145         panel6.add(panel7,
01146                 new GridConstraints(1, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH,
01147                         GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW,
01148                         GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null));
01149         hupdateSettings = new JButton();
01150         hupdateSettings.setHorizontalAlignment(2);
01151         hupdateSettings.setHorizontalTextPosition(11);
01152         hupdateSettings.setText("updateSettings():void");
01153         hupdateSettings.setVerticalTextPosition(0);
01154         panel7.add(hupdateSettings,
01155                 new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL,
01156                         GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW,
01157                         GridConstraints.SIZEPOLICY_FIXED, null, null, null));
01158         hgetStatus = new JButton();
01159         hgetStatus.setHorizontalAlignment(2);
01160         hgetStatus.setText("getStatus():char");
01161         panel7.add(hgetStatus,
01162                 new GridConstraints(1, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL,
01163                         GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW,
01164                         GridConstraints.SIZEPOLICY_FIXED, null, null, null));
01165         hgetPosition = new JButton();
01166         hgetPosition.setHorizontalAlignment(2);
01167         hgetPosition.setText("getPosition():int");
01168         panel7.add(hgetPosition,
01169                 new GridConstraints(2, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL,
01170                         GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW,
01171                         GridConstraints.SIZEPOLICY_FIXED, null, null, null));
01172         hgetRotation = new JButton();
01173         hgetRotation.setHorizontalAlignment(2);
01174         hgetRotation.setText("getRotation():int");
01175         panel7.add(hgetRotation,
01176                 new GridConstraints(3, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL,
01177                         GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW,
01178                         GridConstraints.SIZEPOLICY_FIXED, null, null, null));
01179         hisOK = new JButton();
01180         hisOK.setHorizontalAlignment(2);
01181         hisOK.setText("isOK():boolean");
01182         panel7.add(hisOK,
01183                 new GridConstraints(4, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL,
01184                         GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW,
01185                         GridConstraints.SIZEPOLICY_FIXED, null, null, null));
01186         hmoveToHome = new JButton();
01187         hmoveToHome.setHorizontalAlignment(2);
01188         hmoveToHome.setText("moveToHome():void");
01189         panel7.add(hmoveToHome,
01190                 new GridConstraints(5, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL,
01191                         GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW,
01192                         GridConstraints.SIZEPOLICY_FIXED, null, null, null));
01193         hmoveToDegausserZ = new JButton();
01194         hmoveToDegausserZ.setHorizontalAlignment(2);
01195         hmoveToDegausserZ.setText("moveToDegausserZ():void");
01196         panel7.add(hmoveToDegausserZ,
01197                 new GridConstraints(6, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL,
01198                         GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW,
01199                         GridConstraints.SIZEPOLICY_FIXED, null, null, null));
01200         hmoveToDegausserY = new JButton();
01201         hmoveToDegausserY.setHorizontalAlignment(2);
01202         hmoveToDegausserY.setText("moveToDegausserY():void");
01203         panel7.add(hmoveToDegausserY,
01204                 new GridConstraints(7, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL,
01205                         GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW,
01206                         GridConstraints.SIZEPOLICY_FIXED, null, null, null));
01207         hmoveToMeasurement = new JButton();
01208         hmoveToMeasurement.setHorizontalAlignment(2);
01209         hmoveToMeasurement.setText("moveToMeasurement():void");
01210         panel7.add(hmoveToMeasurement,
01211                 new GridConstraints(8, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL,
01212                         GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW,
01213                         GridConstraints.SIZEPOLICY_FIXED, null, null, null));
01214         hmoveToBackground = new JButton();
01215         hmoveToBackground.setHorizontalAlignment(2);
01216         hmoveToBackground.setText("moveToBackground():void");
01217         panel7.add(hmoveToBackground,
01218                 new GridConstraints(9, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL,
01219                         GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW,
01220                         GridConstraints.SIZEPOLICY_FIXED, null, null, null));
01221         hmoveToPos = new JButton();
01222         hmoveToPos.setHorizontalAlignment(2);
01223         hmoveToPos.setText("moveToPos(int pos):boolean");
01224         panel7.add(hmoveToPos,
01225                 new GridConstraints(10, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL,
01226                         GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW,
01227                         GridConstraints.SIZEPOLICY_FIXED, null, null, null));
01228         hstop = new JButton();
01229         hstop.setHorizontalAlignment(2);
01230         hstop.setText("stop():void");
01231         panel7.add(hstop,
01232                 new GridConstraints(11, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL,
01233                         GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW,
01234                         GridConstraints.SIZEPOLICY_FIXED, null, null, null));
01235         hrotateTo = new JButton();
01236         hrotateTo.setHorizontalAlignment(2);
01237         hrotateTo.setText("rotateTo(int angle):void");
01238         panel7.add(hrotateTo,
01239                 new GridConstraints(12, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL,
01240                         GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW,
01241                         GridConstraints.SIZEPOLICY_FIXED, null, null, null));
01242         hsetOnline = new JButton();
01243         hsetOnline.setHorizontalAlignment(2);
01244         hsetOnline.setText("setOnline():void");
01245         panel7.add(hsetOnline,
01246                 new GridConstraints(13, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL,
01247                         GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW,
01248                         GridConstraints.SIZEPOLICY_FIXED, null, null, null));
01249         hsetAcceleration = new JButton();
01250         hsetAcceleration.setHorizontalAlignment(2);
01251         hsetAcceleration.setText("setAcceleration(int a):void");
01252         panel7.add(hsetAcceleration,
01253                 new GridConstraints(14, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL,
01254                         GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW,
01255                         GridConstraints.SIZEPOLICY_FIXED, null, null, null));
01256         hsetDeceleration = new JButton();
01257         hsetDeceleration.setHorizontalAlignment(2);
01258         hsetDeceleration.setText("setDeceleration(int d):void");
01259         panel7.add(hsetDeceleration,
01260                 new GridConstraints(15, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL,
01261                         GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW,
01262                         GridConstraints.SIZEPOLICY_FIXED, null, null, null));
01263         hsetBaseSpeed = new JButton();
01264         hsetBaseSpeed.setHorizontalAlignment(2);
01265         hsetBaseSpeed.setText("setBaseSpeed(int b):void");
01266         panel7.add(hsetBaseSpeed,
01267                 new GridConstraints(0, 1, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL,
01268                         GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW,
01269                         GridConstraints.SIZEPOLICY_FIXED, null, null, null));
01270         hsetVelocity = new JButton();
01271         hsetVelocity.setHorizontalAlignment(2);
01272         hsetVelocity.setText("setVelocity(int v):void");
01273         panel7.add(hsetVelocity,
01274                 new GridConstraints(1, 1, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL,
01275                         GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW,
01276                         GridConstraints.SIZEPOLICY_FIXED, null, null, null));
01277         hsetHoldTime = new JButton();
01278         hsetHoldTime.setHorizontalAlignment(2);
01279         hsetHoldTime.setText("setHoldTime(int h):void");
01280         panel7.add(hsetHoldTime,
01281                 new GridConstraints(2, 1, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL,
01282                         GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW,
01283                         GridConstraints.SIZEPOLICY_FIXED, null, null, null));
01284         hsetCrystalFrequence = new JButton();
01285         hsetCrystalFrequence.setHorizontalAlignment(2);
01286         hsetCrystalFrequence.setText("setCrystalFrequence(int cf):void");
01287         panel7.add(hsetCrystalFrequence,
01288                 new GridConstraints(3, 1, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL,
01289                         GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW,
01290                         GridConstraints.SIZEPOLICY_FIXED, null, null, null));
01291         hstopExecution = new JButton();
01292         hstopExecution.setHorizontalAlignment(2);
01293         hstopExecution.setText("stopExecution():void");
01294         panel7.add(hstopExecution,
01295                 new GridConstraints(4, 1, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL,
01296                         GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW,
01297                         GridConstraints.SIZEPOLICY_FIXED, null, null, null));
01298         hperformSlew = new JButton();
01299         hperformSlew.setHorizontalAlignment(2);
01300         hperformSlew.setText("performSlew():void");
01301         panel7.add(hperformSlew,
01302                 new GridConstraints(5, 1, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL,
01303                         GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW,
01304                         GridConstraints.SIZEPOLICY_FIXED, null, null, null));
01305         hsetMotorPositive = new JButton();
01306         hsetMotorPositive.setHorizontalAlignment(2);
01307         hsetMotorPositive.setText("setMotorPositive():void");
01308         panel7.add(hsetMotorPositive,
01309                 new GridConstraints(6, 1, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL,
01310                         GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW,
01311                         GridConstraints.SIZEPOLICY_FIXED, null, null, null));
01312         hsetMotorNegative = new JButton();
01313         hsetMotorNegative.setHorizontalAlignment(2);
01314         hsetMotorNegative.setText("setMotorNegative():void");
01315         panel7.add(hsetMotorNegative,
01316                 new GridConstraints(7, 1, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL,
01317                         GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW,
01318                         GridConstraints.SIZEPOLICY_FIXED, null, null, null));
01319         hsetSteps = new JButton();
01320         hsetSteps.setHorizontalAlignment(2);
01321         hsetSteps.setText("setSteps(int s):void");
01322         panel7.add(hsetSteps,
01323                 new GridConstraints(8, 1, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL,
01324                         GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW,
01325                         GridConstraints.SIZEPOLICY_FIXED, null, null, null));
01326         hsetPosition = new JButton();
01327         hsetPosition.setHorizontalAlignment(2);
01328         hsetPosition.setText("setPosition(int p):void");
01329         panel7.add(hsetPosition,
01330                 new GridConstraints(9, 1, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL,
01331                         GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW,
01332                         GridConstraints.SIZEPOLICY_FIXED, null, null, null));
01333         hgo = new JButton();
01334         hgo.setHorizontalAlignment(2);
01335         hgo.setText("go():void");
01336         panel7.add(hgo,
01337                 new GridConstraints(10, 1, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL,
01338                         GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW,
01339                         GridConstraints.SIZEPOLICY_FIXED, null, null, null));
01340         hjoin = new JButton();
01341         hjoin.setHorizontalAlignment(2);
01342         hjoin.setText("join():void");
01343         panel7.add(hjoin,
01344                 new GridConstraints(11, 1, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL,
01345                         GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW,
01346                         GridConstraints.SIZEPOLICY_FIXED, null, null, null));
01347         hverify = new JButton();
01348         hverify.setHorizontalAlignment(2);
01349         hverify.setText("verify(char v):String");
01350         panel7.add(hverify,
01351                 new GridConstraints(12, 1, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL,
01352                         GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW,
01353                         GridConstraints.SIZEPOLICY_FIXED, null, null, null));
01354         hsetPositionRegister = new JButton();
01355         hsetPositionRegister.setHorizontalAlignment(2);
01356         hsetPositionRegister.setText("setPositionRegister(int r):void");
01357         panel7.add(hsetPositionRegister,
01358                 new GridConstraints(13, 1, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL,
01359                         GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW,
01360                         GridConstraints.SIZEPOLICY_FIXED, null, null, null));
01361         htakeMessage = new JButton();
01362         htakeMessage.setHorizontalAlignment(2);
01363         htakeMessage.setText("takeMessage():char");
01364         panel7.add(htakeMessage,
01365                 new GridConstraints(14, 1, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL,
01366                         GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW,
01367                         GridConstraints.SIZEPOLICY_FIXED, null, null, null));
01368         final Spacer spacer4 = new Spacer();
01369         panel6.add(spacer4,
01370                 new GridConstraints(2, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_VERTICAL, 1,
01371                         GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null));
01372         final JPanel panel8 = new JPanel();
01373         panel8.setLayout(new GridLayoutManager(1, 3, new Insets(0, 0, 0, 0), -1, -1));
01374         contentPane.add(panel8,
01375                 new GridConstraints(2, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH,
01376                         GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW,
01377                         GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null));
01378         hRawCommand = new JTextField();
01379         panel8.add(hRawCommand,
01380                 new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_HORIZONTAL,
01381                         GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null,
01382                         new Dimension(100, -1), null));
01383         hRawSend = new JButton();
01384         hRawSend.setText("Send");
01385         panel8.add(hRawSend,
01386                 new GridConstraints(0, 1, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL,
01387                         GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW,
01388                         GridConstraints.SIZEPOLICY_FIXED, null, null, null));
01389         final Spacer spacer5 = new Spacer();
01390         panel8.add(spacer5,
01391                 new GridConstraints(0, 2, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL,
01392                         GridConstraints.SIZEPOLICY_WANT_GROW, 1, null, null, null));
01393         final JPanel panel9 = new JPanel();
01394         panel9.setLayout(new GridLayoutManager(1, 3, new Insets(0, 0, 0, 0), -1, -1));
01395         contentPane.add(panel9,
01396                 new GridConstraints(2, 1, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH,
01397                         GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW,
01398                         GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null));
01399         mRawCommand = new JTextField();
01400         panel9.add(mRawCommand,
01401                 new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_HORIZONTAL,
01402                         GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null,
01403                         new Dimension(100, -1), null));
01404         mRawSend = new JButton();
01405         mRawSend.setText("Send");
01406         panel9.add(mRawSend,
01407                 new GridConstraints(0, 1, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL,
01408                         GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW,
01409                         GridConstraints.SIZEPOLICY_FIXED, null, null, null));
01410         final Spacer spacer6 = new Spacer();
01411         panel9.add(spacer6,
01412                 new GridConstraints(0, 2, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL,
01413                         GridConstraints.SIZEPOLICY_WANT_GROW, 1, null, null, null));
01414         final JPanel panel10 = new JPanel();
01415         panel10.setLayout(new GridLayoutManager(1, 3, new Insets(0, 0, 0, 0), -1, -1));
01416         contentPane.add(panel10,
01417                 new GridConstraints(2, 2, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH,
01418                         GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW,
01419                         GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null));
01420         dRawCommand = new JTextField();
01421         panel10.add(dRawCommand,
01422                 new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_HORIZONTAL,
01423                         GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null,
01424                         new Dimension(100, -1), null));
01425         dRawSend = new JButton();
01426         dRawSend.setText("Send");
01427         panel10.add(dRawSend,
01428                 new GridConstraints(0, 1, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL,
01429                         GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW,
01430                         GridConstraints.SIZEPOLICY_FIXED, null, null, null));
01431         final Spacer spacer7 = new Spacer();
01432         panel10.add(spacer7,
01433                 new GridConstraints(0, 2, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL,
01434                         GridConstraints.SIZEPOLICY_WANT_GROW, 1, null, null, null));
01435     }
01436 }

Generated on Fri May 6 16:00:33 2005 for Squid by  doxygen 1.4.1