org.pentaho.reporting.engine.classic.core.layout.process.valign
Class ReplacedContentAlignContext

java.lang.Object
  extended by org.pentaho.reporting.engine.classic.core.layout.process.valign.AlignContext
      extended by org.pentaho.reporting.engine.classic.core.layout.process.valign.ReplacedContentAlignContext

public final class ReplacedContentAlignContext
extends AlignContext

A generic align context for images and other nodes. (Renderable-Content should have been aligned by the parent.

Author:
Thomas Morgner

Constructor Summary
ReplacedContentAlignContext(RenderableReplacedContentBox node, long parentHeight)
           
 
Method Summary
 long getAfterEdge()
           
 long getBaselineDistance(int baseline)
           
 long getBeforeEdge()
           
 void shift(long delta)
           
 
Methods inherited from class org.pentaho.reporting.engine.classic.core.layout.process.valign.AlignContext
getDominantBaseline, getNext, getNode, isSimpleNode, setDominantBaseline, setNext
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReplacedContentAlignContext

public ReplacedContentAlignContext(RenderableReplacedContentBox node,
                                   long parentHeight)
Method Detail

getBaselineDistance

public long getBaselineDistance(int baseline)
Specified by:
getBaselineDistance in class AlignContext

shift

public void shift(long delta)
Specified by:
shift in class AlignContext

getAfterEdge

public long getAfterEdge()
Specified by:
getAfterEdge in class AlignContext

getBeforeEdge

public long getBeforeEdge()
Specified by:
getBeforeEdge in class AlignContext