Package org.apache.fop.fo.expr
Class RGBColorFunction.RGBPercentBase
java.lang.Object
org.apache.fop.fo.expr.RGBColorFunction.RGBPercentBase
- All Implemented Interfaces:
PercentBase
- Enclosing class:
RGBColorFunction
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintgetBaseLength(PercentBaseContext context) doubleintDetermines whether a numeric property is created or one with a percentage base.
-
Constructor Details
-
RGBPercentBase
private RGBPercentBase()
-
-
Method Details
-
getDimension
public int getDimension()Description copied from interface:PercentBaseDetermines whether a numeric property is created or one with a percentage base.- Specified by:
getDimensionin interfacePercentBase- Returns:
- 0 for length, 1 for percentage
-
getBaseValue
public double getBaseValue()- Specified by:
getBaseValuein 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
- Specified by:
getBaseLengthin 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)
-