net.sf.paperclips
Class GridCell

java.lang.Object
  extended by net.sf.paperclips.GridCell

public class GridCell
extends java.lang.Object

Instances of this class represent a single cell in a GridPrint.


Method Summary
 boolean equals(java.lang.Object obj)
           
 org.eclipse.swt.graphics.Point getAlignment()
          Returns a Point representing the horizontal and vertical alignment applied to the cell's content.
 int getColSpan()
          Returns the number of columns this cell spans across.
 Print getContent()
          Returns the content print of the cell.
 int getHorizontalAlignment()
          Returns the horizontal alignment applied to the cell content.
 int getVerticalAlignment()
          Returns the vertical alignment applied to the cell content.
 int hashCode()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

getAlignment

public org.eclipse.swt.graphics.Point getAlignment()
Returns a Point representing the horizontal and vertical alignment applied to the cell's content.

Returns:
a Point representing the horizontal and vertical alignment applied to the cell's content.

getHorizontalAlignment

public int getHorizontalAlignment()
Returns the horizontal alignment applied to the cell content.

Returns:
the horizontal alignment applied to the cell content.

getVerticalAlignment

public int getVerticalAlignment()
Returns the vertical alignment applied to the cell content.

Returns:
the vertical alignment applied to the cell content.

getContent

public Print getContent()
Returns the content print of the cell.

Returns:
the content print of the cell.

getColSpan

public int getColSpan()
Returns the number of columns this cell spans across.

Returns:
the number of columns this cell spans across.