Class jclass.table.JCCellRange
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class jclass.table.JCCellRange

java.lang.Object
   |
   +----jclass.table.JCCellRange

public class JCCellRange
extends Object
JCCellRange is used to specify a range of cells or labels.

Variable Index

 o end_column
Column of the last cell in range (top-left corner).
 o end_row
Row of the last cell in range (bottom-right corner).
 o start_column
Column of the first cell in range (top-left corner).
 o start_row
Row of the first cell in range (top-left corner).

Constructor Index

 o JCCellRange()
Creates an instance with all cells set to JCTblEnum.NOVALUE.
 o JCCellRange(int, int, int, int)
Creates an instance with the specified start and end cells.

Method Index

 o equals(JCCellRange)
Returns true if the specified range is equal to this range.
 o inColumnRange(int)
Returns true if this range is not empty and the column is inside it.
 o inColumnRange2(int)
Returns true if the column is inside this range.
 o inRowRange(int)
Returns true if the row is inside this range.
 o inRowRange2(int)
Returns true if this range is not empty and the row is inside it.
 o inside(int, int)
Returns true if the cell is inside this range.
 o intersection(JCCellRange)
Computes the intersection of two ranges.
 o intersects(JCCellRange)
Checks whether the two ranges intersect.
 o overlaps(JCCellRange)
Checks to see whether the two ranges overlap.
 o reshape(int, int)
Reshapes the range to the specified single cell.
 o reshape(int, int, int, int)
Reshapes the range to the specified start and end cells.
 o reshape(JCCellRange)
Reshapes the range to the specified range.

Variables

 o start_row
  public int start_row
Row of the first cell in range (top-left corner).
 o start_column
  public int start_column
Column of the first cell in range (top-left corner).
 o end_row
  public int end_row
Row of the last cell in range (bottom-right corner).
 o end_column
  public int end_column
Column of the last cell in range (top-left corner).

Constructors

 o JCCellRange
  public JCCellRange()
Creates an instance with all cells set to JCTblEnum.NOVALUE.
 o JCCellRange
  public JCCellRange(int r1,
                     int c1,
                     int r2,
                     int c2)
Creates an instance with the specified start and end cells.

Methods

 o reshape
  public JCCellRange reshape(int r1,
                             int c1,
                             int r2,
                             int c2)
Reshapes the range to the specified start and end cells.
 o reshape
  public JCCellRange reshape(int r,
                             int c)
Reshapes the range to the specified single cell.
 o reshape
  public JCCellRange reshape(JCCellRange r)
Reshapes the range to the specified range.
 o equals
  public boolean equals(JCCellRange r)
Returns true if the specified range is equal to this range.
 o intersects
  public boolean intersects(JCCellRange r)
Checks whether the two ranges intersect.
 o overlaps
  public boolean overlaps(JCCellRange r)
Checks to see whether the two ranges overlap.
 o intersection
  public JCCellRange intersection(JCCellRange r)
Computes the intersection of two ranges.
 o inside
  public boolean inside(int row,
                        int col)
Returns true if the cell is inside this range.
 o inRowRange
  public boolean inRowRange(int row)
Returns true if the row is inside this range.
 o inRowRange2
  public boolean inRowRange2(int row)
Returns true if this range is not empty and the row is inside it.
 o inColumnRange
  public boolean inColumnRange(int col)
Returns true if this range is not empty and the column is inside it.
 o inColumnRange2
  public boolean inColumnRange2(int col)
Returns true if the column is inside this range.

All Packages  Class Hierarchy  This Package  Previous  Next  Index