Package org.apache.fop.render
Class DummyPercentBaseContext
- java.lang.Object
-
- org.apache.fop.render.DummyPercentBaseContext
-
- All Implemented Interfaces:
PercentBaseContext
public final class DummyPercentBaseContext extends java.lang.Object implements PercentBaseContext
A dummy implementation of PercentBaseContext
-
-
Field Summary
Fields Modifier and Type Field Description private static DummyPercentBaseContext
singleton
-
Constructor Summary
Constructors Modifier Constructor Description private
DummyPercentBaseContext()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getBaseLength(int lengthBase, FObj fo)
Returns the base length for the given length base.static DummyPercentBaseContext
getInstance()
Returns an instance of this dummy implementation
-
-
-
Field Detail
-
singleton
private static DummyPercentBaseContext singleton
-
-
Method Detail
-
getInstance
public static DummyPercentBaseContext getInstance()
Returns an instance of this dummy implementation- Returns:
- an instance of this dummy implementation
-
getBaseLength
public int getBaseLength(int lengthBase, FObj fo)
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
-
-