|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ICellRenderer
Interface for a cell renderer for a jaret table.
| Method Summary | |
|---|---|
ICellRenderer |
createPrintRenderer(org.eclipse.swt.printing.Printer printer)
Create a renderer connfigured for printing. |
void |
dispose()
If there are resources to free - this is the place. |
void |
draw(org.eclipse.swt.graphics.GC gc,
JaretTable jaretTable,
ICellStyle cellStyle,
org.eclipse.swt.graphics.Rectangle drawingArea,
IRow row,
IColumn column,
boolean drawFocus,
boolean selected,
boolean printing)
Draw a single cell. |
int |
getPreferredHeight(org.eclipse.swt.graphics.GC gc,
ICellStyle cellStyle,
int width,
IRow row,
IColumn column)
Calculate the preferred height of a specific cell. |
int |
getPreferredWidth(java.util.List<IRow> rows,
IColumn column)
Calculate the preferred width for the column. |
java.lang.String |
getTooltip(JaretTable jaretTable,
org.eclipse.swt.graphics.Rectangle drawingArea,
IRow row,
IColumn column,
int x,
int y)
Provide a tooltip text for display. |
| Method Detail |
|---|
void draw(org.eclipse.swt.graphics.GC gc,
JaretTable jaretTable,
ICellStyle cellStyle,
org.eclipse.swt.graphics.Rectangle drawingArea,
IRow row,
IColumn column,
boolean drawFocus,
boolean selected,
boolean printing)
gc - GC to paint onjaretTable - table the rendering is forcellStyle - style of the celldrawingArea - rectangle to draw withinrow - row of the cell to paintcolumn - column of the cell to paintdrawFocus - true if a focus mark should be drawnselected - true if the cell is currently selectedprinting - true if the render operation is for a printer
int getPreferredWidth(java.util.List<IRow> rows,
IColumn column)
rows - the rows currently displayed by the tablecolumn - the column for which the preferred width is to be calculated
int getPreferredHeight(org.eclipse.swt.graphics.GC gc,
ICellStyle cellStyle,
int width,
IRow row,
IColumn column)
gc - GC that will usedcellStyle - cell style of the cellwidth - width of the column (thus of the cell)row - rowcolumn - column
java.lang.String getTooltip(JaretTable jaretTable,
org.eclipse.swt.graphics.Rectangle drawingArea,
IRow row,
IColumn column,
int x,
int y)
jaretTable - table that is askingdrawingArea - area of the cell renderingrow - rowcolumn - columnx - mouse x coordinate (absolute within drawing area)y - mouse y coordinate (abs within drawing area)
null if no tooltip is to be shownICellRenderer createPrintRenderer(org.eclipse.swt.printing.Printer printer)
printer - printer to use
void dispose()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||