Package org.apache.fop.fonts.substitute
Class FontWeightRange
java.lang.Object
org.apache.fop.fonts.substitute.FontWeightRange
Encapsulates a range of font weight values
-
Field Summary
Modifier and TypeFieldDescriptionprotected static final org.apache.commons.logging.Log
logging instance -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
isWithinRange
(int value) Returns true if the given integer value is within this integer rangeint[]
toArray()
toString()
static FontWeightRange
Returns anFontWeightRange
object holding the range values of the specifiedString
.
-
Field Details
-
log
protected static final org.apache.commons.logging.Log 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 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
-
toArray
public int[] toArray()- Returns:
- an integer array containing the weight ranges
-