gui
Class LabeledPoint

java.lang.Object
  extended by gui.LabeledPoint

public class LabeledPoint
extends java.lang.Object

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

x

public double x
Coordinate of the point


y

public double y
Coordinate of the point


z

public double z
Coordinate of the point


name

public java.lang.String name
Label of the point. "none" means an unnamed point


colour

public java.awt.Color colour
Color of the point and its label.


iff

int iff
Classification of the point. 0 is a standard point 3 is a symmetry point, by default drawn in green

Constructor Detail

LabeledPoint

public LabeledPoint(Vektor vek)
Creates a point by a given vector, with no label, and default black color.


LabeledPoint

public LabeledPoint(Vektor vek,
                    java.lang.String name)
Creates a point by a given vector with a certain label.

Parameters:
vek - a vector
name - label of the point

LabeledPoint

public LabeledPoint(Vektor vek,
                    java.lang.String name,
                    java.awt.Color colour)
Creates a point by a given vector, with a certain label and color.

Parameters:
vek - a vector
name - label of the point
colour - color of the point

LabeledPoint

public LabeledPoint(Vektor vek,
                    java.awt.Color colour)
Creates a point, without label, but with a certain color

Parameters:
vek - a vector
colour - colour of the point
Method Detail

setiff

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


getiff

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