public class SimplePercentBaseContext extends java.lang.Object implements PercentBaseContext
Constructor and Description |
---|
SimplePercentBaseContext(PercentBaseContext parentContext,
int lengthBase,
int lengthBaseValue) |
Modifier and Type | Method and Description |
---|---|
int |
getBaseLength(int lengthBase,
FObj fobj)
Returns the value for the given lengthBase.
|
public SimplePercentBaseContext(PercentBaseContext parentContext, int lengthBase, int lengthBaseValue)
parentContext
- the context to be used for all percentages other than lengthBaselengthBase
- the particular percentage length base for which this context provides
a valuelengthBaseValue
- the value to be returned for requests to the given lengthBasepublic int getBaseLength(int lengthBase, FObj fobj)
LengthBase
.getBaseLength
in interface PercentBaseContext
lengthBase
- Indicates which type of the base length value is to be returnedfobj
- The FO object against which the percentage should be evaluatedCopyright 1999-2010 The Apache Software Foundation. All Rights Reserved.