public class SWTGridCell extends AbstractGridCell<AbstractSWTRenderer<?>>
SWTGridCell
has a row, a column and a renderer it is rendered by.AbstractGridCell.Alignment
Constructor and Description |
---|
SWTGridCell(int row,
int column,
AbstractSWTRenderer<? extends VElement> renderer)
Default constructor to create a grid cell.
|
Modifier and Type | Method and Description |
---|---|
org.eclipse.swt.graphics.Point |
getPreferredSize()
Returns the preferred size of this cell.
|
void |
setPreferredSize(int width,
int height)
Sets the preferred size of this cell.
|
void |
setPreferredSize(org.eclipse.swt.graphics.Point preferredSize)
Sets the preferred size of this cell.
|
equals, getColumn, getHorizontalAlignment, getHorizontalSpan, getRenderer, getRow, getVerticalAlignment, hashCode, isHorizontalFill, isHorizontalGrab, isVerticalFill, isVerticalGrab, setHorizontalAlignment, setHorizontalFill, setHorizontalGrab, setHorizontalSpan, setRenderer, setVerticalAlignment, setVerticalFill, setVerticalGrab
public SWTGridCell(int row, int column, AbstractSWTRenderer<? extends VElement> renderer)
row
- the row of the cellcolumn
- the column of the cellrenderer
- the AbstractSWTRenderer
that renders the cellpublic org.eclipse.swt.graphics.Point getPreferredSize()
null
(default), the size is
computed automatically.null
public void setPreferredSize(org.eclipse.swt.graphics.Point preferredSize)
null
(default), the size is computed automatically.preferredSize
- the preferredSize to set (width, height)public void setPreferredSize(int width, int height)
null
(default), the size is computed automatically.width
- the preferred widthheight
- the preferred heightCopyright © 2018. All rights reserved.