|
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.table.JCCellLayout
Maintain row/column heights and widths in a "chain" or array of runs. An individual chain keeps track of row heights or column widths.
| Nested Class Summary | |
class |
JCCellLayout.Chain
The Chain class encodes a List of row heights or column widths
as a sequence of Runs. |
class |
JCCellLayout.Run
A Run is a series of items with the same value. |
| Field Summary | |
protected int |
column_label_height
|
protected JCCellLayout.Chain |
heights
|
protected int |
row_label_width
|
protected com.klg.jclass.table.JCTable |
table
|
protected JCCellLayout.Chain |
widths
|
| Constructor Summary | |
JCCellLayout()
|
|
| Method Summary | |
void |
addColumns(int start_column,
int num_columns)
Inserts the given number of columns. |
void |
addRows(int start_row,
int num_rows)
Inserts the given number of rows. |
void |
deleteColumns(int start_column,
int num_columns)
Deletes the given number of columns. |
void |
deleteRows(int start_row,
int num_rows)
Deletes the given number of rows. |
Rectangle |
getBounds(int row,
int column)
Returns the bounds of the given cell or label. |
Rectangle |
getBounds(int start_row,
int start_column,
int end_row,
int end_column)
Returns the bounds of a cell range. |
Rectangle |
getBounds(int start_row,
int start_column,
int end_row,
int end_column,
Rectangle r)
Gets the bounds of a cell range using the given Rectangle. |
Rectangle |
getBounds(int row,
int column,
Rectangle r)
Gets the bounds of the given cell or label using the given Rectangle. |
int |
getColumn(int x,
int y)
Determines the column that contains the given (x,y) coordinate. |
int |
getColumnPosition(int column)
Returns the start position of a column. |
int |
getHeight(int row)
Returns the height of a row. |
int |
getRow(int x,
int y)
Determines the row that contains the given (x,y) coordinate. |
int |
getRowPosition(int row)
Returns the start position of a row. |
com.klg.jclass.table.JCTable |
getTable()
Returns the JCTable. |
int |
getWidth(int column)
Returns the width of a column. |
static void |
main(String[] args)
|
void |
moveColumns(int start_column,
int num_columns,
int destination)
Moves a set of columns to a position left of the destination. |
void |
moveRows(int start_row,
int num_rows,
int destination)
Moves a set of rows to a position above the destination. |
void |
remapColumns(int[] current_map,
int[] new_map)
Remaps widths after the column map changes. |
void |
remapRows(int[] current_map,
int[] new_map)
Remaps heights after the row map changes. |
void |
resetColumns()
Removes cached width information. |
void |
resetRows()
Removes cached height information. |
void |
setHeight(int row,
int value)
Sets the height of a row. |
void |
setHeight(int start_row,
int end_row,
int value)
Sets the height of a range of rows. |
void |
setTable(com.klg.jclass.table.JCTable table)
Sets the JCTable. |
void |
setWidth(int column,
int value)
Sets the width of a column. |
void |
setWidth(int start_column,
int end_column,
int value)
Sets the width of a range of columns. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected com.klg.jclass.table.JCTable table
protected int column_label_height
protected int row_label_width
protected JCCellLayout.Chain widths
protected JCCellLayout.Chain heights
| Constructor Detail |
public JCCellLayout()
| Method Detail |
public com.klg.jclass.table.JCTable getTable()
JCTable.
getTable in interface CellLayoutModelJCTablepublic void setTable(com.klg.jclass.table.JCTable table)
JCTable.
setTable in interface CellLayoutModeltable - public int getHeight(int row)
getHeight in interface CellLayoutModelrow -
public void setHeight(int row,
int value)
setHeight in interface CellLayoutModelrow - value -
public void setHeight(int start_row,
int end_row,
int value)
setHeight in interface CellLayoutModelend_row - start_row - value - public int getWidth(int column)
getWidth in interface CellLayoutModelcolumn -
public void setWidth(int column,
int value)
setWidth in interface CellLayoutModelcolumn - value -
public void setWidth(int start_column,
int end_column,
int value)
setWidth in interface CellLayoutModelend_column - start_column - value -
public int getColumn(int x,
int y)
getColumn in interface CellLayoutModelx - y -
public int getRow(int x,
int y)
getRow in interface CellLayoutModelx - y -
public int getColumnPosition(int column)
getColumnPosition in interface CellLayoutModelcolumn -
public int getRowPosition(int row)
getRowPosition in interface CellLayoutModelrow -
public Rectangle getBounds(int row,
int column)
getBounds in interface CellLayoutModelrow - column -
public Rectangle getBounds(int row,
int column,
Rectangle r)
getBounds in interface CellLayoutModelcolumn - r - row -
public Rectangle getBounds(int start_row,
int start_column,
int end_row,
int end_column)
getBounds in interface CellLayoutModelend_column - end_row - start_column - start_row -
public Rectangle getBounds(int start_row,
int start_column,
int end_row,
int end_column,
Rectangle r)
getBounds in interface CellLayoutModelend_column - end_row - r - start_column - start_row -
public void moveRows(int start_row,
int num_rows,
int destination)
JCTableEnum.MAXINT.
moveRows in interface CellLayoutModelstart_row - the first rownum_rows - the number of rows to movedestination - the row before which the moved rows are inserted
public void moveColumns(int start_column,
int num_columns,
int destination)
JCTableEnum.MAXINT.
moveColumns in interface CellLayoutModelstart_column - the first columnnum_columns - the number of columns to movedestination - the column before which the moved columns are inserted
public void addRows(int start_row,
int num_rows)
addRows in interface CellLayoutModelstart_row - the first rownum_rows - the number of rows to insert
public void addColumns(int start_column,
int num_columns)
addColumns in interface CellLayoutModelstart_column - the first columnnum_columns - the number of columns to insert
public void deleteRows(int start_row,
int num_rows)
deleteRows in interface CellLayoutModelstart_row - the first rownum_rows - the number of rows to delete
public void deleteColumns(int start_column,
int num_columns)
deleteColumns in interface CellLayoutModelstart_column - the first columnnum_columns - the number of columns to delete
public void remapRows(int[] current_map,
int[] new_map)
remapRows in interface CellLayoutModelcurrent_map - new_map -
public void remapColumns(int[] current_map,
int[] new_map)
remapColumns in interface CellLayoutModelcurrent_map - new_map - public void resetRows()
resetRows in interface CellLayoutModelpublic void resetColumns()
resetColumns in interface CellLayoutModelpublic static void main(String[] args)
|
Copyright © 2004 Quest Software Inc.. All rights reserved. |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||