Package org.apache.fop.fo.expr
Class RGBNamedColorFunction.RGBNamedPercentBase
java.lang.Object
org.apache.fop.fo.expr.RGBNamedColorFunction.RGBNamedPercentBase
- All Implemented Interfaces:
PercentBase
- Enclosing class:
RGBNamedColorFunction
private static final class RGBNamedColorFunction.RGBNamedPercentBase
extends Object
implements PercentBase
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
getBaseLength
(PercentBaseContext context) double
int
Determines whether a numeric property is created or one with a percentage base.
-
Constructor Details
-
RGBNamedPercentBase
private RGBNamedPercentBase()
-
-
Method Details
-
getBaseLength
- Specified by:
getBaseLength
in interfacePercentBase
- Parameters:
context
- The context for percentage evaluation- Returns:
- the integer size in millipoints of the object (this will be used as the base to which a percentage will be applied to compute the length of the referencing item)
- Throws:
PropertyException
- if a problem occurs during evaluation of this value.
-
getBaseValue
public double getBaseValue()- Specified by:
getBaseValue
in interfacePercentBase
- Returns:
- the base value (this will be used as the base to which a percentage will be applied to compute the length of the referencing item)
-
getDimension
public int getDimension()Determines whether a numeric property is created or one with a percentage base.- Specified by:
getDimension
in interfacePercentBase
- Returns:
- 0 for length, 1 for percentage
-