Package org.apache.fop.fo.expr
Class PropertyInfo
- java.lang.Object
-
- org.apache.fop.fo.expr.PropertyInfo
-
public class PropertyInfo extends java.lang.Object
This class holds context information needed during property expression evaluation. It holds the Maker object for the property, the PropertyList being built, and the FObj parent of the FObj for which the property is being set.
-
-
Field Summary
Fields Modifier and Type Field Description private FObj
fo
private PropertyMaker
maker
private PropertyList
plist
private java.util.Stack
stkFunction
-
Constructor Summary
Constructors Constructor Description PropertyInfo(PropertyMaker maker, PropertyList plist)
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Length
currentFontSize()
FObj
getFO()
accessor for FObjprivate PercentBase
getFunctionPercentBase()
PercentBase
getPercentBase()
Return the PercentBase object used to calculate the absolute value from a percent specification.PropertyList
getPropertyList()
accessor for PropertyListPropertyMaker
getPropertyMaker()
accessor for PropertyMakerprotected FOUserAgent
getUserAgent()
Convenience shortcut to get a reference to the FOUserAgentvoid
popFunction()
pop a function off of the function stackvoid
pushFunction(Function func)
push a function onto the function stack
-
-
-
Field Detail
-
maker
private PropertyMaker maker
-
plist
private PropertyList plist
-
fo
private FObj fo
-
stkFunction
private java.util.Stack stkFunction
-
-
Constructor Detail
-
PropertyInfo
public PropertyInfo(PropertyMaker maker, PropertyList plist)
Constructor- Parameters:
maker
- Property.Maker objectplist
- PropertyList object
-
-
Method Detail
-
getPercentBase
public PercentBase getPercentBase() throws PropertyException
Return the PercentBase object used to calculate the absolute value from a percent specification. Propagates to the Maker.- Returns:
- The PercentBase object or null if percentLengthOK()=false.
- Throws:
PropertyException
- if a property exception occurs
-
currentFontSize
public Length currentFontSize() throws PropertyException
- Returns:
- the current font-size value as base units (milli-points).
- Throws:
PropertyException
- if a property exception occurs
-
getFO
public FObj getFO()
accessor for FObj- Returns:
- FObj
-
getPropertyList
public PropertyList getPropertyList()
accessor for PropertyList- Returns:
- PropertyList object
-
getPropertyMaker
public PropertyMaker getPropertyMaker()
accessor for PropertyMaker- Returns:
- PropertyMaker object
-
pushFunction
public void pushFunction(Function func)
push a function onto the function stack- Parameters:
func
- function to push onto stack
-
popFunction
public void popFunction()
pop a function off of the function stack
-
getUserAgent
protected FOUserAgent getUserAgent()
Convenience shortcut to get a reference to the FOUserAgent- Returns:
- the FOUserAgent
-
getFunctionPercentBase
private PercentBase getFunctionPercentBase()
-
-