org.apache.fop.fo.expr

Class PPColWidthFunction

Implemented Interfaces:
Function

public class PPColWidthFunction
extends FunctionBase

Class modelling the proportional-column-width function. See Sec. 5.10.4 of the XSL-FO standard.

Method Summary

Property
eval(Property[] args, PropertyInfo pInfo)
PercentBase
getPercentBase()
int
nbArgs()

Methods inherited from class org.apache.fop.fo.expr.FunctionBase

getPercentBase, padArgsWithPropertyName

Method Details

eval

public Property eval(Property[] args,
                     PropertyInfo pInfo)
            throws PropertyException
Specified by:
eval in interface Function
Parameters:
args - array of arguments for this function
pInfo - PropertyInfo for this function
Returns:
numeric Property containing the units of proportional measure for this column
Throws:
PropertyException - for non-numeric operand, or if the parent element is not a table-column

getPercentBase

public PercentBase getPercentBase()
Specified by:
getPercentBase in interface Function
Overrides:
getPercentBase in interface FunctionBase
Returns:
the PercentBase for the proportional-column-width() function

nbArgs

public int nbArgs()
Specified by:
nbArgs in interface Function
Returns:
1 (the number of arguments for the proportional-column-width function)

Copyright 1999-2008 The Apache Software Foundation. All Rights Reserved.