Classes | |
enum | Filter |
Enumeration for range filter. More... | |
Public Member Functions | |
Range () | |
Constructor. | |
Range (int index) | |
Constructor, with a single index. More... | |
Range (int start_index, int end_index, Range.Filter filter) | |
Constructor, with a specified index range. More... | |
Range (Range arg0) | |
Constructor, with another range object. | |
void | addSegment (int start_index, int end_index, Range.Filter filter) |
Add a new range segment. (Reverse ordering is legal.) More... | |
void | addSingle (int index) |
Add an index as a new range segment. More... | |
int | getSegmentCount () throws com.foxit.sdk.PDFException |
Get the count of range segments. More... | |
int | getSegmentEnd (int segment_index) throws com.foxit.sdk.PDFException |
Get the end index of a specified range segment. More... | |
int | getSegmentStart (int segment_index) throws com.foxit.sdk.PDFException |
Get the start index of a specified range segment. More... | |
boolean | isEmpty () |
Check whether current object is empty or not. More... | |
void | removeAll () throws com.foxit.sdk.PDFException |
Remove all range segments. More... | |
This class represents index range. Here, a range consists of one or more segments and each segment consists of one single index or a group of consecutive indexes.
com.foxit.sdk.common.Range.Range | ( | int | index | ) |
Constructor, with a single index.
index | A single index. |
com.foxit.sdk.common.Range.Range | ( | int | start_index, |
int | end_index, | ||
Range.Filter | filter | ||
) |
Constructor, with a specified index range.
start_index | The start index of a range segment. |
end_index | The end index of a range segment. |
filter | Filter type to decide which indexes of this range would be used. Please refer to values starting from e_All and this should be one of these values. Specially, when this value is e_Even or e_Odd, that means each even or odd number within the specified range segment will be treated as a single segment. |
void com.foxit.sdk.common.Range.addSegment | ( | int | start_index, |
int | end_index, | ||
Range.Filter | filter | ||
) |
Add a new range segment. (Reverse ordering is legal.)
start_index | The start index of a new range segment. |
end_index | The end index of a new range segment. |
filter | Filter type to decide which indexes of this range would be used. Please refer to values starting from e_All and this should be one of these values. Specially, when this value is e_Even or e_Odd, that means each even or odd number within the specified range segment will be treated as a single segment. |
void com.foxit.sdk.common.Range.addSingle | ( | int | index | ) |
Add an index as a new range segment.
index | An index to be added as a new range segment. |
int com.foxit.sdk.common.Range.getSegmentCount | ( | ) | throws com.foxit.sdk.PDFException |
Get the count of range segments.
int com.foxit.sdk.common.Range.getSegmentEnd | ( | int | segment_index | ) | throws com.foxit.sdk.PDFException |
Get the end index of a specified range segment.
segment_index | The segment index. Valid range: 0 to (count-1). count is returned by function Range::getSegmentCount. |
int com.foxit.sdk.common.Range.getSegmentStart | ( | int | segment_index | ) | throws com.foxit.sdk.PDFException |
Get the start index of a specified range segment.
segment_index | The segment index. Valid range: 0 to (count-1). count is returned by function Range::getSegmentCount. |
boolean com.foxit.sdk.common.Range.isEmpty | ( | ) |
Check whether current object is empty or not.
When the current object is empty, that means current object is useless.
void com.foxit.sdk.common.Range.removeAll | ( | ) | throws com.foxit.sdk.PDFException |
Remove all range segments.