gui
Class LabeledEdge

java.lang.Object
  extended by gui.LabeledEdge

public class LabeledEdge
extends java.lang.Object

Defining an Edge in 3D-space. Stored are the beginning and end point, name and color of the edge and an integer as classification.


Field Summary
 LabeledPoint A
          Start and end point of the edge
 LabeledPoint B
          Start and end point of the edge
 java.awt.Color colour
          Color of the edge.
(package private)  int iff
          Characterisation of the edge.
 java.lang.String name
          Label of the edge.
 java.lang.String nameind
          Index of the label of the edge.
 
Constructor Summary
LabeledEdge(Vektor A, Vektor B)
          Edge defined by two points
LabeledEdge(Vektor A, Vektor B, java.awt.Color colour)
          A coloured Edge
LabeledEdge(Vektor A, Vektor B, java.lang.String name)
          A labelled Edge
LabeledEdge(Vektor A, Vektor B, java.lang.String name, java.awt.Color colour)
          A coloured and labelled edge.
 
Method Summary
(package private)  void distinguishNameIndex(java.lang.String givenname)
          Identifies "_" in a String and assumes, that the part in front is the label, and the part behind is the index.
 int getiff()
          Gets the characterisation of the edge as integer
 void setiff(int kenn)
          Sets the characterisation of the edge
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

A

public LabeledPoint A
Start and end point of the edge


B

public LabeledPoint B
Start and end point of the edge


name

public java.lang.String name
Label of the edge. "none" means an unlabeled edge


nameind

public java.lang.String nameind
Index of the label of the edge. "none" means an unindexed edge


colour

public java.awt.Color colour
Color of the edge. By default, ordinary edges are drawn in black, axes in blue, the reciprocal base vectors in red, and symmetry edges in green.


iff

int iff
Characterisation of the edge. 0 means an ordinary edge 2 represents a reciprocal base vector 3 represents a symmetry edge, 4 represents a basis vector

Constructor Detail

LabeledEdge

public LabeledEdge(Vektor A,
                   Vektor B)
Edge defined by two points

Parameters:
A - start point of the edge
B - end point of the edge

LabeledEdge

public LabeledEdge(Vektor A,
                   Vektor B,
                   java.lang.String name)
A labelled Edge

Parameters:
A - start point of the edge
B - end point of the edge
name - Label of the edge, you can add an index by using name_index

LabeledEdge

public LabeledEdge(Vektor A,
                   Vektor B,
                   java.awt.Color colour)
A coloured Edge

Parameters:
A - start point of the edge
B - end point of the edge
colour - Colour of the edge

LabeledEdge

public LabeledEdge(Vektor A,
                   Vektor B,
                   java.lang.String name,
                   java.awt.Color colour)
A coloured and labelled edge.

Parameters:
A - start point of the edge
B - end point of the edge
name - Label of the edge, you can add an index by using name_index
colour - Colour of the edge
Method Detail

setiff

public void setiff(int kenn)
Sets the characterisation of the edge


getiff

public int getiff()
Gets the characterisation of the edge as integer


distinguishNameIndex

void distinguishNameIndex(java.lang.String givenname)
Identifies "_" in a String and assumes, that the part in front is the label, and the part behind is the index.

Parameters:
givenname - the label and index given to the edge