at.tuwien.ifs.somtoolbox.visualization.thematicmap
Class SegDistComperator
java.lang.Object
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
Constructor Summary |
SegDistComperator(Segment segment,
double weight1,
double weight2)
Creates a new instance of SegDistComperator |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
segment
Segment segment
line
Line2D line
pnt1
Point2D pnt1
pnt2
Point2D pnt2
weight1
double weight1
weight2
double weight2
SegDistComperator
public SegDistComperator(Segment segment,
double weight1,
double weight2)
- Creates a new instance of SegDistComperator
compare
public int compare(Grid grid1,
Grid grid2)
- Specified by:
compare
in interface Comparator<Grid>