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
Implements the rgb-icc() function.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioneval
(Property[] args, PropertyInfo pInfo) Evaluate the functionint
boolean
Determine if function allows variable arguments.Methods inherited from class org.apache.fop.fo.expr.FunctionBase
getOptionalArgDefault, getOptionalArgsCount, getPropertyName
-
Field Details
-
colors
private int colors
-
-
Constructor Details
-
RGBICCColorFunction
public RGBICCColorFunction(boolean fox)
-
-
Method Details
-
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
Description copied from class:FunctionBase
- Specified by:
getPercentBase
in interfaceFunction
- Overrides:
getPercentBase
in 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
-