org.apache.fop.datatypes
Class SimplePercentBaseContext
java.lang.Object
org.apache.fop.datatypes.SimplePercentBaseContext
- PercentBaseContext
public class SimplePercentBaseContext
extends java.lang.Object
Class to implement a simple lookup context for a single percent base value.
int | getBaseLength(int lengthBase, FObj fobj) - Returns the value for the given lengthBase.
|
SimplePercentBaseContext
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 lengthBase
Copyright 1999-2008 The Apache Software Foundation. All Rights Reserved.