main
Class Parameter

java.lang.Object
  extended by main.Parameter

public class Parameter
extends java.lang.Object

A class managing all important parameters


Field Summary
(package private)  double a
          Crystal lattice parameters
(package private)  double alpha
          Crystal lattice angles
(package private)  int azimuth
          Coordinates of the viewer
(package private)  double b
          Crystal lattice parameters
(package private)  double beta
          Crystal lattice angles
(package private)  double c
          Crystal lattice parameters
(package private)  java.lang.String crystalID
          String representing the chosen crystal.
 double default_a
          Default parameters
 double default_alpha
           
 double default_b
          Default parameters
 double default_beta
           
 double default_c
          Default parameters
 double default_gamma
           
(package private)  int elevation
          Coordinates of the viewer
(package private)  double gamma
          Crystal lattice angles
(package private)  boolean perspective
          Perspective on/off
(package private)  int scalekrement
          Amount of change of the scaling.
(package private)  int selectedlattice
          Number of the selected lattice in the array allCrystals
(package private)  boolean showaxes
          Showing the axes on/off
(package private)  boolean showbase
          Showing the reciprocal base vectors on/off
(package private)  boolean showbasis
           
(package private)  boolean showsym
          Showing the symmetry points and edges on/off
(package private)  int userscale
          Scaling factor, default is 100
(package private)  boolean zoomable
           
 
Constructor Summary
Parameter()
           
 
Method Summary
 void crystaldefault(double[] crystaldefault)
          sets all default lattice parameters
 void crystalParameter(double a, double b, double c, double alpha, double beta, double gamma)
          sets all lattice parameters at the same time.
 double geta()
          gets the lattice parameter a
 double getalpha()
          gets the lattice parameter alpha
 int getAzimuth()
          gets the azimuth value
 double getb()
          gets the lattice parameter b
 double getbeta()
          gets the lattice parameter beta
 double getc()
          gets the lattice parameter c
 java.lang.String getCrystal()
          gets the chosen crystalID
 int getElevation()
          gets the elevation value
 double getgamma()
          gets the lattice parameter gamma
 boolean getPerspective()
          gets true if perspecitve is on, false otherwise
 int getScale()
          gets the userscale
 int getSelectedLattice(int selecetd)
          gets the number of the selected lattice in the allCrystals -array
 boolean getshowAxes()
          gets the visibility of axes
 boolean getshowBase()
          gets the visibility of the reciprocal base vectors
 boolean getshowBasis()
           
 boolean getshowSym()
          gets the visibility of the symmetric points and axes
 boolean getZoom()
           
 void seta(double value)
          sets the lattice parameter a
 void setalpha(double value)
          sets the lattice parameter alpha
 void setAzimuth(int value)
          sets the azimuth value
 void setb(double value)
          sets the lattice parameter b
 void setbeta(double value)
          sets the lattice parameter beta
 void setc(double value)
          sets the lattice parameter c
 void setCrystal(java.lang.String name)
          sets the chosen crystalID
 void setcrystaldefault()
          sets all lattice parameters to default author Poms
 void setElevation(int value)
          sets the elevation value
 void setgamma(double value)
          sets the lattice parameter gamma
 void setPerspective(boolean value)
          sets the perspective on/off
 void setScale(int value)
          sets the userscale to this value
 void setScaleHigher()
          rises the userscale by scalekrement
 void setScaleLower()
          lowers the userscale by scalekrement
 void setSelectedLattice(int selected)
          sets the selected lattice by number
 void setshowAxes(boolean setting)
          sets the visibility of axes on/off
 void setshowBase(boolean setting)
          sets the visibility of the reciprocal base vectors on/off
 void setshowBasis(boolean setting)
          sets the visibility of the basis vectors on/off
 void setshowSym(boolean setting)
          sets the visibility of the symmetric points and axes on/off
 void setZoom(boolean setting)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

crystalID

java.lang.String crystalID
String representing the chosen crystal. The strings are defined in AbstractCrystal.getCrystalID()


perspective

boolean perspective
Perspective on/off


showaxes

boolean showaxes
Showing the axes on/off


showbase

boolean showbase
Showing the reciprocal base vectors on/off


showbasis

boolean showbasis

showsym

boolean showsym
Showing the symmetry points and edges on/off


