|
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.JCCellRange
JCCellRange
is used to specify a range of cells or labels.
Field Summary | |
int |
end_column
Column of the last cell in range (top-left corner). |
int |
end_row
Row of the last cell in range (bottom-right corner). |
int |
start_column
Column of the first cell in range (top-left corner). |
int |
start_row
Row of the first cell in range (top-left corner). |
Constructor Summary | |
JCCellRange()
Creates an instance with all cells set to JCTableEnum.NOVALUE . |
|
JCCellRange(int r1,
int c1,
int r2,
int c2)
Creates an instance with the specified start and end cells. |
|
JCCellRange(Rectangle r)
Creates a JCCellRange based on a rectangle. |
Method Summary | |
boolean |
equals(com.klg.jclass.table.JCCellRange r)
Returns true if the specified range is equal to this range. |
boolean |
inColumnRange(int col)
Returns true if this range is not empty and the column is inside
it. |
boolean |
inColumnRange2(int col)
Returns true if the column is inside this range. |
boolean |
inRowRange(int row)
Returns true if the row is inside this range. |
boolean |
inRowRange2(int row)
Returns true if this range is not empty and the row is inside
it. |
boolean |
inside(int row,
int col)
Returns true if the cell is inside this range. |
com.klg.jclass.table.JCCellRange |
intersection(com.klg.jclass.table.JCCellRange r)
Computes the intersection of two ranges. |
void |
intersection(com.klg.jclass.table.JCCellRange r,
com.klg.jclass.table.JCCellRange inter)
|
boolean |
intersects(com.klg.jclass.table.JCCellRange r)
Checks whether the two ranges intersect. |
boolean |
overlaps(com.klg.jclass.table.JCCellRange r)
Checks to see whether the two ranges overlap. |
com.klg.jclass.table.JCCellRange |
reshape(int r,
int c)
Reshapes the range to the specified single cell. |
com.klg.jclass.table.JCCellRange |
reshape(int r1,
int c1,
int r2,
int c2)
Reshapes the range to the specified start and end cells. |
com.klg.jclass.table.JCCellRange |
reshape(com.klg.jclass.table.JCCellRange r)
Reshapes the range to the specified range. |
com.klg.jclass.table.JCCellRange |
reshape(Rectangle r)
Reshapes the range to the specified rectangle. |
String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public int start_row
public int start_column
public int end_row
public int end_column
Constructor Detail |
public JCCellRange()
JCTableEnum.NOVALUE
.
public JCCellRange(int r1, int c1, int r2, int c2)
c1
- c2
- r1
- r2
- public JCCellRange(Rectangle r)
JCCellRange
based on a rectangle.
r
- Method Detail |
public final com.klg.jclass.table.JCCellRange reshape(int r1, int c1, int r2, int c2)
c1
- c2
- r1
- r2
-
public final com.klg.jclass.table.JCCellRange reshape(int r, int c)
r
- c
-
public final com.klg.jclass.table.JCCellRange reshape(com.klg.jclass.table.JCCellRange r)
r
-
public final com.klg.jclass.table.JCCellRange reshape(Rectangle r)
r
-
public final boolean equals(com.klg.jclass.table.JCCellRange r)
true
if the specified range is equal to this range.
r
-
true
if the specified range is equal to this rangepublic final boolean intersects(com.klg.jclass.table.JCCellRange r)
r
-
public final boolean overlaps(com.klg.jclass.table.JCCellRange r)
r
-
public final com.klg.jclass.table.JCCellRange intersection(com.klg.jclass.table.JCCellRange r)
r
-
public final void intersection(com.klg.jclass.table.JCCellRange r, com.klg.jclass.table.JCCellRange inter)
public final boolean inside(int row, int col)
true
if the cell is inside this range.
row
- col
-
true
if the cell is inside this rangepublic final boolean inRowRange(int row)
true
if the row is inside this range.
row
-
true
if the row is inside this rangepublic final boolean inRowRange2(int row)
true
if this range is not empty and the row is inside
it.
row
-
true
if this range is not empty and the row is inside itpublic final boolean inColumnRange(int col)
true
if this range is not empty and the column is inside
it.
col
-
true
if this range is not empty and the column is inside
itpublic final boolean inColumnRange2(int col)
true
if the column is inside this range.
col
-
true
if the column is inside this rangepublic String toString()
toString
in class Object
|
Copyright © 2004 Quest Software Inc.. All rights reserved. |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |