Class FontWeightRange
java.lang.Object
org.docx4j.fonts.fop.fonts.substitute.FontWeightRange
Encapsulates a range of font weight values
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanisWithinRange(int value) Returns true if the given integer value is within this integer rangeint[]toArray()toString()static FontWeightRangeReturns anFontWeightRangeobject holding the range values of the specifiedString.
-
Field Details
-
log
protected static final org.slf4j.Logger loglogging instance
-
-
Constructor Details
-
FontWeightRange
public FontWeightRange(int start, int end) Main constructor- Parameters:
start- the start value rangeend- the end value range
-
-
Method Details
-
valueOf
Returns anFontWeightRangeobject holding the range values of the specifiedString.- Parameters:
weightRangeString- the value range string- Returns:
- an
FontWeightRangeobject holding the value ranges
-
isWithinRange
public boolean isWithinRange(int value) Returns true if the given integer value is within this integer range- Parameters:
value- the integer value- Returns:
- true if the given integer value is within this integer range
-
toString
-
toArray
public int[] toArray()- Returns:
- an integer array containing the weight ranges
-