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
FieldsModifier and TypeFieldDescriptionprotected static final org.apache.commons.logging.Loglogging instance -
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.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 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
-