public class CellInfo extends Rectangle
| Modifier and Type | Field and Description |
|---|---|
int |
cellId
A unique ID for this cell in a file.
|
| Constructor and Description |
|---|
CellInfo() |
CellInfo(CellInfo c) |
CellInfo(java.io.DataInput in)
Loads a cell serialized to the given stream
|
CellInfo(int id,
double x1,
double y1,
double x2,
double y2) |
CellInfo(int id,
Rectangle cellInfo) |
CellInfo(java.lang.String in) |
| Modifier and Type | Method and Description |
|---|---|
CellInfo |
clone()
Returns a clone of this shape
|
int |
compareTo(Shape s)
Comparison is done by lexicographic ordering of attributes
< x1, y1, x2, y2>
|
boolean |
equals(java.lang.Object obj) |
void |
fromText(Text text)
Retrieve information from the given text.
|
int |
hashCode() |
void |
readFields(java.io.DataInput in) |
void |
set(CellInfo c) |
java.lang.String |
toString() |
Text |
toText(Text text)
Store current object as string in the given text appending text already there.
|
void |
write(java.io.DataOutput out) |
buffer, compareTo, contains, contains, contains, contains, distanceTo, draw, draw, expand, getCenterPoint, getHeight, getIntersection, getMaxDistance, getMaxDistanceTo, getMBR, getMinDistance, getMinDistanceTo, getWidth, invalidate, isIntersected, isValid, set, set, translate, unionpublic int cellId
public CellInfo(java.io.DataInput in)
throws java.io.IOException
in - java.io.IOExceptionpublic CellInfo(java.lang.String in)
public CellInfo()
public CellInfo(int id,
double x1,
double y1,
double x2,
double y2)
public CellInfo(int id,
Rectangle cellInfo)
public CellInfo(CellInfo c)
public void set(CellInfo c)
public CellInfo clone()
Shapepublic int hashCode()
hashCode in class java.lang.Objectpublic int compareTo(Shape s)
Rectanglepublic void write(java.io.DataOutput out)
throws java.io.IOException
public void readFields(java.io.DataInput in)
throws java.io.IOException
readFields in class Rectanglejava.io.IOExceptionpublic Text toText(Text text)
TextSerializabletoText in interface TextSerializabletoText in class Rectanglepublic void fromText(Text text)
TextSerializablefromText in interface TextSerializablefromText in class Rectangle