|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgui.LabeledEdge
public class LabeledEdge
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 |
---|
public LabeledPoint A
public LabeledPoint B
public java.lang.String name
"none"
means an unlabeled edge
public java.lang.String nameind
"none"
means an unindexed
edge
public java.awt.Color colour
int iff
0
means an ordinary edge
2
represents a reciprocal base vector 3
represents a symmetry edge, 4
represents a basis vector
Constructor Detail |
---|
public LabeledEdge(Vektor A, Vektor B)
A
- start point of the edgeB
- end point of the edgepublic LabeledEdge(Vektor A, Vektor B, java.lang.String name)
A
- start point of the edgeB
- end point of the edgename
- Label of the edge, you can add an index by using name_indexpublic LabeledEdge(Vektor A, Vektor B, java.awt.Color colour)
A
- start point of the edgeB
- end point of the edgecolour
- Colour of the edgepublic LabeledEdge(Vektor A, Vektor B, java.lang.String name, java.awt.Color colour)
A
- start point of the edgeB
- end point of the edgename
- Label of the edge, you can add an index by using name_indexcolour
- Colour of the edgeMethod Detail |
---|
public void setiff(int kenn)
public int getiff()
void distinguishNameIndex(java.lang.String givenname)
_
" in a String and assumes, that the part in
front is the label, and the part behind is the index.
givenname
- the label and index given to the edge
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |