com.partnersoft.geometry.xy
Class XyGridCell

java.lang.Object
  extended by com.partnersoft.geometry.xy.XyGridCell
All Implemented Interfaces:
Immutable

public class XyGridCell
extends java.lang.Object
implements Immutable


Constructor Summary
XyGridCell(XyGrid grid, int column, int row)
           
 
Method Summary
 boolean equals(java.lang.Object nother)
           
 XyBounds getBounds()
           
 XyPoint getCenter()
           
 int getColumn()
           
 XyGrid getGrid()
           
 XyPoint getNeCorner()
           
 XyPoint getNwCorner()
           
 int getRow()
           
 XyPoint getSeCorner()
           
 XyPoint getSwCorner()
           
 int hashCode()
           
 int toInt()
          Encode the column, row coordinate as a single int.
 long toLong()
          Encode the column, row coordinate as a single long.
 XyRectangle toRectangle()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

XyGridCell

public XyGridCell(XyGrid grid,
                  int column,
                  int row)
Method Detail

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