|
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.PrintCellLayout
PrintCellLayout is a simplified implementation of the
CellLayoutModel that stores row heights and
column widths during printing.
| Field Summary | |
protected int[] |
columnPosition
|
protected int |
columns
|
protected int[] |
columnWidth
|
protected int |
labelHeight
|
protected int |
labelWidth
|
protected int[] |
rowHeight
|
protected int[] |
rowPosition
|
protected int |
rows
|
protected com.klg.jclass.table.JCTable |
table
|
| Constructor Summary | |
PrintCellLayout(int rows,
int columns)
Maintains row/column heights and widths for printing. |
|
| 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. |
protected void |
calcPositions(int[] position,
int label,
int[] value)
|
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)
Returns the column at the given x,y coordinates. |
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)
Returns the row at the given x,y coordinates. |
int |
getRowPosition(int row)
Reutrns 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. |
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()
Remove cached width information. |
void |
resetRows()
Remove 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 sequence 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 height of a sequence of column. |
| 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[] columnWidth
protected int[] columnPosition
protected int[] rowHeight
protected int[] rowPosition
protected int labelWidth
protected int labelHeight
protected int rows
protected int columns
| Constructor Detail |
public PrintCellLayout(int rows,
int columns)
| Method Detail |
protected void calcPositions(int[] position,
int label,
int[] value)
public com.klg.jclass.table.JCTable getTable()
getTable in interface CellLayoutModelpublic void setTable(com.klg.jclass.table.JCTable table)
setTable in interface CellLayoutModelpublic int getHeight(int row)
getHeight in interface CellLayoutModel
public void setHeight(int row,
int value)
setHeight in interface CellLayoutModel
public void setHeight(int start_row,
int end_row,
int value)
setHeight in interface CellLayoutModelpublic int getWidth(int column)
getWidth in interface CellLayoutModel
public void setWidth(int column,
int value)
setWidth in interface CellLayoutModel
public void setWidth(int start_column,
int end_column,
int value)
setWidth in interface CellLayoutModelpublic int getRowPosition(int row)
getRowPosition in interface CellLayoutModelpublic int getColumnPosition(int column)
getColumnPosition in interface CellLayoutModel
public Rectangle getBounds(int row,
int column)
getBounds in interface CellLayoutModel
public Rectangle getBounds(int row,
int column,
Rectangle r)
getBounds in interface CellLayoutModel
public Rectangle getBounds(int start_row,
int start_column,
int end_row,
int end_column)
getBounds in interface CellLayoutModel
public Rectangle getBounds(int start_row,
int start_column,
int end_row,
int end_column,
Rectangle r)
getBounds in interface CellLayoutModel
public int getColumn(int x,
int y)
getColumn in interface CellLayoutModel
public int getRow(int x,
int y)
getRow in interface CellLayoutModel
public void addRows(int start_row,
int num_rows)
CellLayoutModel
addRows in interface CellLayoutModelstart_row - the first rownum_rows - the number of rows to insert
public void addColumns(int start_column,
int num_columns)
CellLayoutModel
addColumns in interface CellLayoutModelstart_column - the first columnnum_columns - the number of columns to insert
public void moveRows(int start_row,
int num_rows,
int destination)
CellLayoutModelJCTableEnum.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)
CellLayoutModelJCTableEnum.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 deleteRows(int start_row,
int num_rows)
CellLayoutModel
deleteRows in interface CellLayoutModelstart_row - the first rownum_rows - the number of rows to delete
public void deleteColumns(int start_column,
int num_columns)
CellLayoutModel
deleteColumns in interface CellLayoutModelstart_column - the first columnnum_columns - the number of columns to delete
public void remapRows(int[] current_map,
int[] new_map)
CellLayoutModel
remapRows in interface CellLayoutModel
public void remapColumns(int[] current_map,
int[] new_map)
CellLayoutModel
remapColumns in interface CellLayoutModelpublic void resetRows()
CellLayoutModel
resetRows in interface CellLayoutModelpublic void resetColumns()
CellLayoutModel
resetColumns in interface CellLayoutModel
|
Copyright © 2004 Quest Software Inc.. All rights reserved. |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||