Package com.itextpdf.layout.font
Class RangeBuilder
java.lang.Object
com.itextpdf.layout.font.RangeBuilder
Builder of
Range
.
-
Constructor Summary
ConstructorDescriptionDefault constructor with empty range.RangeBuilder
(char ch) Constructor with a single char.RangeBuilder
(char low, char high) Constructor with a single range.RangeBuilder
(int n) Constructor with a single number.RangeBuilder
(int low, int high) Constructor with a single range. -
Method Summary
-
Constructor Details
-
RangeBuilder
public RangeBuilder()Default constructor with empty range. -
RangeBuilder
public RangeBuilder(int low, int high) Constructor with a single range.- Parameters:
-
low
- low boundary of the range -
high
- high boundary of the range
-
RangeBuilder
public RangeBuilder(int n) Constructor with a single number.- Parameters:
-
n
- a single number
-
RangeBuilder
public RangeBuilder(char low, char high) Constructor with a single range.- Parameters:
-
low
- low boundary of the range -
high
- high boundary of the range
-
RangeBuilder
public RangeBuilder(char ch) Constructor with a single char.- Parameters:
-
ch
- a single char
-
-
Method Details
-
addRange
Add one more range.- Parameters:
-
low
- low boundary of the range -
high
- high boundary of the range - Returns:
- this RangeBuilder
-
addRange
Add one more range.- Parameters:
-
low
- low boundary of the range -
high
- high boundary of the range - Returns:
- this RangeBuilder
-
addRange
Add range with a single number.- Parameters:
-
n
- a single number - Returns:
- this RangeBuilder
-
addRange
Add range with a single char.- Parameters:
-
ch
- a single char - Returns:
- this RangeBuilder
-
create
Creates aRange
instance based on added ranges.- Returns:
-
the
Range
instance based on added ranges
-