edu.buffalo.fs7.jaQuzzi
Class Dialogs

java.lang.Object
  |
  +--edu.buffalo.fs7.jaQuzzi.Dialogs

public class Dialogs
extends java.lang.Object

class providing static methods to bring up dialog windows used by the jaQuzzi class.

See Also:
PhaseInputDialog, ChooseMatrixDialog, MatrixInputDialog, GatePropertyDialog, CircuiPropertyDialog

Constructor Summary
Dialogs()
           
 
Method Summary
static java.lang.String chooseMatrixDialog(javax.swing.JFrame parent, int qubitsSel)
          brings up the ChooseMatrixDialog.
static GateProperty circuitPropertyDialog(javax.swing.JFrame parent, int mode)
          brings up the CircuitPropertyDialog.
static GateProperty gatePropertyDialog(javax.swing.JFrame parent, java.lang.String gateName)
          brings up the GatePropertyDialog.
static java.lang.String mathInputDialog(javax.swing.JFrame parent, java.lang.String title, Matrix matrix, boolean[][] enabled, boolean unitary)
          show a dialog for the input of an abritrary matrix.
static boolean phaseInputDialog(javax.swing.JFrame parent, int[] ratio)
          brings up the PhaseInputDialog.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Dialogs

public Dialogs()
Method Detail

phaseInputDialog

public static boolean phaseInputDialog(javax.swing.JFrame parent,
                                       int[] ratio)
brings up the PhaseInputDialog. Parameters are the parent frame and a two element integer array with the nominator and the denominator.

mathInputDialog

public static java.lang.String mathInputDialog(javax.swing.JFrame parent,
                                               java.lang.String title,
                                               Matrix matrix,
                                               boolean[][] enabled,
                                               boolean unitary)
show a dialog for the input of an abritrary matrix. The matrix object must be given as a parameter. Optionally, another matrix with boolean values can be given to be used as an enabled-mask.
Returns:
name of the created variable
See Also:
MatrixInputDialog

chooseMatrixDialog

public static java.lang.String chooseMatrixDialog(javax.swing.JFrame parent,
                                                  int qubitsSel)
brings up the ChooseMatrixDialog. Parameters are the parent frame and the number of qubits selected.
See Also:
ChooseMatrixDialog

gatePropertyDialog

public static GateProperty gatePropertyDialog(javax.swing.JFrame parent,
                                              java.lang.String gateName)
brings up the GatePropertyDialog. The parameters are parent frame and the gateName.
See Also:
GatePropertyDialog

circuitPropertyDialog

public static GateProperty circuitPropertyDialog(javax.swing.JFrame parent,
                                                 int mode)
brings up the CircuitPropertyDialog. The parameters are parent frame and the simulation mode.
See Also:
CircuitPropertyDialog