Package org.apache.fop.fo.expr
Class ProportionalColumnWidthFunction
java.lang.Object
org.apache.fop.fo.expr.FunctionBase
org.apache.fop.fo.expr.ProportionalColumnWidthFunction
- All Implemented Interfaces:
Function
Class modelling the proportional-column-width function. See Sec. 5.10.4 of
the XSL-FO standard.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioneval(Property[] args, PropertyInfo pInfo) Evaluate the functionintMethods inherited from class org.apache.fop.fo.expr.FunctionBase
getOptionalArgDefault, getOptionalArgsCount, getPropertyName, hasVariableArgs
-
Constructor Details
-
ProportionalColumnWidthFunction
public ProportionalColumnWidthFunction()
-
-
Method Details
-
getRequiredArgsCount
public int getRequiredArgsCount()- Returns:
- the number of required (non-optional) arguments that must be specified in the argument list
-
getPercentBase
Description copied from class:FunctionBase- Specified by:
getPercentBasein interfaceFunction- Overrides:
getPercentBasein classFunctionBase- Returns:
- the basis for percentage calculations
-
eval
Evaluate the function- Parameters:
args- an array of Properties that should be evaluatedpInfo- property information instance that applies to property being evaluated- Returns:
- the Property satisfying the function
- Throws:
PropertyException- for problems when evaluating the function
-