Class ComPoint

java.lang.Object
  extended by ComPoint
All Implemented Interfaces:
java.lang.Comparable

public class ComPoint
extends java.lang.Object
implements java.lang.Comparable

This class allows to sort component segment data.


Constructor Summary
ComPoint(int cip_deb, int cip_fin, int cicol)
          Construct a new ComPoint.
 
Method Summary
 int compareTo(java.lang.Object ccp)
          Compare Ip_fin-Ip_deb.
 int getIcol()
          Get Icol.
 int getIp_deb()
          Get Ip_deb.
 int getIp_fin()
          Get Ip_fin.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ComPoint

public ComPoint(int cip_deb,
                int cip_fin,
                int cicol)
Construct a new ComPoint.

Parameters:
cip_deb - Ip_deb
cip_fin - Ip_fin
cicol - color index
Method Detail

getIp_deb

public int getIp_deb()
Get Ip_deb.


getIp_fin

public int getIp_fin()
Get Ip_fin.


getIcol

public int getIcol()
Get Icol.


compareTo

public int compareTo(java.lang.Object ccp)
Compare Ip_fin-Ip_deb.

Specified by:
compareTo in interface java.lang.Comparable
Parameters:
ccp - the ComPoint to compare to