Package org.apache.fop.fo.expr
Class CIELabColorFunction.CIELabPercentBase
- java.lang.Object
-
- org.apache.fop.fo.expr.CIELabColorFunction.CIELabPercentBase
-
- All Implemented Interfaces:
PercentBase
- Enclosing class:
- CIELabColorFunction
private static class CIELabColorFunction.CIELabPercentBase extends java.lang.Object implements PercentBase
-
-
Constructor Summary
Constructors Modifier Constructor Description private
CIELabPercentBase()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getBaseLength(PercentBaseContext context)
double
getBaseValue()
int
getDimension()
Determines whether a numeric property is created or one with a percentage base.
-
-
-
Method Detail
-
getDimension
public int getDimension()
Description copied from interface:PercentBase
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
-
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)
-
getBaseLength
public int getBaseLength(PercentBaseContext context)
- 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)
-
-