Class GridCellImpl
- java.lang.Object
-
- org.eclipse.nebula.paperclips.core.grid.internal.GridCellImpl
-
-
Field Summary
Fields Modifier and Type Field Description private intcolspanprivate inthAlignmentprivate Printtargetprivate intvAlignment
-
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
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private intcheckColspan(int colspan)private static intcheckHorizontalAlignment(int hAlignment)private static intcheckVerticalAlignment(int vAlignment)booleanequals(java.lang.Object obj)org.eclipse.swt.graphics.PointgetAlignment()Returns a Point representing the horizontal and vertical alignment applied to the cell's content.intgetColSpan()Returns the number of columns this cell spans across.PrintgetContent()Returns the content print of the cell.intgetHorizontalAlignment()Returns the horizontal alignment applied to the cell content.intgetVerticalAlignment()Returns the vertical alignment applied to the cell content.inthashCode()GridCellIteratoriterator(org.eclipse.swt.graphics.Device device, org.eclipse.swt.graphics.GC gc)
-
-
-
Field Detail
-
hAlignment
private final int hAlignment
-
vAlignment
private final int vAlignment
-
target
private final Print target
-
colspan
private final int colspan
-
-
Constructor Detail
-
GridCellImpl
public 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.- 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 Detail
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
getAlignment
public org.eclipse.swt.graphics.Point getAlignment()
Description copied from interface:GridCellReturns a Point representing the horizontal and vertical alignment applied to the cell's content.- Specified by:
getAlignmentin interfaceGridCell- Returns:
- a Point representing the horizontal and vertical alignment applied to the cell's content.
-
getHorizontalAlignment
public int getHorizontalAlignment()
Description copied from interface:GridCellReturns the horizontal alignment applied to the cell content.- Specified by:
getHorizontalAlignmentin interfaceGridCell- Returns:
- the horizontal alignment applied to the cell content.
-
getVerticalAlignment
public int getVerticalAlignment()
Description copied from interface:GridCellReturns the vertical alignment applied to the cell content.- Specified by:
getVerticalAlignmentin interfaceGridCell- Returns:
- the vertical alignment applied to the cell content.
-
getContent
public Print getContent()
Description copied from interface:GridCellReturns the content print of the cell.- Specified by:
getContentin interfaceGridCell- Returns:
- the content print of the cell.
-
getColSpan
public int getColSpan()
Description copied from interface:GridCellReturns the number of columns this cell spans across.- Specified by:
getColSpanin interfaceGridCell- Returns:
- the number of columns this cell spans across.
-
checkHorizontalAlignment
private static int checkHorizontalAlignment(int hAlignment)
-
checkVerticalAlignment
private static int checkVerticalAlignment(int vAlignment)
-
checkColspan
private int checkColspan(int colspan)
-
iterator
public GridCellIterator iterator(org.eclipse.swt.graphics.Device device, org.eclipse.swt.graphics.GC gc)
-
-