CellRangeAddress
Portions of this class may be moved to CellRangeAddressBase
| Modifier and Type | Field and Description |
|---|---|
| public static final int | ENCLOSES
first range encloses or is equal to the second |
| public static final int | INSIDE
first range is within the second range |
| public static final int | |
| public static final int |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static boolean | Returns: true if cell range A contains cell range Bcell range A crA, CellRangeAddress cell range B crB)Check if cell range A contains cell range B (B <= A) Todo move this into |
| public static CellRangeAddress | Returns: enclosing CellRangeCreate an enclosing CellRange for the two cell ranges. |
| private static boolean | |
| private static boolean | |
| public static boolean | Returns: true if the ranges have a complete shared border (i.e.
the two ranges together make a simple rectangular region.Check if the two cell ranges have a shared border. |
| public static int | Returns: code which reflects how the specified range is related to this range.Possible return codes are:
- the specified range crB)Get the type of intersection between two cell ranges |
| private static boolean | |
| private static boolean | |
| public static CellRangeAddress[] | Returns: list of merged cell rangesthe ranges to merge cellRanges)Do all possible cell merges between cells of the list so that:
|
| private static List | |
| private static CellRangeAddress[] | Returns: the new range(s) to replace the supplied ones.null if no merge is possible
|
| private static CellRangeAddress[] | |
| private static List |
| ENCLOSES | back to summary |
|---|---|
| public static final int ENCLOSES first range encloses or is equal to the second | |
| INSIDE | back to summary |
|---|---|
| public static final int INSIDE first range is within the second range | |
| NO_INTERSECTION | back to summary |
|---|---|
| public static final int NO_INTERSECTION | |
| OVERLAP | back to summary |
|---|---|
| public static final int OVERLAP | |
| CellRangeUtil | back to summary |
|---|---|
| private CellRangeUtil() | |
| contains | back to summary |
|---|---|
| public static boolean contains(CellRangeAddress crA, CellRangeAddress crB) Check if cell range A contains cell range B (B <= A) Todo move this into
| |
| createEnclosingCellRange | back to summary |
|---|---|
| public static CellRangeAddress createEnclosingCellRange(CellRangeAddress crA, CellRangeAddress crB) Create an enclosing CellRange for the two cell ranges.
| |
| ge | back to summary |
|---|---|
private static boolean ge(int a, int b)
| |
| gt | back to summary |
|---|---|
private static boolean gt(int a, int b)
| |
| hasExactSharedBorder | back to summary |
|---|---|
| public static boolean hasExactSharedBorder(CellRangeAddress crA, CellRangeAddress crB) Check if the two cell ranges have a shared border.
| |
| intersect | back to summary |
|---|---|
| public static int intersect(CellRangeAddress crA, CellRangeAddress crB) Get the type of intersection between two cell ranges
| |
| le | back to summary |
|---|---|
private static boolean le(int a, int b)
| |
| lt | back to summary |
|---|---|
private static boolean lt(int a, int b)
| |
| mergeCellRanges | back to summary |
|---|---|
| public static CellRangeAddress[] mergeCellRanges(CellRangeAddress[] cellRanges) Do all possible cell merges between cells of the list so that:
| |
| mergeCellRanges | back to summary |
|---|---|
| private static List | |
| mergeRanges | back to summary |
|---|---|
private static CellRangeAddress[] mergeRanges(CellRangeAddress range1, CellRangeAddress range2)
| |
| toArray | back to summary |
|---|---|
| private static CellRangeAddress[] toArray(List<CellRangeAddress> temp) | |
| toList | back to summary |
|---|---|
| private static List | |