com.partnersoft.geometry.xy
Class XyGridCell
java.lang.Object
com.partnersoft.geometry.xy.XyGridCell
- All Implemented Interfaces:
- Immutable
public class XyGridCell
- extends java.lang.Object
- implements Immutable
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
XyGridCell
public XyGridCell(XyGrid grid,
int column,
int row)
toRectangle
public XyRectangle toRectangle()
getSwCorner
public XyPoint getSwCorner()
getNwCorner
public XyPoint getNwCorner()
getSeCorner
public XyPoint getSeCorner()
getNeCorner
public XyPoint getNeCorner()
getCenter
public XyPoint getCenter()
getBounds
public XyBounds getBounds()
getGrid
public XyGrid getGrid()
getColumn
public int getColumn()
getRow
public int getRow()
toLong
public long toLong()
- Encode the column, row coordinate as a single long.
toInt
public int toInt()
- Encode the column, row coordinate as a single int.
hashCode
public int hashCode()
- Overrides:
hashCode in class java.lang.Object
equals
public boolean equals(java.lang.Object nother)
- Overrides:
equals in class java.lang.Object
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object