public class SimplePercentBaseContext extends 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 PercentBaseContextlengthBase - Indicates which type of the base length value is to be returnedfobj - The FO object against which the percentage should be evaluatedCopyright © 2023 Apache Software Foundation. All rights reserved.