at.tuwien.ifs.somtoolbox.visualization.thematicmap
Class Segment

java.lang.Object
  extended by at.tuwien.ifs.somtoolbox.visualization.thematicmap.Segment

public class Segment
extends Object

Version:
$Id: Segment.java 3358 2010-02-11 14:35:07Z mayer $
Author:
Taha Abdel Aziz

Field Summary
 edu.cornell.cs.voronoi.IPnt end1
           
 edu.cornell.cs.voronoi.IPnt end2
           
 SOMRegion neighborRegion
           
 
Constructor Summary
Segment(edu.cornell.cs.voronoi.IPnt end1, edu.cornell.cs.voronoi.IPnt end2)
          Creates a new instance of Segment
 
Method Summary
 void draw(Graphics2D g)
           
 void flip()
           
 double getLength()
           
 edu.cornell.cs.voronoi.Pnt getMidPoint()
           
 edu.cornell.cs.voronoi.IPnt getPointFrom(int from, double distance)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

end1

public edu.cornell.cs.voronoi.IPnt end1

end2

public edu.cornell.cs.voronoi.IPnt end2

neighborRegion

public SOMRegion neighborRegion
Constructor Detail

Segment

public Segment(edu.cornell.cs.voronoi.IPnt end1,
               edu.cornell.cs.voronoi.IPnt end2)
Creates a new instance of Segment

Method Detail

draw

public void draw(Graphics2D g)

toString

public String toString()
Overrides:
toString in class Object

flip

public void flip()

getMidPoint

public edu.cornell.cs.voronoi.Pnt getMidPoint()

getPointFrom

public edu.cornell.cs.voronoi.IPnt getPointFrom(int from,
                                                double distance)

getLength

public double getLength()