|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcrystals.AbstractCrystal
public abstract class AbstractCrystal
Contains the functions necessary to communicate with the gui classes. All lattice classes should inherit from this class. As the Constructor of this class has no input argument, all children of this class do not necessarily have an constructor.
Field Summary | |
---|---|
(package private) boolean |
bMessagebox
|
(package private) java.awt.Color |
darkgreen
Color darkgreen |
(package private) LabeledEdge[] |
ledges
List of edges to draw |
(package private) LabeledPoint[] |
lvertices
List of points to draw |
(package private) int |
numberofledges
Number of edges to draw |
(package private) int |
numberoflvertices
Number of points to draw |
Constructor Summary | |
---|---|
AbstractCrystal()
Constructor of this Class. |
Method Summary | |
---|---|
(package private) void |
addBase(Vektor vek,
java.lang.String name)
Adds an Edge, that shall represent a base vector of the reciprocal cell. |
(package private) void |
addBasis(Vektor vek,
java.lang.String name)
Adds an Edge, that shall represent a basis translation vector of the bravais lattice. |
(package private) void |
addEdge(Vektor veka,
Vektor vekb)
Adds an edge to the list of edges to draw |
(package private) void |
addEdge(Vektor veka,
Vektor vekb,
java.awt.Color farbe)
Adds an coloured edge to the list of edges. |
private void |
addEdge(Vektor veka,
Vektor vekb,
java.awt.Color farbe,
int iff)
Adds a not labeled edge, with an additional distinction. |
(package private) void |
addEdge(Vektor veka,
Vektor vekb,
java.lang.String name)
Adds an labeled edge to the list of edges. |
(package private) void |
addEdge(Vektor veka,
Vektor vekb,
java.lang.String name,
java.awt.Color farbe)
Adds an labeled and coloured edge to the list, to be drawn later. |
private void |
addEdge(Vektor veka,
Vektor vekb,
java.lang.String name,
java.awt.Color farbe,
int iff)
Adds a labeled edge, with an additional distinction. |
(package private) void |
addPoint(Vektor vek)
Adds a point to the list of points to draw. |
(package private) void |
addPoint(Vektor vek,
java.awt.Color farbe)
Adds a coloured point to the list of points. |
private void |
addPoint(Vektor vek,
java.awt.Color farbe,
int iff)
Adds a Point without a label, but an additional distinction. |
(package private) void |
addPoint(Vektor vek,
java.lang.String name)
Adds a point with a name to the list of points. |
(package private) void |
addPoint(Vektor vek,
java.lang.String name,
java.awt.Color farbe)
Adds a point with name and colour. |
private void |
addPoint(Vektor vek,
java.lang.String name,
java.awt.Color farbe,
int iff)
Adds a Point to the list of points to draw, with an additional distinction. |
(package private) void |
addSymmetricEdge(Vektor vek)
Adds an unlabeled Point, that shall represent a symmetry point. |
(package private) void |
addSymmetricEdge(Vektor veka,
Vektor vekb)
Adds an Edge, that shall represent a symmetry line of the reciprocal cell. |
(package private) void |
addSymmetricEdge(Vektor veka,
Vektor vekb,
java.lang.String name)
Adds an Edge, that shall represent a symmetry line of the reciprocal cell. |
(package private) void |
addSymmetricPoint(Vektor vek,
java.lang.String name)
Adds a labeled Point, that shall represent a symmetry point. |
abstract void |
calculate(Parameter param)
Calculates the lattice points. |
abstract double[] |
getCrystaldefault()
Returns the default lattice parameter |
abstract java.lang.String |
getCrystalID()
Returns a short name for this lattice. |
abstract GuiModel |
getguiModel()
Initializes and returns a guiModel appropriate for the lattice. |
LabeledEdge[] |
getLabeledEdges()
Returns a list of LabeledEdges, which have to be calculated earlier. |
LabeledPoint[] |
getLabeledVertices()
Returns a list of LabeledVertices, which have to be calculated earlier. |
abstract java.lang.String |
getName()
Returns the Name of the Lattice. |
abstract java.lang.String |
getThumbnailID()
Every lattice has its own icon |
void |
precalculating()
Resets the counters for points and edges to zero |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
LabeledPoint[] lvertices
LabeledEdge[] ledges
int numberoflvertices
int numberofledges
java.awt.Color darkgreen
boolean bMessagebox
Constructor Detail |
---|
public AbstractCrystal()
Method Detail |
---|
public abstract java.lang.String getName()
public abstract double[] getCrystaldefault()
public abstract java.lang.String getThumbnailID()
public abstract java.lang.String getCrystalID()
ParamTest
to ask for the lattice. The same name is used as
parameter for the applet.
public abstract void calculate(Parameter param)
param
to calculate the appropriate lattice points in
the reciprocal lattice space. The results are stored in the public Arrays
lvertices
and ledges
. Every subclass should do this
differently.
param
- All necessery parameters, especially the lattice constants.public abstract GuiModel getguiModel()
public LabeledPoint[] getLabeledVertices()
public LabeledEdge[] getLabeledEdges()
public void precalculating()
void addPoint(Vektor vek)
DrawPanel
as a small square.
vek
- Pointing to the point.void addPoint(Vektor vek, java.lang.String name)
"none"
, the behavior is like
addPoint(Vektor)
.
vek
- Pointing to the point.name
- Name of the point. For example "A" or
"?"
, displaying a Gamma.
void addPoint(Vektor vek, java.awt.Color farbe)
addPoint(Vektor)
.
vek
- Pointing to the point.farbe
- Colour of the Point (or the name of the point.)void addPoint(Vektor vek, java.lang.String name, java.awt.Color farbe)
vek
- Coordinates of the pointname
- Label of the pointfarbe
- Colour of the pointvoid addEdge(Vektor veka, Vektor vekb)
veka
- Starting point of the edgevekb
- Ending point of the edgevoid addEdge(Vektor veka, Vektor vekb, java.lang.String name)
veka
- Starting point of the edge.vekb
- Ending point of the edgename
- Label of the edge.void addEdge(Vektor veka, Vektor vekb, java.awt.Color farbe)
addEdge(Vektor, Vektor)
, but now a colour for the line can be
specified.
veka
- Starting point of the edgevekb
- Ending point of the edgefarbe
- Colour of the line representing the edgevoid addEdge(Vektor veka, Vektor vekb, java.lang.String name, java.awt.Color farbe)
veka
- Starting point of the edge.vekb
- Ending point of the edge.name
- Label of the edge.farbe
- Colour ot line and label representing the edge.private void addEdge(Vektor veka, Vektor vekb, java.lang.String name, java.awt.Color farbe, int iff)
veka
- Starting point of the edge.vekb
- Ending point of the edge.name
- Label of the edge.farbe
- Colour of the edge.iff
- Characterizing the type of edge (0 is a usual edge, 2 an axe,
3 a symmetric edge)private void addEdge(Vektor veka, Vektor vekb, java.awt.Color farbe, int iff)
veka
- Starting point of the edge.vekb
- Ending point of the edge.farbe
- Colour of the edge.iff
- Characterizing the type of edge (0 is a usual edge, 2 an axe,
3 a symmetric edge)void addBase(Vektor vek, java.lang.String name)
vek
- End point of the base vector. (Starting point is always
(0,0,0))name
- Label of the base vector.void addSymmetricEdge(Vektor veka, Vektor vekb, java.lang.String name)
veka
- Start point of the symmetry line.vekb
- End point of the symmetry line.name
- Label of the symmetry line.void addSymmetricEdge(Vektor veka, Vektor vekb)
veka
- Start point of the symmetry line.vekb
- End point of the symmetry line.private void addPoint(Vektor vek, java.lang.String name, java.awt.Color farbe, int iff)
vek
- Coordinates of the point in 3D space.name
- Label of the point.farbe
- Colour of the pointiff
- distinction (0: usual point, 3: symmetry point)private void addPoint(Vektor vek, java.awt.Color farbe, int iff)
vek
- Coordinates of the point in 3D space.farbe
- Label of the point.iff
- distinction (0: usual point, 3: symmetry point)void addSymmetricPoint(Vektor vek, java.lang.String name)
vek
- Coordinates of the point in 3D-spacename
- Label of the point.void addSymmetricEdge(Vektor vek)
vek
- Coordinates of the point in 3D-spacevoid addBasis(Vektor vek, java.lang.String name)
vek
- End point of the base vector. (Starting point is always
(0,0,0))name
- Label of the base vector.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |