Class GridCellImpl
java.lang.Object
org.eclipse.nebula.paperclips.core.grid.internal.GridCellImpl
- All Implemented Interfaces:
GridCell
public class GridCellImpl extends java.lang.Object implements GridCell
Instances of this class represent a single cell in a GridPrint.
-
Constructor Summary
Constructors Constructor Description GridCellImpl(int hAlignment, int vAlignment, Print target, int colspan)
This constructor is only here for compatibility reasons and is not intented to be used by clients. -
Method Summary
Modifier and Type Method Description 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()
GridCellIterator
iterator(org.eclipse.swt.graphics.Device device, org.eclipse.swt.graphics.GC gc)
-
Constructor Details
-
GridCellImpl
This constructor is only here for compatibility reasons and is not intented to be used by clients.- Parameters:
hAlignment
- the horizontal alignment.vAlignment
- the vertical alignment.target
- the target of the cell.colspan
- the number of columns this cell spans across.
-
-
Method Details
-
hashCode
public int hashCode()- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)- Overrides:
equals
in classjava.lang.Object
-
getAlignment
public org.eclipse.swt.graphics.Point getAlignment()Description copied from interface:GridCell
Returns a Point representing the horizontal and vertical alignment applied to the cell's content.- Specified by:
getAlignment
in interfaceGridCell
- Returns:
- a Point representing the horizontal and vertical alignment applied to the cell's content.
-
getHorizontalAlignment
public int getHorizontalAlignment()Description copied from interface:GridCell
Returns the horizontal alignment applied to the cell content.- Specified by:
getHorizontalAlignment
in interfaceGridCell
- Returns:
- the horizontal alignment applied to the cell content.
-
getVerticalAlignment
public int getVerticalAlignment()Description copied from interface:GridCell
Returns the vertical alignment applied to the cell content.- Specified by:
getVerticalAlignment
in interfaceGridCell
- Returns:
- the vertical alignment applied to the cell content.
-
getContent
Description copied from interface:GridCell
Returns the content print of the cell.- Specified by:
getContent
in interfaceGridCell
- Returns:
- the content print of the cell.
-
getColSpan
public int getColSpan()Description copied from interface:GridCell
Returns the number of columns this cell spans across.- Specified by:
getColSpan
in interfaceGridCell
- Returns:
- the number of columns this cell spans across.
-
iterator
public GridCellIterator iterator(org.eclipse.swt.graphics.Device device, org.eclipse.swt.graphics.GC gc)
-