zoomable

boolean zoomable

userscale

int userscale
Scaling factor, default is 100


scalekrement

int scalekrement
Amount of change of the scaling. Used by setScaleHigher() and setScaleLower()


azimuth

int azimuth
Coordinates of the viewer


elevation

int elevation
Coordinates of the viewer


a

double a
Crystal lattice parameters


b

double b
Crystal lattice parameters


c

double c
Crystal lattice parameters


alpha

double alpha
Crystal lattice angles


beta

double beta
Crystal lattice angles


gamma

double gamma
Crystal lattice angles


default_a

public double default_a
Default parameters


default_b

public double default_b
Default parameters


default_c

public double default_c
Default parameters


default_alpha

public double default_alpha

default_beta

public double default_beta

default_gamma

public double default_gamma

selectedlattice

int selectedlattice
Number of the selected lattice in the array allCrystals

Constructor Detail

Parameter

public Parameter()
Method Detail

setCrystal

public void setCrystal(java.lang.String name)
sets the chosen crystalID


getCrystal

public java.lang.String getCrystal()
gets the chosen crystalID


setPerspective

public void setPerspective(boolean value)
sets the perspective on/off


getPerspective

public boolean getPerspective()
gets true if perspecitve is on, false otherwise


setScale

public void setScale(int value)
sets the userscale to this value


setScaleLower

public void setScaleLower()
lowers the userscale by scalekrement


setScaleHigher

public void setScaleHigher()
rises the userscale by scalekrement


getScale

public int getScale()
gets the userscale


setAzimuth

public void setAzimuth(int value)
sets the azimuth value


getAzimuth

public int getAzimuth()
gets the azimuth value


setElevation

public void setElevation(int value)
sets the elevation value


getElevation

public int getElevation()
gets the elevation value


seta

public void seta(double value)
sets the lattice parameter a


setb

public void setb(double value)
sets the lattice parameter b


setc

public void setc(double value)
sets the lattice parameter c


setalpha

public void setalpha(double value)
sets the lattice parameter alpha


setbeta

public void setbeta(double value)
sets the lattice parameter beta


setgamma

public void setgamma(double value)
sets the lattice parameter gamma


geta

public double geta()
gets the lattice parameter a


getb

public double getb()
gets the lattice parameter b


getc

public double getc()
gets the lattice parameter c


getalpha

public double getalpha()
gets the lattice parameter alpha


getbeta

public double getbeta()
gets the lattice parameter beta


getgamma

public double getgamma()
gets the lattice parameter gamma


crystalParameter

public void crystalParameter(double a,
                             double b,
                             double c,
                             double alpha,
                             double beta,
                             double gamma)
sets all lattice parameters at the same time.

Parameters:
a - lattice base length a
b - lattice base length b
c - lattice base length c
alpha - lattice angle alpha
beta - lattice angle beta
gamma - lattice angle gamma

setSelectedLattice

public void setSelectedLattice(int selected)
sets the selected lattice by number


getSelectedLattice

public int getSelectedLattice(int selecetd)
gets the number of the selected lattice in the allCrystals -array


setshowAxes

public void setshowAxes(boolean setting)
sets the visibility of axes on/off


getshowAxes

public boolean getshowAxes()
gets the visibility of axes


setshowBase

public void setshowBase(boolean setting)
sets the visibility of the reciprocal base vectors on/off


getshowBase

public boolean getshowBase()
gets the visibility of the reciprocal base vectors


setshowSym

public void setshowSym(boolean setting)
sets the visibility of the symmetric points and axes on/off


getshowSym

public boolean getshowSym()
gets the visibility of the symmetric points and axes


crystaldefault

public void crystaldefault(double[] crystaldefault)
sets all default lattice parameters

Parameters:
crystaldefault -

[0]:lattice base length a
[1]:lattice base length b
[2]:lattice base length c
[3]:lattice angle alpha
[4]:lattice angle beta
[5]:lattice angle gamma
author Poms


setcrystaldefault

public void setcrystaldefault()
sets all lattice parameters to default author Poms


setshowBasis

public void setshowBasis(boolean setting)
sets the visibility of the basis vectors on/off


getshowBasis

public boolean getshowBasis()

setZoom

public void setZoom(boolean setting)

getZoom

public boolean getZoom()