|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgui.LabeledPoint
public class LabeledPoint
Defining a Point in 3D-space. Stored are the three coordinates, name and color of the point and an integer as classification.
Field Summary | |
---|---|
java.awt.Color |
colour
Color of the point and its label. |
(package private) int |
iff
Classification of the point. |
java.lang.String |
name
Label of the point. |
double |
x
Coordinate of the point |
double |
y
Coordinate of the point |
double |
z
Coordinate of the point |
Constructor Summary | |
---|---|
LabeledPoint(Vektor vek)
Creates a point by a given vector, with no label, and default black color. |
|
LabeledPoint(Vektor vek,
java.awt.Color colour)
Creates a point, without label, but with a certain color |
|
LabeledPoint(Vektor vek,
java.lang.String name)
Creates a point by a given vector with a certain label. |
|
LabeledPoint(Vektor vek,
java.lang.String name,
java.awt.Color colour)
Creates a point by a given vector, with a certain label and color. |
Method Summary | |
---|---|
int |
getiff()
Gets the characterisation of the point as integer |
void |
setiff(int kenn)
Sets the characterisation of the point |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public double x
public double y
public double z
public java.lang.String name
"none"
means an unnamed point
public java.awt.Color colour
int iff
0
is a standard point
3
is a symmetry point, by default drawn in green
Constructor Detail |
---|
public LabeledPoint(Vektor vek)
public LabeledPoint(Vektor vek, java.lang.String name)
vek
- a vectorname
- label of the pointpublic LabeledPoint(Vektor vek, java.lang.String name, java.awt.Color colour)
vek
- a vectorname
- label of the pointcolour
- color of the pointpublic LabeledPoint(Vektor vek, java.awt.Color colour)
vek
- a vectorcolour
- colour of the pointMethod Detail |
---|
public void setiff(int kenn)
public int getiff()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |