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, union
public int cellId
public CellInfo(java.io.DataInput in) throws java.io.IOException
in
- java.io.IOException
public 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()
Shape
public int hashCode()
hashCode
in class java.lang.Object
public int compareTo(Shape s)
Rectangle
public void write(java.io.DataOutput out) throws java.io.IOException
public void readFields(java.io.DataInput in) throws java.io.IOException
readFields
in class Rectangle
java.io.IOException
public Text toText(Text text)
TextSerializable
toText
in interface TextSerializable
toText
in class Rectangle
public void fromText(Text text)
TextSerializable
fromText
in interface TextSerializable
fromText
in class Rectangle