Class FontWeightRange
java.lang.Object
org.docx4j.fonts.fop.fonts.substitute.FontWeightRange
public class FontWeightRange
extends java.lang.Object
Encapsulates a range of font weight values
-
Field Summary
Fields Modifier and Type Field Description protected static org.slf4j.Loggerloglogging instance -
Constructor Summary
Constructors Constructor Description FontWeightRange(int start, int end)Main constructor -
Method Summary
Modifier and Type Method Description booleanisWithinRange(int value)Returns true if the given integer value is within this integer rangeint[]toArray()java.lang.StringtoString()static FontWeightRangevalueOf(java.lang.String weightRangeString)Returns anFontWeightRangeobject holding the range values of the specifiedString.
-
Field Details
-
log
protected static 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
public java.lang.String toString()- Overrides:
toStringin classjava.lang.Object
-
toArray
public int[] toArray()- Returns:
- an integer array containing the weight ranges
-