JClass DesktopViews 6.3.0 API
Documentation

com.klg.jclass.table
Class PrintCellAreaHandler

java.lang.Object
  |
  +--com.klg.jclass.table.CellAreaHandler
        |
        +--com.klg.jclass.table.PrintCellAreaHandler
All Implemented Interfaces:
Serializable

public class PrintCellAreaHandler
extends CellAreaHandler

PrintCellAreaHandler controls the creation and removal of CellAreas within the table during printing. It overrides the getBounds methods of CellAreaHandler because cell layout during printing is controlled by JCPrintTable.

See Also:
Serialized Form

Field Summary
protected  com.klg.jclass.table.JCCellRange page_range
           
 
Fields inherited from class com.klg.jclass.table.CellAreaHandler
areas, cellArea, cellAreaRenderer, cellInfo, cellOrigin, cellRect, columnLabelArea, columnLabelRect, drag_column, drag_columns, drag_row, drag_rows, DRAGGING, drop_column, drop_row, frozenCellArea, frozenColumnArea, frozenColumnLabelArea, frozenRowArea, frozenRowLabelArea, isStandardLayout, rowLabelArea, rowLabelRect, table
 
Constructor Summary
PrintCellAreaHandler(com.klg.jclass.table.JCTable table)
          Creates a new controller for Areas.
 
Method Summary
protected  int determineThinSides(int row, int column)
          Override determineThinSides to work to end of page range rather than end of table.
 Rectangle getBounds(int row, int column)
          Returns the bounds of the cell accounting for the position of the CellArea that manages the cell.
 Rectangle getBounds(int row, int column, Rectangle r)
          Returns the bounds of a cell accounting for the position of the CellArea that manages the cell, using the given Rectangle.
 
Methods inherited from class com.klg.jclass.table.CellAreaHandler
cancelDrag, contains, createCellArea, createRequiredCellAreas, determineThinSides, endDrag, find, findByType, getBounds, getCellArea, getCellAreaRenderer, getCellAreas, getCellOrigin, getColumn, getDragBounds, getRow, getTable, getTableCellInfo, getTransposedX, getTransposedY, getVisibleCells, isContentClipped, isStandardLayout, performDrag, setAreaCellRange, setCellOrigin, setCellOrigin, setCellOriginX, setCellOriginY, setStandardLayout, setTableCellInfo, shiftArray, updateCellArea
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

page_range

protected com.klg.jclass.table.JCCellRange page_range
Constructor Detail

PrintCellAreaHandler

public PrintCellAreaHandler(com.klg.jclass.table.JCTable table)
Creates a new controller for Areas.

Method Detail

getBounds

public Rectangle getBounds(int row,
                           int column)
Returns the bounds of the cell accounting for the position of the CellArea that manages the cell.

Overrides:
getBounds in class CellAreaHandler

getBounds

public Rectangle getBounds(int row,
                           int column,
                           Rectangle r)
Returns the bounds of a cell accounting for the position of the CellArea that manages the cell, using the given Rectangle.

Overrides:
getBounds in class CellAreaHandler

determineThinSides

protected int determineThinSides(int row,
                                 int column)
Override determineThinSides to work to end of page range rather than end of table.

Overrides:
determineThinSides in class CellAreaHandler
Parameters:
row - the cell's row
column - the cell's column
Returns:
integer containing flags JCCellBorder.BORDERSIDE_THIN_BOTTOM and JCCellBorder.BORDERSIDE_THIN_RIGHT if either of those are needed.

Copyright © 2004 Quest Software Inc..
All rights reserved.