|
JIDE 3.5.15 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface TableHeaderCellDecorator
TableHeaderCellDecorator provides a way for users to paint over the margin of any table header's cells.
You can use it on any table headers that is a SortableTableHeader. You just need to CellStyleTableHeader.addCellDecorator(TableHeaderCellDecorator) to add your own cell decorator. The added order of
the cell decorator matters. The first cell decorator that is added will paint first. Because each cell decorator will
reserve a margin from the cell rect for its painting, the next cell decorator will get a smaller cell rect.
| Method Summary | |
|---|---|
Insets |
getInsets(Graphics g,
JTableHeader header,
int columnIndex,
Rectangle cellRect)
Gets the margin insets where this cell decorator will paint in. |
void |
paint(Graphics g,
JTableHeader header,
int columnIndex,
Rectangle cellRect,
boolean mouseOverPaintArea)
Paints the table header cell. |
| Method Detail |
|---|
Insets getInsets(Graphics g,
JTableHeader header,
int columnIndex,
Rectangle cellRect)
g - the Graphics instanceheader - the table headercolumnIndex - the view column index to be paintedcellRect - the original cell rectangle for the column
void paint(Graphics g,
JTableHeader header,
int columnIndex,
Rectangle cellRect,
boolean mouseOverPaintArea)
getInsets(java.awt.Graphics, javax.swing.table.JTableHeader,
int, java.awt.Rectangle), i.e., paint only in the area as specified in the insets. You do need to consider both
RTL and LTR orientations in your code when doing the painting.
g - the Graphics instanceheader - the table headercolumnIndex - the view column index to be paintedcellRect - the original cell rectangle for the columnmouseOverPaintArea - the flag indicating if the mouse is over the paint area of this cell decorator
|
JIDE 3.5.15 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||