Package org.apache.fop.render
Class DummyPercentBaseContext
java.lang.Object
org.apache.fop.render.DummyPercentBaseContext
- All Implemented Interfaces:
PercentBaseContext
A dummy implementation of PercentBaseContext
-
Method Summary
Modifier and TypeMethodDescriptionint
getBaseLength
(int lengthBase, FObj fo) Returns the base length for the given length base.static DummyPercentBaseContext
Returns an instance of this dummy implementation
-
Method Details
-
getInstance
Returns an instance of this dummy implementation- Returns:
- an instance of this dummy implementation
-
getBaseLength
Returns the base length for the given length base. Length base should be one of the constants defined inLengthBase
.- Specified by:
getBaseLength
in interfacePercentBaseContext
- Parameters:
lengthBase
- Indicates which type of the base length value is to be returnedfo
- The FO object against which the percentage should be evaluated- Returns:
- The base length value of the given kind
-