Package org.apache.fop.fo.expr
Class RGBNamedColorFunction
- java.lang.Object
-
- org.apache.fop.fo.expr.FunctionBase
-
- org.apache.fop.fo.expr.RGBNamedColorFunction
-
- All Implemented Interfaces:
Function
class RGBNamedColorFunction extends FunctionBase
Implements the rgb-named-color() function.- Since:
- XSL-FO 2.0
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static class
RGBNamedColorFunction.RGBNamedPercentBase
-
Constructor Summary
Constructors Constructor Description RGBNamedColorFunction()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Property
eval(Property[] args, PropertyInfo pInfo)
Evaluate the functionPercentBase
getPercentBase()
int
getRequiredArgsCount()
-
Methods inherited from class org.apache.fop.fo.expr.FunctionBase
getOptionalArgDefault, getOptionalArgsCount, getPropertyName, hasVariableArgs
-
-
-
-
Method Detail
-
getRequiredArgsCount
public int getRequiredArgsCount()
- Returns:
- the number of required (non-optional) arguments that must be specified in the argument list
-
getPercentBase
public PercentBase getPercentBase()
- Specified by:
getPercentBase
in interfaceFunction
- Overrides:
getPercentBase
in classFunctionBase
- Returns:
- the basis for percentage calculations
-
eval
public Property eval(Property[] args, PropertyInfo pInfo) throws PropertyException
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
-
-