xxl.spatial
Class KPE

java.lang.Object
  |
  +--xxl.spatial.KPE
Direct Known Subclasses:
KPEH

public class KPE
extends java.lang.Object
implements java.lang.Cloneable, java.lang.Comparable, Convertable

A key-pointer-element aggregates an Rectangle and an ID.


Field Summary
 int ID
           
 Rectangle rectangle
           
 
Constructor Summary
KPE(int dim)
           
KPE(KPE k)
           
KPE(Rectangle rectangle, int ID)
           
 
Method Summary
 java.lang.Object clone()
           
 int compareTo(java.lang.Object o)
          Default-ordering useful for plane sweep.
 void read(java.io.DataInput dataInput)
           
 int sizeOf()
           
 java.lang.String toString()
           
 int write(java.io.DataOutput dataOutput)
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

rectangle

public final Rectangle rectangle

ID

public int ID
Constructor Detail

KPE

public KPE(Rectangle rectangle,
           int ID)

KPE

public KPE(KPE k)

KPE

public KPE(int dim)
Method Detail

clone

public java.lang.Object clone()
Overrides:
clone in class java.lang.Object

compareTo

public int compareTo(java.lang.Object o)
Default-ordering useful for plane sweep.
Specified by:
compareTo in interface java.lang.Comparable

read

public void read(java.io.DataInput dataInput)
          throws java.io.IOException
Specified by:
read in interface Convertable

write

public int write(java.io.DataOutput dataOutput)
          throws java.io.IOException
Specified by:
write in interface Convertable

sizeOf

public int sizeOf()
Specified by:
sizeOf in interface Convertable

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object