org.foray.pioneer
Class OverrideGraftingContext

java.lang.Object
  extended by org.foray.pioneer.OverrideGraftingContext
All Implemented Interfaces:
org.axsl.fo.FoContext

public class OverrideGraftingContext
extends Object
implements org.axsl.fo.FoContext

Implementation of FoContext that overrides the grafting information for a wrapped context item. This is useful when finding traits for Areas that have not yet been created.


Constructor Summary
OverrideGraftingContext(org.axsl.fo.FoContext wrappedContext, org.axsl.fo.fo.GraftingPoint overrideGrafting)
          Constructor.
 
Method Summary
 int bpdAncestorBlockOrRa()
           
 org.axsl.fo.fo.GraftingPoint getGraftingPoint()
           
 int heightContainingBlock()
           
 int ipdAncestorBlockArea()
           
 int ipdAncestorBlockOrRa()
           
 int ipdContainingRefArea()
           
 int ipdParentArea()
           
 boolean isFirst()
           
 boolean isLast()
           
 int tableWidth()
           
 int widthContainingBlock()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OverrideGraftingContext

public OverrideGraftingContext(org.axsl.fo.FoContext wrappedContext,
                               org.axsl.fo.fo.GraftingPoint overrideGrafting)
Constructor.

Parameters:
wrappedContext - The context to be wrapped inside this context.
overrideGrafting - The grafting which should override the grafting information in the wrapped context. This should never be null.
Method Detail

getGraftingPoint

public org.axsl.fo.fo.GraftingPoint getGraftingPoint()
Specified by:
getGraftingPoint in interface org.axsl.fo.FoContext

ipdAncestorBlockOrRa

public int ipdAncestorBlockOrRa()
Specified by:
ipdAncestorBlockOrRa in interface org.axsl.fo.FoContext

bpdAncestorBlockOrRa

public int bpdAncestorBlockOrRa()
Specified by:
bpdAncestorBlockOrRa in interface org.axsl.fo.FoContext

tableWidth

public int tableWidth()
Specified by:
tableWidth in interface org.axsl.fo.FoContext

ipdAncestorBlockArea

public int ipdAncestorBlockArea()
Specified by:
ipdAncestorBlockArea in interface org.axsl.fo.FoContext

widthContainingBlock

public int widthContainingBlock()
Specified by:
widthContainingBlock in interface org.axsl.fo.FoContext

heightContainingBlock

public int heightContainingBlock()
Specified by:
heightContainingBlock in interface org.axsl.fo.FoContext

isFirst

public boolean isFirst()
Specified by:
isFirst in interface org.axsl.fo.FoContext

isLast

public boolean isLast()
Specified by:
isLast in interface org.axsl.fo.FoContext

ipdContainingRefArea

public int ipdContainingRefArea()
Specified by:
ipdContainingRefArea in interface org.axsl.fo.FoContext

ipdParentArea

public int ipdParentArea()
Specified by:
ipdParentArea in interface org.axsl.fo.FoContext


Copyright © 2017. All rights reserved.