main
Class AppletParameters

java.lang.Object
  extended by main.AppletParameters

public class AppletParameters
extends java.lang.Object

Handling the applet parameters. This class offers a function for every parameter. The function tries to read the parameter, if none is given, or it cannot be interpreted right, a default value is taken. Note that parameters are case insensitive.


Field Summary
(package private)  MiniLaunch launch
           
 
Constructor Summary
AppletParameters(MiniLaunch launch)
           
 
Method Summary
 double finda()
          Read paramter a.
 double findalpha()
          Read paramter alpha.
 int findazimuth()
          Read paramter azimuth.
 double findb()
          Read paramter b.
 double findbeta()
          Read paramter beta.
 double findc()
          Read paramter c.
 java.lang.String findCrystalID()
          Read paramter crystalID.
 int findelevation()
          Read paramter elevation.
 double findgamma()
          Read paramter gamma.
 boolean findperspective()
          Read paramter perspective.
 boolean findselectable()
          Read paramter selectable.
 boolean findshowaxes()
          Read paramter showbase.
 boolean findshowbase()
          Read paramter showbase.
 boolean findshowbasis()
          Read paramter showbasis.
 boolean findshowsymmetry()
          Read paramter showbase.
 int findSize()
          Read paramter size.
 int finduserscale()
          Read paramter scale.
 boolean findzoom()
          Read paramter showbasis.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

launch

MiniLaunch launch
Constructor Detail

AppletParameters

public AppletParameters(MiniLaunch launch)
Method Detail

findSize

public int findSize()
Read paramter size. size should be the size of the applet, which is assumed to be a square. Default value is 400. (Has no effect in the version with interface.)


findCrystalID

public java.lang.String findCrystalID()
Read paramter crystalID. crystalID should be the short name of the lattice, which shall be shown. Default value is bcc.


finda

public double finda()
Read paramter a. a is the value for the lattice constant a, Default value is 1.


findb

public double findb()
Read paramter b. b is the value for the lattice constant b, Default value is 1.


findc

public double findc()
Read paramter c. c is the value for the lattice constant a, Default value is 1.


findalpha

public double findalpha()
Read paramter alpha. alpha is the value for the lattice angle alpha, Default value is 90.


findbeta

public double findbeta()
Read paramter beta. beta is the value for the lattice angle beta, Default value is 90.


findgamma

public double findgamma()
Read paramter gamma. gamma is the value for the lattice angle gamma, Default value is 90.


finduserscale

public int finduserscale()
Read paramter scale. scale is just a scaling factor of the drawn picture. Default value is 100.


findelevation

public int findelevation()
Read paramter elevation. elevation is one of the two coordinates, describing the point of view. Default value is 12.


findazimuth

public int findazimuth()
Read paramter azimuth. azimuthis one of the two coordinates, describing the point of view. Default value is 106.


findperspective

public boolean findperspective()
Read paramter perspective. perpective decides of perspective should be used. true is on false is off Default value is false.


findshowbase

public boolean findshowbase()
Read paramter showbase. showbase decides if the reciprocal base vectors shoud be drawn. true is on false is off Default value is false.


findshowaxes

public boolean findshowaxes()
Read paramter showbase. showbase decides if the axes shoud be drawn. true is on false is off Default value is true.


findshowsymmetry

public boolean findshowsymmetry()
Read paramter showbase. showbase decides if symmetry points and edges shoud be drawn. true is on false is off Default value is true.


findselectable

public boolean findselectable()
Read paramter selectable. Decides, if the choose box should be enabled. true is on false is off Default value is false. (This has understandibly no effect in the mini version)


findshowbasis

public boolean findshowbasis()
Read paramter showbasis. showbasis decides if the translation basis vectors shoud be drawn. true is on false is off Default value is false.


findzoom

public boolean findzoom()
Read paramter showbasis. showbasis decides if the translation basis vectors shoud be drawn. true is on false is off Default value is false.