Package org.apache.fop.fo.expr
Class RGBICCColorFunction
- java.lang.Object
-
- org.apache.fop.fo.expr.FunctionBase
-
- org.apache.fop.fo.expr.RGBICCColorFunction
-
- All Implemented Interfaces:
Function
class RGBICCColorFunction extends FunctionBase
Implements the rgb-icc() function.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static class
RGBICCColorFunction.ICCPercentBase
-
Field Summary
Fields Modifier and Type Field Description private int
colors
-
Constructor Summary
Constructors Constructor Description RGBICCColorFunction(boolean fox)
-
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()
boolean
hasVariableArgs()
Determine if function allows variable arguments.-
Methods inherited from class org.apache.fop.fo.expr.FunctionBase
getOptionalArgDefault, getOptionalArgsCount, getPropertyName
-
-
-
-
Method Detail
-
getRequiredArgsCount
public int getRequiredArgsCount()
- Returns:
- the number of required (non-optional) arguments that must be specified in the argument list
-
hasVariableArgs
public boolean hasVariableArgs()
Description copied from class:FunctionBase
Determine if function allows variable arguments. If it does, then they must appear after required and optional arguments, and all optional arguments must be specified.- Specified by:
hasVariableArgs
in interfaceFunction
- Overrides:
hasVariableArgs
in classFunctionBase
- Returns:
- true if function permits additional variable number of arguments after required and (completely specified) optional arguments
-
getPercentBase
public PercentBase getPercentBase()
Description copied from class:FunctionBase
- 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
-
-