|
JClass DesktopViews 6.3.0 API Documentation |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--com.klg.jclass.page.PageTableCellInfo
Creates a JClass PageLayout-specific implementation of the JCCellInfo interface so we can pass information from a JCPageTable to a JCCellRenderer to draw table cells.
| Field Summary | |
protected int |
column
The column of the cell in the table |
protected Rectangle |
drawingArea
The drawing area represented by this cell -- set externally |
protected int |
row
The row of the cell in the table |
protected com.klg.jclass.page.JCPageTable |
table
The table to which the cell belongs |
| Fields inherited from interface com.klg.jclass.cell.JCCellInfo |
BOTTOM, CENTER, LEFT, RIGHT, SHOW_ALL, SHOW_HORIZONTAL, SHOW_NONE, SHOW_VERTICAL, TOP |
| Constructor Summary | |
PageTableCellInfo(com.klg.jclass.page.JCPageTable table,
int row,
int column)
Creates a TableCellInfo object for a given table cell. |
|
| Method Summary | |
Color |
getBackground()
Returns the background colour of the cell being displayed. |
Insets |
getBorderInsets()
Returns the Insets object representing the borders for the cell. |
int |
getBorderStyle()
Returns the border style for the cell. |
int |
getClipHints()
Determines whether the renderer should draw some indication if the entire contents of the cell cannot be rendered within the given area. |
Class |
getDataType()
Returns the cell's associated data type. |
Rectangle |
getDrawingArea()
Returns the dimensions of the drawing area for the cell being displayed. |
Font |
getFont()
Returns the font of the cell being displayed. |
Color |
getForeground()
Returns the foreground colour of the cell being displayed. |
int |
getHorizontalAlignment()
Returns the horizontal alignment for the cell being displayed. |
Insets |
getMarginInsets()
Returns the Insets object representing the margins for the cell. |
boolean |
getSelectAll()
Determines whether the editor should select the contents before editing. |
Color |
getSelectedBackground()
Returns the background color of the cell being displayed when the cell is selected. |
Color |
getSelectedForeground()
Returns the foreground color of the cell being displayed when the cell is selected. |
int |
getVerticalAlignment()
Returns the vertical alignment for the cell being displayed. |
boolean |
isEditable()
Determines whether the cell is editable. |
boolean |
isEnabled()
Determines whether the cell is enabled. |
void |
setDrawingArea(Rectangle rect)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected com.klg.jclass.page.JCPageTable table
protected int row
protected int column
protected Rectangle drawingArea
| Constructor Detail |
public PageTableCellInfo(com.klg.jclass.page.JCPageTable table,
int row,
int column)
table - The table the cell belongs torow - The row index of the cell in the tablecolumn - The column index of the cell in the table| Method Detail |
public Color getBackground()
getBackground in interface JCCellInfopublic Color getForeground()
getForeground in interface JCCellInfopublic Color getSelectedBackground()
getSelectedBackground in interface JCCellInfopublic Color getSelectedForeground()
getSelectedForeground in interface JCCellInfopublic Font getFont()
getFont in interface JCCellInfopublic int getHorizontalAlignment()
getHorizontalAlignment in interface JCCellInfopublic int getVerticalAlignment()
getVerticalAlignment in interface JCCellInfopublic Insets getMarginInsets()
This method should be applied to editor components but not to renderer components since the renderer has already been mapped inside the area bounded by the margins and borders.
getMarginInsets in interface JCCellInfoInsets object representing the margins for the cellpublic Insets getBorderInsets()
This method should be ignored by editor and renderer components since the editor is deliberately made bigger than the renderer by this amount.
getBorderInsets in interface JCCellInfoInsets object representing the borders for the cellpublic int getBorderStyle()
getBorderStyle in interface JCCellInfopublic Rectangle getDrawingArea()
getDrawingArea in interface JCCellInfopublic void setDrawingArea(Rectangle rect)
public boolean isEditable()
isEditable in interface JCCellInfopublic boolean isEnabled()
isEnabled in interface JCCellInfopublic boolean getSelectAll()
getSelectAll in interface JCCellInfopublic int getClipHints()
getClipHints in interface JCCellInfopublic Class getDataType()
getDataType in interface JCCellInfo
|
Copyright © 2004 Quest Software Inc.. All rights reserved. |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||