|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectmain.AppletParameters
public class AppletParameters
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 |
---|
MiniLaunch launch
Constructor Detail |
---|
public AppletParameters(MiniLaunch launch)
Method Detail |
---|
public int findSize()
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.)
public java.lang.String findCrystalID()
crystalID
.
crystalID
should be the short name of the lattice,
which shall be shown.
Default value is bcc
.
public double finda()
a
.
a
is the value for the lattice constant a,
Default value is 1
.
public double findb()
b
.
b
is the value for the lattice constant b,
Default value is 1
.
public double findc()
c
.
c
is the value for the lattice constant a,
Default value is 1
.
public double findalpha()
alpha
.
alpha
is the value for the lattice angle alpha,
Default value is 90
.
public double findbeta()
beta
.
beta
is the value for the lattice angle beta,
Default value is 90
.
public double findgamma()
gamma
.
gamma
is the value for the lattice angle gamma,
Default value is 90
.
public int finduserscale()
scale
.
scale
is just a scaling factor of the drawn picture.
Default value is 100
.
public int findelevation()
elevation
.
elevation
is one of the two coordinates,
describing the point of view.
Default value is 12
.
public int findazimuth()
azimuth
.
azimuth
is one of the two coordinates,
describing the point of view.
Default value is 106
.
public boolean findperspective()
perspective
.
perpective
decides of perspective should be used.
true
is on
false
is off
Default value is false
.
public boolean findshowbase()
showbase
.
showbase
decides if the reciprocal base vectors
shoud be drawn.
true
is on
false
is off
Default value is false
.
public boolean findshowaxes()
showbase
.
showbase
decides if the axes
shoud be drawn.
true
is on
false
is off
Default value is true
.
public boolean findshowsymmetry()
showbase
.
showbase
decides if symmetry points and edges
shoud be drawn.
true
is on
false
is off
Default value is true
.
public boolean findselectable()
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)
public boolean findshowbasis()
showbasis
.
showbasis
decides if the translation basis vectors
shoud be drawn.
true
is on
false
is off
Default value is false
.
public boolean findzoom()
showbasis
.
showbasis
decides if the translation basis vectors
shoud be drawn.
true
is on
false
is off
Default value is false
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |