public class GridInfo extends Rectangle
Constructor and Description |
---|
GridInfo() |
GridInfo(double x1,
double y1,
double x2,
double y2) |
Modifier and Type | Method and Description |
---|---|
void |
calculateCellDimensions(int numCells) |
void |
calculateCellDimensions(long totalFileSize,
long blockSize) |
boolean |
equals(java.lang.Object obj) |
void |
fromText(Text text)
Retrieve information from the given text.
|
CellInfo[] |
getAllCells() |
double |
getAverageCellHeight() |
double |
getAverageCellWidth() |
CellInfo |
getCell(int cellId) |
int |
getCellId(int column,
int row) |
java.awt.Rectangle |
getOverlappingCells(Rectangle rect) |
void |
readFields(java.io.DataInput in) |
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, clone, compareTo, 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 GridInfo()
public GridInfo(double x1, double y1, double x2, double y2)
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 double getAverageCellHeight()
public double getAverageCellWidth()
public void calculateCellDimensions(long totalFileSize, long blockSize)
public void calculateCellDimensions(int numCells)
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
public CellInfo[] getAllCells()
public java.awt.Rectangle getOverlappingCells(Rectangle rect)
public CellInfo getCell(int cellId)
public int getCellId(int column, int row)