Package org.apache.fop.fonts.substitute
Class FontWeightRange
- java.lang.Object
-
- org.apache.fop.fonts.substitute.FontWeightRange
-
public class FontWeightRange extends java.lang.Object
Encapsulates a range of font weight values
-
-
Constructor Summary
Constructors Constructor Description FontWeightRange(int start, int end)
Main constructor
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isWithinRange(int value)
Returns true if the given integer value is within this integer rangeint[]
toArray()
java.lang.String
toString()
static FontWeightRange
valueOf(java.lang.String weightRangeString)
Returns anFontWeightRange
object holding the range values of the specifiedString
.
-
-
-
Method Detail
-
valueOf
public static FontWeightRange valueOf(java.lang.String weightRangeString)
Returns anFontWeightRange
object holding the range values of the specifiedString
.- Parameters:
weightRangeString
- the value range string- Returns:
- an
FontWeightRange
object 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:
toString
in classjava.lang.Object
-
toArray
public int[] toArray()
- Returns:
- an integer array containing the weight ranges
-
-