|
ReportCat 1.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
The TableCellDrawer is used to render the cells of a table. It is called drawer because it does not follow exactly the
concept of java renderers. Its rather related to a Drawer.
| Method Summary | |
void |
draw(java.awt.Graphics g,
java.lang.Object value,
java.lang.Object type,
int x,
int y,
int width,
int height,
int rowIndex,
int columnIndex)
Draws the given value to the graphics within the given bounds. |
int |
getMinimumWidth(java.awt.Graphics g,
java.lang.Object value,
java.lang.Object type,
int rowIndex,
int columnIndex)
Returns the minimum width of this cell drawer. |
int |
getPreferredHeight(java.awt.Graphics g,
java.lang.Object value,
java.lang.Object type,
int rowIndex,
int columnIndex,
int availableWidth)
Returns the preferred height of this cell drawer. |
int |
getPreferredWidth(java.awt.Graphics g,
java.lang.Object value,
java.lang.Object type,
int rowIndex,
int columnIndex)
Returns the preferred width of this cell drawer. |
| Method Detail |
public int getMinimumWidth(java.awt.Graphics g,
java.lang.Object value,
java.lang.Object type,
int rowIndex,
int columnIndex)
g - The relevant Graphics object.value - The data value retrieved from the model.type - The data type retrieved from the model.rowIndex - The absolute index of the row. For a header cell, this value is defined as -1,
for a footer cell, it is Integer.MAX_VALUE.columnIndex - The index of the column.
public int getPreferredWidth(java.awt.Graphics g,
java.lang.Object value,
java.lang.Object type,
int rowIndex,
int columnIndex)
g - The relevant Graphics object.value - The data value retrieved from the model.type - The data type retrieved from the model.rowIndex - The absolute index of the row. For a header cell, this value is defined as -1,
for a footer cell, it is Integer.MAX_VALUE.columnIndex - The index of the column.
public int getPreferredHeight(java.awt.Graphics g,
java.lang.Object value,
java.lang.Object type,
int rowIndex,
int columnIndex,
int availableWidth)
g - The relevant Graphics object.value - The data value retrieved from the model.type - The data type retrieved from the model.rowIndex - The absolute index of the row. For a header cell, this value is defined as -1,
for a footer cell, it is Integer.MAX_VALUE.columnIndex - The index of the column.availableWidth - The final available width of the cell.
public void draw(java.awt.Graphics g,
java.lang.Object value,
java.lang.Object type,
int x,
int y,
int width,
int height,
int rowIndex,
int columnIndex)
g - The relevant graphics object to paint on.value - The data value retrieved from the model.type - The data type retrieved from the model.x - The x coordinate of the upper left corner of the cell.y - The y coordinate of the upper left corner of the cell.width - The width of the cell.height - The height of the cell.rowIndex - The absolute index of the row. For a header cell, this value is defined as -1, for a footer cell, it is Integer.MAX_VALUE.columnIndex - The index of the column.
|
ReportCat 1.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||