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

java.lang.Object
  extended by at.tuwien.ifs.somtoolbox.visualization.thematicmap.SegDistComperator
All Implemented Interfaces:
Comparator<Grid>

public class SegDistComperator
extends Object
implements Comparator<Grid>

Version:
$Id: SegDistComperator.java 3883 2010-11-02 17:13:23Z frank $
Author:
Taha Abdel Aziz

Field Summary
(package private)  Line2D line
           
(package private)  Point2D pnt1
           
(package private)  Point2D pnt2
           
(package private)  Segment segment
           
(package private)  double weight1
           
(package private)  double weight2
           
 
Constructor Summary
SegDistComperator(Segment segment, double weight1, double weight2)
          Creates a new instance of SegDistComperator
 
Method Summary
 int compare(Grid grid1, Grid grid2)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.util.Comparator
equals
 

Field Detail

segment

Segment segment

line

Line2D line

pnt1

Point2D pnt1

pnt2

Point2D pnt2

weight1

double weight1

weight2

double weight2
Constructor Detail

SegDistComperator

public SegDistComperator(Segment segment,
                         double weight1,
                         double weight2)
Creates a new instance of SegDistComperator

Method Detail

compare

public int compare(Grid grid1,
                   Grid grid2)
Specified by:
compare in interface Comparator<Grid>