gui
Class GuiModel

java.lang.Object
  extended by gui.GuiModel

public class GuiModel
extends java.lang.Object

Containing information concerning the editability of the text fields. A Collection of Strings, describing, whether a text field is editable, fixed or should copy its contents from another textfield. Possible strings are:


Field Summary
(package private)  java.lang.String field_a
          Strings for the fields for the lattice constants a, b and c
(package private)  java.lang.String field_alpha
          Strings for the fields for the angles alpha, beta and gamma
(package private)  java.lang.String field_b
          Strings for the fields for the lattice constants a, b and c
(package private)  java.lang.String field_beta
          Strings for the fields for the angles alpha, beta and gamma
(package private)  java.lang.String field_c
          Strings for the fields for the lattice constants a, b and c
(package private)  java.lang.String field_gamma
          Strings for the fields for the angles alpha, beta and gamma
 
Constructor Summary
GuiModel()
          Creates a GuiModel with the default settings, and leads to the same as GuiModel(1,1,1,90,90,90)
GuiModel(java.lang.String field_a, java.lang.String field_b, java.lang.String field_c, java.lang.String field_alpha, java.lang.String field_beta, java.lang.String field_gamma)
          Creats a GuiModel with the settings used as parameters.
 
Method Summary
(package private)  void setAll(java.lang.String field_a, java.lang.String field_b, java.lang.String field_c, java.lang.String field_alpha, java.lang.String field_beta, java.lang.String field_gamma)
          Allows to change the parameter of an existing GuiModel.
(package private)  void setfield_a(java.lang.String field_a)
          Allows the change of the parameter for text field a
(package private)  void setfield_alpha(java.lang.String field_alpha)
          Allows the change of the parameter for text field alpha
(package private)  void setfield_b(java.lang.String field_b)
          Allows the change of the parameter for text field b
(package private)  void setfield_beta(java.lang.String field_beta)
          Allows the change of the parameter for text field beta
(package private)  void setfield_c(java.lang.String field_c)
          Allows the change of the parameter for text field c
(package private)  void setfield_gamma(java.lang.String field_gamma)
          Allows the change of the parameter for text field gamma
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

field_a

java.lang.String field_a
Strings for the fields for the lattice constants a, b and c


field_b

java.lang.String field_b
Strings for the fields for the lattice constants a, b and c


field_c

java.lang.String field_c
Strings for the fields for the lattice constants a, b and c


field_alpha

java.lang.String field_alpha
Strings for the fields for the angles alpha, beta and gamma


field_beta

java.lang.String field_beta
Strings for the fields for the angles alpha, beta and gamma


field_gamma

java.lang.String field_gamma
Strings for the fields for the angles alpha, beta and gamma

Constructor Detail

GuiModel

public GuiModel()
Creates a GuiModel with the default settings, and leads to the same as GuiModel(1,1,1,90,90,90)


GuiModel

public GuiModel(java.lang.String field_a,
                java.lang.String field_b,
                java.lang.String field_c,
                java.lang.String field_alpha,
                java.lang.String field_beta,
                java.lang.String field_gamma)
Creats a GuiModel with the settings used as parameters. For example GuiModel(2,3,b,90,120,alpha) means, the value in textfield a is set to 2, the value in textfield b is set to 3, the value in textfield c is the same as in b and copied from there, the angle alpha is set to 90 degree, beta is set to 120 degree, and gamma is the same as alpha.

Parameters:
field_a - String describing the behaviour of text field a.
field_b - String describing the behaviour of text field b.
field_c - String describing the behaviour of text field c.
field_alpha - String describing the behaviour of text field alpha.
field_beta - String describing the behaviour of text field beta.
field_gamma - String describing the behaviour of text field gamma.
Method Detail

setAll

void setAll(java.lang.String field_a,
            java.lang.String field_b,
            java.lang.String field_c,
            java.lang.String field_alpha,
            java.lang.String field_beta,
            java.lang.String field_gamma)
Allows to change the parameter of an existing GuiModel.

Parameters:
field_a - String describing the behaviour of text field a.
field_b - String describing the behaviour of text field b.
field_c - String describing the behaviour of text field c.
field_alpha - String describing the behaviour of text field alpha.
field_beta - String describing the behaviour of text field beta.
field_gamma - String describing the behaviour of text field gamma.

setfield_a

void setfield_a(java.lang.String field_a)
Allows the change of the parameter for text field a


setfield_b

void setfield_b(java.lang.String field_b)
Allows the change of the parameter for text field b


setfield_c

void setfield_c(java.lang.String field_c)
Allows the change of the parameter for text field c


setfield_alpha

void setfield_alpha(java.lang.String field_alpha)
Allows the change of the parameter for text field alpha


setfield_beta

void setfield_beta(java.lang.String field_beta)
Allows the change of the parameter for text field beta


setfield_gamma

void setfield_gamma(java.lang.String field_gamma)
Allows the change of the parameter for text field gamma