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.
-
end_column
- Column of the last cell in range (top-left corner).
-
end_row
- Row of the last cell in range (bottom-right corner).
-
start_column
- Column of the first cell in range (top-left corner).
-
start_row
- Row of the first cell in range (top-left corner).
-
JCCellRange()
- Creates an instance with all cells set to JCTblEnum.NOVALUE.
-
JCCellRange(int, int, int, int)
- Creates an instance with the specified start and end cells.
-
equals(JCCellRange)
- Returns true if the specified range is equal to this range.
-
inColumnRange(int)
- Returns true if this range is not empty and the column is inside it.
-
inColumnRange2(int)
- Returns true if the column is inside this range.
-
inRowRange(int)
- Returns true if the row is inside this range.
-
inRowRange2(int)
- Returns true if this range is not empty and the row is inside it.
-
inside(int, int)
- Returns true if the cell is inside this range.
-
intersection(JCCellRange)
- Computes the intersection of two ranges.
-
intersects(JCCellRange)
- Checks whether the two ranges intersect.
-
overlaps(JCCellRange)
- Checks to see whether the two ranges overlap.
-
reshape(int, int)
- Reshapes the range to the specified single cell.
-
reshape(int, int, int, int)
- Reshapes the range to the specified start and end cells.
-
reshape(JCCellRange)
- Reshapes the range to the specified range.
start_row
public int start_row
- Row of the first cell in range (top-left corner).
start_column
public int start_column
- Column of the first cell in range (top-left corner).
end_row
public int end_row
- Row of the last cell in range (bottom-right corner).
end_column
public int end_column
- Column of the last cell in range (top-left corner).
JCCellRange
public JCCellRange()
- Creates an instance with all cells set to JCTblEnum.NOVALUE.
JCCellRange
public JCCellRange(int r1,
int c1,
int r2,
int c2)
- Creates an instance with the specified start and end cells.
reshape
public JCCellRange reshape(int r1,
int c1,
int r2,
int c2)
- Reshapes the range to the specified start and end cells.
reshape
public JCCellRange reshape(int r,
int c)
- Reshapes the range to the specified single cell.
reshape
public JCCellRange reshape(JCCellRange r)
- Reshapes the range to the specified range.
equals
public boolean equals(JCCellRange r)
- Returns true if the specified range is equal to this range.
intersects
public boolean intersects(JCCellRange r)
- Checks whether the two ranges intersect.
overlaps
public boolean overlaps(JCCellRange r)
- Checks to see whether the two ranges overlap.
intersection
public JCCellRange intersection(JCCellRange r)
- Computes the intersection of two ranges.
inside
public boolean inside(int row,
int col)
- Returns true if the cell is inside this range.
inRowRange
public boolean inRowRange(int row)
- Returns true if the row is inside this range.
inRowRange2
public boolean inRowRange2(int row)
- Returns true if this range is not empty and the row is inside it.
inColumnRange
public boolean inColumnRange(int col)
- Returns true if this range is not empty and the column is inside it.
inColumnRange2
public boolean inColumnRange2(int col)
- Returns true if the column is inside this range.
All Packages Class Hierarchy This Package Previous Next Index