|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ITableHeaderRenderer
Interface describing a header renderer for the jaret table.
Method Summary | |
---|---|
boolean |
disableClipping()
If this method returns true the gc for drawing will not be limited by a clipping rect. |
void |
dispose()
Dispose any resources allocated. |
void |
draw(org.eclipse.swt.graphics.GC gc,
org.eclipse.swt.graphics.Rectangle rectangle,
IColumn column,
int sortingPosition,
boolean sortDir,
boolean printing)
Draw a table header. |
ITableHeaderRenderer |
getPrintRenderer(org.eclipse.swt.printing.Printer printer)
Create a table header renderer for printing. |
boolean |
isSortingClick(org.eclipse.swt.graphics.Rectangle drawingArea,
IColumn column,
int x,
int y)
Check whether a click hits the area reserved for sorting indication. |
Method Detail |
---|
void draw(org.eclipse.swt.graphics.GC gc, org.eclipse.swt.graphics.Rectangle rectangle, IColumn column, int sortingPosition, boolean sortDir, boolean printing)
gc
- GC to be usedrectangle
- rectangle to draw withincolumn
- the column for which the header is painted.sortingPosition
- if the column is part of the sorting set this indicates the sorting order position. A
value of 0 means no sorting.sortDir
- if sorting this indicates the sorting direction. true
means ascending.printing
- true if the draw operation is for a printerboolean disableClipping()
true
the gc for drawing will not be limited by a clipping rect. This is
useful for slanted header texts but should be used with the appropriate care.
boolean isSortingClick(org.eclipse.swt.graphics.Rectangle drawingArea, IColumn column, int x, int y)
drawingArea
- drawing aea of the headercolumn
- columnx
- x coordinat of the clicky
- y coordinate of the click
ITableHeaderRenderer getPrintRenderer(org.eclipse.swt.printing.Printer printer)
printer
- the printer that will be used
void dispose()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |