public class LineHeightPropertyMaker extends SpaceProperty.Maker
contextDep, corresponding, defaultProperty, defaultValue, propId, setByShorthand
Constructor and Description |
---|
LineHeightPropertyMaker(int propId)
Create a maker for line-height.
|
Modifier and Type | Method and Description |
---|---|
protected Property |
compute(PropertyList propertyList)
Recalculate the line-height value based on the nearest specified
value.
|
Property |
convertProperty(Property p,
PropertyList propertyList,
FObj fo)
Return a Property object based on the passed Property object.
|
Property |
make(PropertyList propertyList,
java.lang.String value,
FObj fo)
Create a Property object from an attribute specification.
|
makeNewProperty
addSubpropMaker, checkEnumValues, get, getSubpropMaker, make, make, makeCompound, useGeneric
addEnum, addKeyword, addShorthand, checkValueKeywords, clone, convertPropertyDatatype, convertShorthandProperty, findProperty, getName, getPercentBase, getPropId, getShorthand, getSubprop, isInherited, setByShorthand, setCorresponding, setDatatypeParser, setDefault, setDefault, setInherited, setPercentBase, setSubprop
public LineHeightPropertyMaker(int propId)
propId
- the is for linehight.public Property make(PropertyList propertyList, java.lang.String value, FObj fo) throws PropertyException
make
in class CompoundPropertyMaker
propertyList
- The PropertyList object being built for this FO.value
- The attribute value.fo
- The parent FO for the FO whose property is being made.PropertyException
- for invalid or inconsistent FO inputprotected Property compute(PropertyList propertyList) throws PropertyException
compute
in class PropertyMaker
propertyList
- The PropertyList for the FO.PropertyException
- for invalid or inconsistent FO inputpublic Property convertProperty(Property p, PropertyList propertyList, FObj fo) throws PropertyException
convertProperty
in class SpaceProperty.Maker
p
- The Property object return by the expression parserpropertyList
- The PropertyList object being built for this FO.fo
- The parent FO for the FO whose property is being made.PropertyException
- for invalid or inconsistent FO inputCopyright 1999-2017 The Apache Software Foundation. All Rights Reserved.