|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This interface is used to get values for basic metrical characteristics of the grid component. For example, it is possible to get columns widths or rows heights and so on. The interface is supposed to be used with components that implement decorative elements for the grid component (for example grid caption).
Method Summary | |
java.awt.Insets |
getCellInsets()
Gets the cells insets. |
CellsVisibility |
getCellsVisibility()
Gets the grid visibility. |
int |
getColWidth(int col)
Gets the specified column width. |
int |
getColX(int col)
Gets the x coordinate of the specified grid column. |
int |
getGridCols()
Gets the number of the grid columns. |
int |
getGridRows()
Gets the number of the grid rows. |
int |
getNetGap()
Gets the gap. |
java.awt.Point |
getOrigin()
Returns an origin of the grid component. |
int |
getRowHeight(int row)
Gets the specified row height. |
int |
getRowY(int row)
Gets the y coordinate of the specified grid row. |
void |
setColWidth(int col,
int w)
Sets the specified width for the given column. |
void |
setRowHeight(int row,
int h)
Sets the specified height for the given row. |
Method Detail |
public int getGridRows()
public int getGridCols()
public int getRowHeight(int row)
row
- the specified grid row.public int getColWidth(int col)
col
- the specified grid column.public void setRowHeight(int row, int h)
row
- the specified row.h
- the specified height.public void setColWidth(int col, int w)
col
- the specified column.w
- the specified width.public java.awt.Point getOrigin()
public java.awt.Insets getCellInsets()
public int getNetGap()
public int getColX(int col)
col
- the specified column.x
coordinate of the specified grid column.public int getRowY(int row)
row
- the specified row.y
coordinate of the specified grid row.public CellsVisibility getCellsVisibility()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |